Question: python, need help coding for solver and tol..Create an instance of LogisticRegression, setting solver = 'saga' and tol = 0 . 1 . Use cross

python, need help coding for solver and tol..Create an instance of LogisticRegression, setting solver='saga' and tol=0.1. Use cross_value_score() to estimate the model's out-of-sample performance on the dataset. Use 10-fold CV with accuracy as the metric. Print the scores for each fold, as well as mean score. Round all scores to 3 decimal places. my code: scores = cross_val_score(lr_mod, scaler, y, cv=10, scoring='accuracy', n_jobs=-1)
print('Scores: ', scores.round(3))
print('CV Score:', scores.mean().round(3))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!