Guest User

Untitled

a guest
Jan 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. space = hp.choice('classifier_type', [
  2. {
  3. 'type': 'naive_bayes',
  4. },
  5. {
  6. 'type': 'svm',
  7. 'C': hp.lognormal('svm_C', 0, 1),
  8. 'kernel': hp.choice('svm_kernel', [
  9. {'ktype': 'linear'},
  10. {'ktype': 'RBF', 'width': hp.lognormal('svm_rbf_width', 0, 1)},
  11. ]),
  12. },
  13. {
  14. 'type': 'dtree',
  15. 'criterion': hp.choice('dtree_criterion', ['gini', 'entropy']),
  16. 'max_depth': hp.choice('dtree_max_depth',
  17. [None, hp.qlognormal('dtree_max_depth_int', 3, 1, 1)]),
  18. 'min_samples_split': hp.qlognormal('dtree_min_samples_split', 2, 1, 1),
  19. },
  20. ])
Add Comment
Please, Sign In to add comment