Implement Logistic Regression with Gradient Descent in PyTorch
Easyclassical-mlauto-graded
Build binary logistic regression from scratch with sigmoid, binary cross-entropy, and manual gradient descent updates.
Solve it
Check your answer
The grader verifies properties of your implementation, so a correct solution written differently from ours still passes.
pip install torchleet
from torchleet import check
check("logistic-regression", sigmoid, bce_loss, train_logistic_regression)