Open wendycwong opened 10 months ago
Here, please follow the steps in the link: https://docs.h2o.ai/h2o/latest-stable/h2o-docs/mojo-quickstart.html .
However, for the java file, use this one instead PredictCsv.java:
Hence, make sure you have the following in your experiment folder:
You will do the following:
javac -cp .:h2o-genmodel.jar PredictCsv.java java -cp .:h2o-genmodel.jar PredictCsv.java mojoModelXXX.zip inputDataset.csv predictionOutput.csv
After you run the above commands you should be able to see your model prediction. The prediction.csv is the inputDataset.csv file.
This is the java file to have: PredictCsv.txt
Please change the name back to PredictCsv.java. I was not allowed to add the file with .java extension.
In our current documentation, we provided code on how to use our mojo to make one prediction here:
https://docs.h2o.ai/h2o/latest-stable/h2o-docs/mojo-quickstart.html
However, there are users that would like to have provide a dataset in a file, use the mojo to generate prediction in a csv file for data stored in the input dataset.
I have generated a file for exactly that.