Logistic Regression
Overview
Logistic Regression is a linear classifier that models the probability of class membership using the logistic (sigmoid) function. It is well-suited for binary classification tasks and produces naturally calibrated probability outputs.
Parameters
| Parameter | Default | Description |
|---|---|---|
| Lambda | 0.0 | L2 regularization strength. Higher values penalize large weights and reduce overfitting. |
| Step Size | 0.01 | Optimizer step size for gradient descent |
| Max Iterations | 10000 | Maximum number of optimizer iterations (0 = unlimited) |
When to Use
- You have a binary classification problem (two classes)
- You want well-calibrated probability outputs
- Your decision boundary is approximately linear in feature space
- You need a simple, interpretable model
Limitations
Logistic Regression supports binary classification only. For multi-class problems, use Random Forest or Naive Bayes.
Probability Output
Logistic Regression produces probability estimates via the sigmoid function, which are naturally calibrated — a predicted probability of 0.7 means roughly 70% of such frames truly belong to the positive class.
Tips
- If the model underfits, decrease
lambda(less regularization) - If the model overfits, increase
lambda(more regularization) - The threshold for classification can be adjusted in the Prediction panel (default 0.5)