1

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?

nojka_kruva
  • 1,454
  • 1
  • 10
  • 23

1 Answers1

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