Guest User

Untitled

a guest
Feb 25th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Vasya=model.fit(chank1,answer1)
  2. a1=model.predict(Vasya,answer_t_1)
  3.  
  4. kf = KFold(n_splits=N)
  5. for train, test in kf.split(X):
  6. print("%s %s" % (train, test))
  7. X_train, X_test, y_train, y_test = X[train], X[test], y[train], y[test]
  8. model.fit(X_train, y_train)
  9. ...
  10.  
  11. kf = KFold(n_splits=N)
  12. results = cross_val_score(model, X, y, cv=kf)
Add Comment
Please, Sign In to add comment