In the Python API for the machine learning library H2O, what is the correct way to convert a sparse Pandas DataFrame object to an H2OFrame object?
Asked
Active
Viewed 744 times
1 Answers
1
The recommended way appears to be to save your data as an SVMLight file, then use:
yourFrame = h2o.import_file(path="/path/to/test.svmlight")
See also this answer (for R): https://stackoverflow.com/a/32877906/841830
And for exporting to svmlight from panda: https://github.com/coreylynch/sklearn-transform

Community
- 1
- 1

Darren Cook
- 27,837
- 13
- 117
- 217
-
This exporting package only supports categorical variables. Are you aware of a package that supports continuous variables as well? – nojka_kruva Apr 19 '16 at 13:54
-
There is this related question: http://stackoverflow.com/q/9301191/841830 Does that help? – Darren Cook Apr 19 '16 at 17:47