H2o glm no module error

514 views
Skip to first unread message

Naveen Madhire

unread,
Jun 11, 2016, 11:55:54 AM6/11/16
to H2O Open Source Scalable Machine Learning - h2ostream
Hi,

I am trying to see how h2o works and run a GLM example present here 

I have installed h2o using pip install on my machine.

However when I run the below commands, I get this error "AttributeError: 'module' object has no attribute 'glm'"

import h2o

# Start H2O on your local machine

h2o.init()

# Get help

help(h2o.glm)




Can anyone let me know if I want to install any other modules here ?

Erin LeDell

unread,
Jun 11, 2016, 6:37:51 PM6/11/16
to Naveen Madhire, H2O Open Source Scalable Machine Learning - h2ostream

We have deprecated the old Python h2o interface (which used to look like R's interface, the functions looking like h2o.glm, h2o.gbm, etc).  The booklets in that github folder are out of date and need to be removed/updated.  Sorry about that.

The latest Python booklet is always located here: http://docs.h2o.ai/h2o/latest-stable/h2o-docs/booklets/PythonBooklet.pdf.  It's linked on our main docs page http://www.h2o.ai/docs/ under Python documentation.

The new format is:

help(h2o.estimators.glm.H2OGeneralizedLinearEstimator)

Thanks,
Erin
--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Erin LeDell Ph.D.
Statistician & Machine Learning Scientist | H2O.ai

dan...@gmail.com

unread,
Jun 9, 2018, 9:01:54 PM6/9/18
to H2O Open Source Scalable Machine Learning - h2ostream
Hi Erin,
I am having similar issue with h2o.import_frame. Here's the eror msg:
AttributeError: module 'h2o' has no attribute 'import_frame'
I am using h20 3.10 version on Spyder. h2o.init() ran well and was able to connect to the h2o service running at 54321.

Anything I missed here?

Thanks
Daniel

Erin LeDell

unread,
Jun 11, 2018, 8:15:22 PM6/11/18
to dan...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream
please use `h2o.import_file()` instead.  i believe import_frame was
deprecated a while back

Erin LeDell

unread,
Jun 11, 2018, 8:15:58 PM6/11/18
to dan...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream
although h2o 3.10 is a very old version... so it might still exist. 
please update your h2o if you can!
Reply all
Reply to author
Forward
0 new messages