MCPcopy Index your code
hub / github.com/wepe/MachineLearning / split_test

Function split_test

SVM/SVM_by_QP/testSVM.py:49–56  ·  view source on GitHub ↗
(X1, y1, X2, y2)

Source from the content-addressed store, hash-verified

47 return X_train, y_train
48
49def split_test(X1, y1, X2, y2):
50 X1_test = X1[90:]
51 y1_test = y1[90:]
52 X2_test = X2[90:]
53 y2_test = y2[90:]
54 X_test = np.vstack((X1_test, X2_test))
55 y_test = np.hstack((y1_test, y2_test))
56 return X_test, y_test
57
58def plot_margin(X1_train, X2_train, clf):
59 def f(x, w, b, c=0):

Callers 3

test_linearFunction · 0.85
test_non_linearFunction · 0.85
test_softFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected