- Vary the relevant RBF parameters, C and gamma, logarithmically, varying by one order of magnitude at a time:
Cs = [0.001, 0.01, 0.1, 1, 10]gammas = [0.001, 0.01, 0.1, 1, 10]
- Finally, construct the parameter grid by making it into a dictionary. The SVM parameter dictionary key names begin with svc__, taking the pipeline SVM name and adding two underscores. This is followed by the parameter name within the SVM estimator, C and gamma:
param_grid = dict(svc__gamma=gammas, svc__C=Cs)