A collection of machine learning projects and exercises in Python, implemented using Google Colab notebooks.
This repository is intended for learning, practicing, and experimenting with core ML concepts and algorithms using real & synthetic datasets.
Supervised Learning/Linear_Models/Linear_Regression_Basics.ipynb— Fundamentals of linear regression and evaluation techniques.Supervised Learning/Linear_Models/Ridge_and_Lasso_Regression_Basics.ipynb— Introduction to Ridge & Lasso regularized regression and the effect ofalpha.Supervised Learning/Linear_Models/Logistic_Regression_and_LinearSVC_Basics.ipynb— Basics of logistic regression and LinearSVC classifiers.Supervised Learning/Linear_Models/logistic_regression_regularization_breast_cancer.ipynb— Logistic regression with regularization on the Breast Cancer dataset.Supervised Learning/Linear_Models/LinearSVC_Multiclass_One_vs_Rest.ipynb— Multiclass classification using LinearSVC with one-vs-rest strategy.
Supervised Learning/Naive_Bayes_Classifiers/naive_bayes_basics.ipynb— GaussianNB, BernoulliNB, and MultinomialNB examples with guidance on usage.Supervised Learning/KNN/KNN_Classification_and_Regression.ipynb— KNN exercises covering classification and regression.Supervised Learning/KNN/Iris_Species_Classification.ipynb— Classifying Iris species using the KNN classifier.
Supervised Learning/Decision_Trees/Decision_tree_basics.ipynb— Decision tree fundamentals, splitting criteria, and visualization.Supervised Learning/Ensemble_methods/Random_Forest_Classification.ipynb— Random Forest classification and feature importance analysis.Supervised Learning/Ensemble_methods/Gradient_Boosting_Classification.ipynb— Gradient Boosting classifiers with parameter effects and examples.
Supervised Learning/SVM/svm_with_and_without_scaling.ipynb— Demonstrates the effect of scaling on SVM performance.Supervised Learning/SVM/svm_scaling_minmax_vs_standard.ipynb— Comparison between MinMaxScaler and StandardScaler for SVM.
Supervised Learning/Neural_Networks/MLPClassifier_Breast_Cancer_Scaling.ipynb— MLPClassifier on Breast Cancer dataset; examines scaling and training behavior.
Unsupervised Learning/Agglomerative_Clustering/Agglomerative_Clustering.ipynb— Hierarchical agglomerative clustering with dendrogram visualization.Unsupervised Learning/DBSCAN_Clustering/DBSCAN_clustering.ipynb— DBSCAN clustering, handling noise, and parameter selection.Unsupervised Learning/K-Means Clustering/KMeans_Clustering.ipynb— K-Means clustering with visualizations and comparison with PCA/NMF.
Preprocessing/data_preprocessing_minmaxscaler.ipynb— Data scaling using MinMaxScaler and why scaling matters for ML models.
Model Evaluation/Cross_Validation_Strategies.ipynb— k-fold and stratified cross-validation, evaluation metrics, and best practices.
Pipelines/Algorithm_Chains_and_Pipelines.ipynb— Building sklearn pipelines to combine preprocessing and estimators into clean workflows.
NLP/IMDB_Sentiment_Analysis.ipynb— IMDB sentiment analysis using Bag-of-Words, TF-IDF, and Logistic Regression. Covers data loading, preprocessing, feature extraction, model training, and evaluation using classical NLP techniques.
- Open the notebooks (
.ipynb) in Google Colab - Run the cells sequentially
- Observe results and modify code to experiment with parameters
- Python 3.x (already available in Colab)
- Libraries (pre-installed in Colab, otherwise install via pip):
numpypandasscikit-learnmatplotlibseaborn