-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add pre-processing to PMML #16199
Comments
According to @narasimhard : Customer already has written a library to translate H2O-3 mojo to PMML: They are currently using a JAVA env to convert here is a reference: https://github.com/jpmml/jpmml-h2o?tab=readme-ov-file#the-java-side-of-operations java -jar pmml-h2o-example/target/pmml-h2o-example-executable-1.2-SNAPSHOT.jar --mojo-input mojo.zip --pmml-output mojo.pmml Using Intellij, I was able to generate pmml from h2o-3 mojo using their org.jpmml.h2o.example.Main.java. |
This really can be done!!! New info: in GLMMojoModelBaseConverter.java, lines 86-111, it did ask for missing value treatment. The ImputerUtil.java is the place to add missing value treatment!!! It is called in ln 103. Inside ImputerUtil.java, line 40 is the way to add what replacement value to add if we want to deal with missing values. This will add content to the decorator field. Looks like this is all we need to do.
|
line 85 of converter.java is where the missing value treatment is added to the encoder as decorator. schema = toMojoModelSchema(schema); // goto XGBoost.... |
A customer wants to add simple pre-processing to XGBoost mojo. However here is the trick:
What I know is that we can add preprocessing to current model and use a flag to enable it as it would be disabled by default.
This is do-able. See comments below.
The text was updated successfully, but these errors were encountered: