h2oai / h2o-3

H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
http://h2o.ai
Apache License 2.0
6.86k stars 1.99k forks source link

Mojo format error upon labels with newline #12312

Open exalate-issue-sync[bot] opened 1 year ago

exalate-issue-sync[bot] commented 1 year ago

When mojo is writing columns label in https://github.com/h2oai/h2o-3/blob/c46a83511d9b90ab2e078526e9c2284de9516ee8/h2o-core/src/main/java/hex/ModelMojoWriter.java#L246 Some label has newline in it

So when reading mojo back from model.ini in https://github.com/h2oai/h2o-3/blob/307794e5112fbd1deeb309cb4f0eaea88be8a33c/h2o-genmodel/src/main/java/hex/genmodel/ModelMojoReader.java#L180

More labels will be read than specified in n_columns, causing https://github.com/h2oai/h2o-3/blob/307794e5112fbd1deeb309cb4f0eaea88be8a33c/h2o-genmodel/src/main/java/hex/genmodel/ModelMojoReader.java#L179 To throw the Error {code} n_columns variable is too small. {code}

hasithjp commented 1 year ago

JIRA Issue Migration Info

Jira Issue: PUBDEV-5446 Assignee: New H2O Bugs Reporter: schwannden kuo State: Open Fix Version: N/A Attachments: N/A Development PRs: N/A