Created
October 6, 2021 04:23
-
-
Save SajidLhessani/4b3c8caec791309abf07ccffdd06f66c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Call the 'fit' method of rcv and pass the train data to it | |
rcv.fit(X.iloc[:split], y.iloc[:split]) | |
# Call the 'best_params_' method to obtain the best parameters of C | |
best_C = rcv.best_params_['svc__C'] | |
# Call the 'best_params_' method to obtain the best parameters of kernel | |
best_kernel = rcv.best_params_['svc__kernel'] | |
# Call the 'best_params_' method to obtain the best parameters of gamma | |
best_gamma = rcv.best_params_['svc__gamma'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment