MachineLearning/logistic_regression library
🔢 Logistic Regression (binary, gradient descent)
A small, production-aware implementation of binary logistic regression trained with batch gradient descent. Supports multiple continuous features and an intercept term. Returns learned weights where the first weight is the intercept.
Contract:
- Input: feature matrix
X(n x m) and labelsywith values {0,1}. - Output: List
Time Complexity: O(epochs * n * m) Space Complexity: O(m)
Classes
- LogisticRegressionModel
- Thin adapter providing a fit/predict interface for logistic regression.