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

Function split_train

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

Source from the content-addressed store, hash-verified

38 return X1, y1, X2, y2
39
40def split_train(X1, y1, X2, y2):
41 X1_train = X1[:90]
42 y1_train = y1[:90]
43 X2_train = X2[:90]
44 y2_train = y2[:90]
45 X_train = np.vstack((X1_train, X2_train))
46 y_train = np.hstack((y1_train, y2_train))
47 return X_train, y_train
48
49def split_test(X1, y1, X2, y2):
50 X1_test = X1[90:]

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