Fit a Logistic Regression and Predict Binary Labels
Role: Data Scientist
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Train a binary scikit-learn logistic regression with fixed hyperparameters and return hard 0 or 1 labels for the test rows. It tests the basic fit and predict workflow, the decision rule behind predict, and the shape and dtype of the returned labels.