Guest User

Untitled

a guest
Jan 23rd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from sklearn.learning_curve import learning_curve
  2. ...
  3.  
  4. def runit():
  5.  
  6. ...
  7. train_sizes, train_scores, test_scores = learning_curve(
  8. DecisionTreeClassifier(class_weight='balanced'), X, y, cv=5,
  9. train_sizes=train_sizes, n_jobs=4)
  10.  
  11. ...
  12. if __name__ == '__main__':
  13. runit()
Add Comment
Please, Sign In to add comment