Skip to content
Permalink
Browse files

added example of structured search spaces

  • Loading branch information...
claesenm committed Jul 3, 2015
1 parent 9092584 commit 951e1eedba1b2f1e446f2a8b15e7854818c63a08
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/examples/python/sklearn/svc_structured.py
@@ -81,7 +81,7 @@ def inner_cv(x_train, y_train, x_test, y_test, kernel='linear', C=0, gamma=0, de
return optunity.metrics.roc_auc(y_test, decision_values)

# optimize parameters
optimal_pars, _, _ = optunity.maximize_structured(inner_cv, space, 50, pmap=optunity.pmap)
optimal_pars, _, _ = optunity.maximize_structured(inner_cv, space, 70, pmap=optunity.pmap)
print('optimal parameters after tuning %s' % str(optimal_pars))
# if you are running this in IPython, optunity.pmap will not work
# more info at: https://github.com/claesenm/optunity/issues/8

0 comments on commit 951e1ee

Please sign in to comment.
You can’t perform that action at this time.