-
Notifications
You must be signed in to change notification settings - Fork 0
/
20-test.py
15 lines (10 loc) · 1.21 KB
/
20-test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#XInfer=pd.DataFrame(X_train_scaled, columns=X_train.columns).head(20).values
#print(clf_svc.predict(XInfer))
#[0 0 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 0]
X_train_scaled.shape
#(4718, 25)
X_test_scaled.shape
#(2325, 25)
XInfer=pd.DataFrame(X_test_scaled, columns=X_train.columns).head(20).values
print(clf_svc.predict(XInfer))
#[1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 1]