Algorithm · ByteDance · Medium
Problem Create a basic logistic regression class using only NumPy. The class must provide train() and predict() methods. As part of the implementation, derive the logistic regression objective from the sigmoid derivative and obtain the binary cross-entropy loss. Input A training dataset made up of feature values and labels. Output The fitted logistic regression parameters. Predictions for previously unseen data. Interface Example Test Cases Training set: Features: [[1, 2],…
Checking your access…