-
Notifications
You must be signed in to change notification settings - Fork 2
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
Warn about large un-transpileable model elements. #9
Comments
Now this is a proper "code too large" compiler error! I can see that you're attempting to transpile an XGBoost model, and the error happens in relation to a Do you have any idea which The PMML class model object is easily measurable. The workaround is to split a big method into smaller methods. A good threshold metric is the position of a decision tree model (eg. split method after every 100 decision trees). |
The method name Something like this: static
public MiningModel buildMiningModel(){
return new MiningModel().setMiningSchema(new MiningSchema()).setSegmentation(new Segmentation());
} To solve this "code too large" error you must restructure your XGBoost PMML file so that it would become transpile-able. The important thing to note is that XGBoost models can be represented in PMML in two ways - the default representation (missing value handling uses the The JPMML-Transpiler library can only transpile the compact representation right now. I believe that your XGBoost model is in the default representation. If you re-export or re-code it into the compact representation, then the transpilation should succeed without any "code too large" errors. |
Example XGBoost model in the compact representation: https://github.com/jpmml/jpmml-transpiler/blob/1.1.0/src/test/resources/pmml/XGBoostAuditNA.pmml |
Hi Villu,
Is this the other issue you were working on? |
@rhorrell This exception is definitely separate from the current "code too large" issue. Please open a new issue for each unique exception!
The transpiled You should be getting the same exception when evaluating this XGBoost model with the JPMML-Evaluator library in the normal "interpreted" mode. Most likely, your XGBoost model is invalid. What is/was your XGBoost-to-PMML conversion tool? |
Hi Villu,
I saw you still had some work to do to address the smaller model I sent you. Thank you.
I made an attempt to do the huge PMML (178MB) and I am getting the following error:
Any thoughts?
The text was updated successfully, but these errors were encountered: