Skip to content

Commit 0e9a50d

Browse files
committed
simplification in liblinear testing
1 parent 9b85282 commit 0e9a50d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scikits/learn/svm/tests/test_svm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def liblinear_prediction_function(farray , clas, labels):
434434
nw = len(weights)
435435
nv = nw / nlabels
436436

437-
D = np.column_stack([farray,np.array([1]).repeat(nf)]).ravel().repeat(nlabels)
437+
D = np.column_stack([farray,np.ones(nf)]).ravel().repeat(nlabels)
438438
W = np.tile(weights,nf)
439439
H = W * D
440440
H1 = H.reshape((len(H)/nw,nv,nlabels))

0 commit comments

Comments
 (0)