Question
Using the already defined RBF SVC model `m`, run two grid searches on the parameters C and gamma, for values [0.05, 0.5, 1, 5, 20,
Using the already defined RBF SVC model `m`, run two grid searches on the parameters C and gamma, for values [0.05, 0.5, 1, 5, 20, 100, 500]. The first grid search should find the model that best optimizes for recall. The second grid search should find the model that best optimizes for precision. How much better is the best recall (found by first grid search) than the best precision you found (result of second grid search)? (Compute the difference between these two as: recall - precision, to 3 decimal places)
(Training data are in X_train, y_train, and use y_test and X_test to compute precision and recall.)
1
2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started