(X1, y1, X2, y2)
| 47 | return X_train, y_train |
| 48 | |
| 49 | def 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 | |
| 58 | def plot_margin(X1_train, X2_train, clf): |
| 59 | def f(x, w, b, c=0): |
no outgoing calls
no test coverage detected