A machine learning project that demonstrates multiclass classification using Logistic Regression, along with detailed performance evaluation using a classification report.
This project implements a Logistic Regression classifier to predict multiple classes from a given dataset.
Model performance is evaluated using precision, recall, F1-score, and accuracy, showing perfect classification on the test data.
Logistic_Classification
β
βββ Logistic_classification.ipynb
βββ classification_report.png
βββ README.md
- Python
- NumPy
- Pandas
- scikit-learn
- Jupyter Notebook
- Algorithm: Logistic Regression
- Problem Type: Multiclass Classification
- Evaluation Metric: Classification Report
The model was evaluated using classification_report from scikit-learn.
| Class | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| 0 | 1.00 | 1.00 | 1.00 | 16 |
| 1 | 1.00 | 1.00 | 1.00 | 14 |
| 2 | 1.00 | 1.00 | 1.00 | 15 |
Overall Accuracy: 1.00
Total Samples: 45
Classification report generated after model evaluation:
- numpy
- pandas
- scikit-learn
- matplotlib
- Clone the repository
git clone https://github.com/btboilerplate/Logistic_Classification.git
- Install required libraries
pip install numpy pandas matplotlib scikit-learn
- Open Logistic_classification.ipynb and run all cells sequentially
- Perfect precision, recall, and F1-score for all classes
- Excellent class separability in the dataset
- Logistic Regression performed extremely well for this multiclass problem
- No misclassifications observed on the test data
- Test on larger and noisier datasets
- Apply cross-validation
- Compare with other classifiers such as SVM and Random Forest
- Add confusion matrix visualization
