Write a function to fit a logistic regression model manually using gradient descent.
HardProblem Statement
Write a function to fit a logistic regression model manually using gradient descent.
Sample Input
Data Frame: x y 1 1 0 2 2 0 3 3 1 4 4 1
Sample Output
Fitted Coefficients: -5.6964 2.3867
Limits
Time: 2s · Memory: 256 MB