Skip to content

A multiclass classification project using Logistic Regression with Python and scikit-learn. The model is evaluated using a classification report and achieves perfect precision, recall, and F1-score across all classes.

Notifications You must be signed in to change notification settings

btboilerplate/Logistic_Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Multiclass Logistic Regression Classification

Python scikit-learn Status

A machine learning project that demonstrates multiclass classification using Logistic Regression, along with detailed performance evaluation using a classification report.


πŸ“Œ Project Overview

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.


πŸ“ Project Structure

Logistic_Classification
β”‚
β”œβ”€β”€ Logistic_classification.ipynb
β”œβ”€β”€ classification_report.png
└── README.md


βš™οΈ Technologies Used

  • Python
  • NumPy
  • Pandas
  • scikit-learn
  • Jupyter Notebook

🧠 Machine Learning Model

  • Algorithm: Logistic Regression
  • Problem Type: Multiclass Classification
  • Evaluation Metric: Classification Report

πŸ“ˆ Model Evaluation

The model was evaluated using classification_report from scikit-learn.

πŸ” Classification Report Summary

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


πŸ–ΌοΈ Output Screenshot

Classification report generated after model evaluation:

Classification Report


πŸ“¦ Requirements

  • numpy
  • pandas
  • scikit-learn
  • matplotlib

▢️ How to Run

  1. Clone the repository
git clone https://github.com/btboilerplate/Logistic_Classification.git
  1. Install required libraries
pip install numpy pandas matplotlib scikit-learn
  1. Open Logistic_classification.ipynb and run all cells sequentially

πŸ§ͺ Key Observations

  • 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

πŸš€ Future Improvements

  • Test on larger and noisier datasets
  • Apply cross-validation
  • Compare with other classifiers such as SVM and Random Forest
  • Add confusion matrix visualization

About

A multiclass classification project using Logistic Regression with Python and scikit-learn. The model is evaluated using a classification report and achieves perfect precision, recall, and F1-score across all classes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published