Created
August 23, 2021 21:56
-
-
Save SajidLhessani/6441be71755340b61cc989cd1bf8ee81 to your computer and use it in GitHub Desktop.
This file contains hidden or 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