changed SVM hyperparameters
This commit is contained in:
parent
06bd8481cd
commit
a6df94131c
8
SVM.py
8
SVM.py
|
@ -51,10 +51,10 @@ class SVM:
|
|||
|
||||
pipeline = Pipeline([('perc', selector), ('SVC', SVC())])
|
||||
|
||||
grid = GridSearchCV(pipeline, {'perc__percentile': [50, 100],
|
||||
'SVC__kernel': ['linear','poly','rbf','sigmoid'],
|
||||
'SVC__gamma': [0.01, 0.1],
|
||||
'SVC__C': [0.01, 0.1]},
|
||||
grid = GridSearchCV(pipeline, {'perc__percentile': [25, 50, 75, 100],
|
||||
'SVC__kernel': ['linear','poly'],
|
||||
'SVC__gamma': [0.001, 0.01],
|
||||
'SVC__C': [0.1, 1]},
|
||||
cv=skf,
|
||||
scoring=make_scorer(f1_score))
|
||||
|
||||
|
|
Loading…
Reference in New Issue