How rafabarros95/machine-learning works
ML-DL is a small collection of machine-learning examples and two applied projects: phishing-email classification and bank-customer segmentation. In the phishing project, dataset loading and text preprocessing support model training and evaluation; a FastAPI interface classifies submitted email text. In customer segmentation, shared feature preparation supports model training and Streamlit prediction, with segment profiles and demographic/location context presented in the app. The repository also contains a salary-regression notebook and two forecasting notebooks. The README gives no capability details, and the customer-segmentation raw data and trained-model artifacts are not present in the tree.
Main entry points: data_loader.py Data loader · preprocess.py Text preprocessing · train.py Model training · hyperparameter_tuning.py Hyperparameter tuning
Components 18
Phishing Detection
- Email CSV
Phishing_Email_Detector/data/raw/Phishing_Email.csv - Data loader
Phishing_Email_Detector/src/data_loader.py - Text preprocessing
Phishing_Email_Detector/src/preprocess.py - Model training
Phishing_Email_Detector/src/train.py - Hyperparameter tuning
Phishing_Email_Detector/src/hyperparameter_tuning.py - Model evaluation
Phishing_Email_Detector/src/evaluate.py - Batch prediction
Phishing_Email_Detector/src/predict.py - Prediction API
Phishing_Email_Detector/src/app.py - Email form
Phishing_Email_Detector/src/template-UI/form.html - Email exploration
Phishing_Email_Detector/notebooks/EDA.ipynb
Customer Segmentation
- Segmentation dashboard
customer_segmentation/app.py - Data and features
customer_segmentation/src/pipeline.py - Cluster training
customer_segmentation/src/train.py
ML Notebooks
- Salary regression
ML_Fundamentals/linear_regression.ipynb - Salary dataset
ML_Fundamentals/Datasets/Salary_dataset.csv - Forecasting examples
scripts/Forecasting_ML.ipynb - LSTM forecasting
scripts/LSTM_Forecasting.ipynb
Other components
- User
Connections 14
- Email CSV → Data loader: loads
Phishing_Email_Detector/src/data_loader.py - Data loader → Text preprocessing: feeds
Phishing_Email_Detector/src/train.py - Model training → Data loader: loads via
Phishing_Email_Detector/src/train.py - Model training → Text preprocessing: preprocesses with
Phishing_Email_Detector/src/train.py - Hyperparameter tuning → Data loader: loads via
Phishing_Email_Detector/src/hyperparameter_tuning.py - Hyperparameter tuning → Text preprocessing: preprocesses with
Phishing_Email_Detector/src/hyperparameter_tuning.py - Model evaluation → Data loader: loads via
Phishing_Email_Detector/src/evaluate.py - Model evaluation → Text preprocessing: preprocesses with
Phishing_Email_Detector/src/evaluate.py - User → Prediction API: submits email
Phishing_Email_Detector/src/app.py - Prediction API → Email form: renders template
- User → Segmentation dashboard: enters details
customer_segmentation/app.py - Segmentation dashboard → Data and features: predicts with
customer_segmentation/app.py - Cluster training → Data and features: uses functions
customer_segmentation/src/train.py - Salary dataset → Salary regression: supports example