在机器学习库 H2O 的 Python API 中,将稀疏 Pandas DataFrame 对象转换为 H2OFrame 对象的正确方法是什么?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.