cloudsandai
Binary Classification: Logistic Regression
Explore how logistic regression estimates class probabilities, draws a decision boundary, and turns probabilities into predictions using a threshold.
Section A
Explore the dataset
Predict whether a student passes based on study hours and practice tests. Class 1 is pass; class 0 is fail. Incomplete rows are ignored.
| Study hours | Practice tests | Outcome | Action |
|---|---|---|---|
14 complete observations
Section C
Decision boundary
The shaded regions show the predicted class; the line marks where the model probability equals the selected threshold.
Fail (class 0) Pass (class 1) Decision boundary
Section D
Train and evaluate
Ready for training.
Log loss
0.693
Accuracy
50.0%
Precision
50.0%
Recall
100.0%
Confusion matrix · rows are actual, columns are predicted
| Predicted fail | Predicted pass | |
|---|---|---|
| Actual fail | 0 | 7 |
| Actual pass | 0 | 7 |
Training step 0 of 100 · probabilities become labels at the selected threshold.