changed hyperparameters
This commit is contained in:
parent
549f21657c
commit
03d96987b8
@ -3,6 +3,8 @@ Naive Bayes Classifier
|
|||||||
======================
|
======================
|
||||||
|
|
||||||
basic implementation of naive bayes.
|
basic implementation of naive bayes.
|
||||||
|
prints out probabilities for classes.
|
||||||
|
needed for interactive labeling.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from CsvHandler import CsvHandler
|
from CsvHandler import CsvHandler
|
||||||
|
6
SVM.py
6
SVM.py
@ -52,10 +52,10 @@ class SVM:
|
|||||||
|
|
||||||
pipeline = Pipeline([('perc', selector), ('SVC', SVC())])
|
pipeline = Pipeline([('perc', selector), ('SVC', SVC())])
|
||||||
|
|
||||||
grid = GridSearchCV(pipeline, {'perc__percentile': [25, 50, 75],
|
grid = GridSearchCV(pipeline, {'perc__percentile': [50, 75],
|
||||||
'SVC__kernel': ['linear'],
|
'SVC__kernel': ['linear'],
|
||||||
'SVC__gamma': [0.000001, 0.00001, 0.0001, 0.001],
|
'SVC__gamma': [0.00001, 0.0001],
|
||||||
'SVC__C': [0.001, 0.01, 0.1, 1, 10]},
|
'SVC__C': [0.1, 1]},
|
||||||
cv=skf,
|
cv=skf,
|
||||||
scoring=make_scorer(f1_score))
|
scoring=make_scorer(f1_score))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user