We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 847d002 commit 28dcc2cCopy full SHA for 28dcc2c
scikits/learn/svm/base.py
@@ -109,7 +109,7 @@ class frequencies.
109
self._set_params(**params)
110
111
X = np.asanyarray(X, dtype=np.float64, order='C')
112
- y = np.asanyarray(y, dtype=np.float64)
+ y = np.asanyarray(y, dtype=np.float64, order='C')
113
sample_weight = np.asanyarray(sample_weight, dtype=np.float64)
114
115
if hasattr(self, 'kernel_function'):
@@ -138,8 +138,7 @@ class frequencies.
138
139
self.support_, self.support_vectors_, self.n_support_, \
140
self.dual_coef_, self.intercept_, self.label_, self.probA_, \
141
- self.probB_ = libsvm.fit(
142
- np.ascontiguousarray(X), np.ascontiguousarray(y),
+ self.probB_ = libsvm.fit(X, y,
143
svm_type=solver_type, sample_weight=sample_weight,
144
class_weight=class_weight,
145
class_weight_label=class_weight_label,
0 commit comments