Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. drf = H2ORandomForestEstimator(ntrees=5, max_depth=35 , weights_column="weights", nfolds=5, stopping_rounds=15, seed=55)
  2.  
  3. estimator = H2ORandomForestEstimator(weights_column="weights", nfolds=5, stopping_rounds=11, seed=55)
  4.  
  5. criteria = {
  6. "strategy": "RandomDiscrete",
  7. "stopping_tolerance": 0.001,
  8. "stopping_metric":"auc"
  9. }
  10.  
  11. hyper_parameters = {
  12. 'ntrees': [50, 100,200],
  13. 'max_depth': [5, 10, 25, 50],
  14. 'fold_assignment':['Stratified', 'Random']
  15. }
  16.  
  17. gs = H2OGridSearch(estimator, hyper_params=hyper_parameters, search_criteria=criteria)
  18.  
  19. gs.train(x=predictors, y=response, training_frame=train_data, validation_frame=valid_data)
  20.  
  21.  
  22. [OSError]: Job with key $03017f00000132d4ffffffff$_a07c1ae3a0a84dd4fa6dfc7a46904232 failed with an exception: java.lang.AssertionError: Cumulative capture rate must be 1.0, but is 0.9918032786885246
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement