Example code:
parameter_svc = {'C': [0.001, 0.01, 0.1]}
model_svc = GridSearchCV(SVC(random_state=rng), parameter_svc)
model_svc.fit(X_train, y_train)
If possible if I reduce the number of lines by doing
parameter_svc = {'C': [0.001, 0.01, 0.1]}
model_svc = GridSearchCV(SVC(random_state=rng), parameter_svc).fit(X_train, y_train)