Skip to content

Commit

Permalink
fix a typo #124
Browse files Browse the repository at this point in the history
  • Loading branch information
QinbinLi committed Feb 11, 2019
1 parent d06b21c commit 640b7b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ The usage of thundersvm scikit interface is similar to sklearn.svm.


##### SVM classification
*class SVC(kernel = 'rbf', degree = 3, gamma = 'auto', coef0 = 0.0, C = 1.0, tol = 0.001, probability = False, class_weight = None, shrinking = False, cache_size = None, verbose = False, max_iter = -1, n_jobs = -1, max_mem_size = -1, random_state = None, decison_function_shape = 'ovo')*
*class SVC(kernel = 'rbf', degree = 3, gamma = 'auto', coef0 = 0.0, C = 1.0, tol = 0.001, probability = False, class_weight = None, shrinking = False, cache_size = None, verbose = False, max_iter = -1, n_jobs = -1, max_mem_size = -1, random_state = None, decision_function_shape = 'ovo')*

*class NuSVC(kernel = 'rbf', degree = 3, gamma = 'auto', coef0 = 0.0, nu = 0.5, tol = 0.001, probability = False, shrinking = False, cache_size = None, verbose = False, max_iter = -1, n_jobs = -1, max_mem_size = -1, random_state = None, decison_function_shape = 'ovo')*
*class NuSVC(kernel = 'rbf', degree = 3, gamma = 'auto', coef0 = 0.0, nu = 0.5, tol = 0.001, probability = False, shrinking = False, cache_size = None, verbose = False, max_iter = -1, n_jobs = -1, max_mem_size = -1, random_state = None, decision_function_shape = 'ovo')*

##### One-class SVMs

Expand Down
8 changes: 4 additions & 4 deletions python/thundersvmScikit.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ def __init__(self, kernel = 'rbf', degree = 3,
gamma = 'auto', coef0 = 0.0, C = 1.0,
tol = 0.001, probability = False, class_weight = None,
shrinking = False, cache_size = None, verbose = False,
max_iter = -1, n_jobs = -1, max_mem_size = -1, random_state = None, decison_function_shape = 'ovo', gpu_id=0):
self.decison_function_shape = decison_function_shape
max_iter = -1, n_jobs = -1, max_mem_size = -1, random_state = None, decision_function_shape = 'ovo', gpu_id=0):
self.decision_function_shape = decision_function_shape
super(SVC, self).__init__(
kernel=kernel, degree=degree, gamma=gamma,
coef0=coef0, C=C, nu=0., epsilon=0.,
Expand All @@ -424,8 +424,8 @@ class NuSVC(SvmModel, ClassifierMixin):
def __init__(self, kernel = 'rbf', degree = 3, gamma = 'auto',
coef0 = 0.0, nu = 0.5, tol = 0.001,
probability = False, shrinking = False, cache_size = None, verbose = False,
max_iter = -1, n_jobs = -1, max_mem_size = -1, random_state = None, decison_function_shape = 'ovo', gpu_id=0):
self.decison_function_shape = decison_function_shape
max_iter = -1, n_jobs = -1, max_mem_size = -1, random_state = None, decision_function_shape = 'ovo', gpu_id=0):
self.decision_function_shape = decision_function_shape
super(NuSVC, self).__init__(
kernel = kernel, degree = degree, gamma = gamma,
coef0 = coef0, C = 0., nu = nu, epsilon= 0.,
Expand Down

0 comments on commit 640b7b0

Please sign in to comment.