Skip to content

Instantly share code, notes, and snippets.

@SajidLhessani
Created October 6, 2021 04:23
Show Gist options
  • Save SajidLhessani/4b3c8caec791309abf07ccffdd06f66c to your computer and use it in GitHub Desktop.
Save SajidLhessani/4b3c8caec791309abf07ccffdd06f66c to your computer and use it in GitHub Desktop.
# 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