Analyzing cross-validation metrics
Now you have performed cross-validation, it's time to analyze the results.
You will display the mean, standard deviation, and 95% confidence interval for cv_results
, which has been preloaded for you from the previous exercise.
numpy
has been imported for you as np
.
This exercise is part of the course
Supervised Learning with scikit-learn
Exercise instructions
- Calculate and print the mean of the results.
- Calculate and print the standard deviation of
cv_results
. - Display the 95% confidence interval for your results using
np.quantile()
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Print the mean
print(____(____))
# Print the standard deviation
print(____(____))
# Print the 95% confidence interval
print(____(____, [____, ____]))