This project demonstrates how to build a logistic regression classifier from scratch using only NumPy—no machine learning libraries like scikit-learn were used for the algorithm itself. The goal is to understand and implement the underlying math, including the sigmoid function, gradient descent, and cross-entropy (log) loss.
- Logistic Regression fundamentals
- Implementation of the sigmoid activation function
- Loss function: Cross Entropy (Log Loss)
- Manual gradient descent optimization
- Accuracy evaluation on a real-world dataset (National Institute of Diabetes and Digestive and Kidney Diseases.)
The logistic regression algorithm is built upon:
- Gradient Descent for updating weights and bias.
Only essential libraries were used:
numpy
pandas
scikit-learn (for data preprocessing and train-test split)