- This repository houses a diverse collection of machine learning projects and examples, ranging from simple regression models to more sophisticated techniques like neural networks.
- Additionally, I’ll introduce other concepts such as pipelines, grid search, MLflow, and others.
This project demonstrates a simple linear regression model to determine CO2 emissions based on vehicle features.
simple_regression.py: Contains the code for loading data, preprocessing, building, and evaluating a simple linear regression model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
simple_regression.pyscript:python simple_regression.py
This project demonstrates a multiple linear regression model to predict CO2 emissions based on multiple vehicle features.
multiple_regression.py: Contains the code for loading data, preprocessing, building, and evaluating a multiple linear regression model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
multiple_regression.pyscript:python multiple_regression.py
This project demonstrates a multiple linear regression model using a pipeline to predict CO2 emissions based on multiple vehicle features.
multiple_regression_pipeline.py: Contains the code for loading data, preprocessing, building, and evaluating a multiple linear regression model using a pipeline.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
multiple_regression_pipeline.pyscript:python multiple_regression_pipeline.py
This project demonstrates a logistic regression model to determine who is more likely to leave a company.
logistic_regression.py: Contains the code for loading data, preprocessing, building, and evaluating a logistic regression model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
logistic_regression.pyscript:python logistic_regression.py
This project demonstrates a multi-class classification model to predict obesity risk using logistic regression.
multi-class_classification.py: Contains the code for loading data, preprocessing, building, and evaluating a multi-class classification model using logistic regression.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
multi-class_classification.pyscript:python multi-class_classification.py
This project demonstrates a decision tree classifier to determine which drug to choose based on patient features.
decision_tree_classifier.py: Contains the code for loading data, preprocessing, building, and evaluating a decision tree classifier model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
decision_tree_classifier.pyscript:python decision_tree_classifier.py
This project demonstrates a K-Nearest Neighbors (KNN) classifier to predict service category (custcat).
KNN.py: Contains the code for loading data, preprocessing, building, and evaluating a K-Nearest Neighbors classifier model and cross validation.
This project demonstrates a K-Means clustering model for customer segmentation based on historical data.
K-Means.py: Contains the code for loading data, preprocessing, building, and evaluating a K-Means clustering model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
K-Means.pyscript:python K-Means.py
This repository contains various machine learning projects and examples, starting with simple regression models and eventually including more advanced techniques such as neural networks.
This project demonstrates a simple linear regression model to determine CO2 emissions based on vehicle features.
simple_regression.py: Contains the code for loading data, preprocessing, building, and evaluating a simple linear regression model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
simple_regression.pyscript:python simple_regression.py
This project demonstrates a multiple linear regression model to predict CO2 emissions based on multiple vehicle features.
multiple_regression.py: Contains the code for loading data, preprocessing, building, and evaluating a multiple linear regression model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
multiple_regression.pyscript:python multiple_regression.py
This project demonstrates a multiple linear regression model using a pipeline to predict CO2 emissions based on multiple vehicle features.
multiple_regression_pipeline.py: Contains the code for loading data, preprocessing, building, and evaluating a multiple linear regression model using a pipeline.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
multiple_regression_pipeline.pyscript:python multiple_regression_pipeline.py
This project demonstrates a logistic regression model to determine who is more likely to leave a company.
logistic_regression.py: Contains the code for loading data, preprocessing, building, and evaluating a logistic regression model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
logistic_regression.pyscript:python logistic_regression.py
This project demonstrates a multi-class classification model to predict obesity risk using logistic regression.
multi-class_classification.py: Contains the code for loading data, preprocessing, building, and evaluating a multi-class classification model using logistic regression.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
multi-class_classification.pyscript:python multi-class_classification.py
This project demonstrates a decision tree classifier to determine which drug to choose based on patient features.
decision_tree_classifier.py: Contains the code for loading data, preprocessing, building, and evaluating a decision tree classifier model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
decision_tree_classifier.pyscript:python decision_tree_classifier.py
This project demonstrates a K-Nearest Neighbors (KNN) classifier to predict service category (custcat).
KNN.py: Contains the code for loading data, preprocessing, building, and evaluating a K-Nearest Neighbors classifier model and cross validation.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
KNN.pyscript:python KNN.py
This project demonstrates a K-Means clustering model for customer segmentation based on historical data.
K-Means.py: Contains the code for loading data, preprocessing, building, and evaluating a K-Means clustering model.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
K-Means.pyscript:python K-Means.py
This project demonstrates the use of a machine learning pipeline to classify the Iris dataset using K-Nearest Neighbors (KNN) with Principal Component Analysis (PCA) for dimensionality reduction. The pipeline is optimized using GridSearchCV to find the best hyperparameters.
KNN_GridSearchCV.py: Contains the code for loading data, preprocessing, building, and evaluating a K-Nearest Neighbors classifier model with PCA and hyperparameter tuning using GridSearchCV.
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the KNN_GridSearchCV.py script:
python KNN_GridSearchCV.py
This project demonstrates the use of an Artificial Neural Network (ANN) to predict customer churn. The model is integrated with MLflow for experiment tracking, logging metrics, and saving artifacts.
ann_mlflow.py: Contains the code for loading data, preprocessing, building, training, and evaluating an ANN model. It also logs metrics, confusion matrix, and classification report using MLflow.- Data for this model is stored in `Churn_Modelin.csv
-
Clone the repository:
git clone https://github.com/vahidinj/Machine_Learning.git cd Machine_Learning -
Install the required dependencies:
pip install -r requirements.txt
-
Run the
ann_mlflow.pyscript:python ann_mlflow.py
-
View the MLflow UI to track experiments:
mlflow ui
Open
http://localhost:5000in your browser to view the logged metrics and artifacts.
- convolutional neural networks (CNN)
- Updated folder/file structure
- Python 3.x
- Required Python packages (listed in
requirements.txt)
Contributions are welcome! Please feel free to submit a pull request or open an issue. Any feedback is also very welcomed and encouraged.
- Python 3.x
- Required Python packages (listed in
requirements.txt)
Contributions are welcome! Please feel free to submit a pull request or open an issue. Any feedback is also very welcomed and encouraged.