You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

810 B

The exercice is validated is all questions of the exercice are validated
The question 1 is validated if the fitted logistic regression returns:
LogisticRegression(C=1.0, class_weight=None, dual=False, fit_intercept=True,
                   intercept_scaling=1, l1_ratio=None, max_iter=100,
                   multi_class='auto', n_jobs=None, penalty='l2',
                   random_state=0, solver='lbfgs', tol=0.0001, verbose=0,
                   warm_start=False)
The question 2 is validated if the predicted class is 0.
The question 3 is validated if the predicted probabilities are [0.61450526 0.38549474]
The question 4 is validated if the output is:
Coefficient: 
 [[0.81786797]]
Intercept: 
 [-0.87522391]
Score: 
 0.7142857142857143