Open raviraju opened 6 years ago
Hi, Ravi. You received the error because "family" is not a gridable parameter. Please see: http://docs.h2o.ai/h2o/latest-stable/h2o-docs/grid-search.html#glm-hyperparameters
Let me know if this helps and/or if you have any other questions. -Angela
Hi Angela,
I understand "family" isn't a gridable parameter, however I have used it to instantiate GLM model for Ordinal Regression and have specified hyper_parameters dictionary for grid parameters.
I used example in https://github.com/h2oai/h2o-3/blob/master/h2o-docs/src/product/tutorials/random%20hyperparmeter%20search%20and%20roadmap.md#examples-Python for reference
Hi Ravi:
I fixed the problem for Python and added tests to make sure R also works. Here is the PR https://github.com/h2oai/h2o-3/pull/2429. Will push it into master as soon as it passed the test.
Thank you for catching it, Wendy
Merged into master.
Hi Wendy,
Thanks for fix, Can u help me pull these changes using conda
Hi Ravi, Thank you again for pointing out the bug. The fix is in the master branch and will be available on anaconda.org with the 3.20.0.1 release. You can test this in regular Python by downloading the nightly build: http://h2o-release.s3.amazonaws.com/h2o/master/4305/index.html.
Sincerely, Angela
Used dataset (http://h2o-public-test-data.s3.amazonaws.com/bigdata/laptop/glm_ordinal_logit/ordinal_multinomial_training_set.csv) from tutorial to configure grid search
hyper_parameters = {'alpha': [0.01,0.3,0.5], 'lambda': [1e-5,1e-6,1e-7,1e-8]} gs = H2OGridSearch(H2OGeneralizedLinearEstimator(family='ordinal'), grid_id='ordinal_grid', hyper_params=hyper_parameters) gs.train(x=list(range(0,10)), y="C11", training_frame=train) gs.show()
glm Grid Build progress: |████████████████████████████████████100%
NotImplementedError Traceback (most recent call last)