-
Notifications
You must be signed in to change notification settings - Fork 256
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
Required attribute Node@score is not defined error #201
Comments
Perhaps you should add Node@score attributes to all terminal (aka leaf) Node elements? Where did you get this XGBoost PMML file? Was it generated using JPMML-XGBoost? |
The xgboost pmml file was generated using the R pmml package |
It's probably incorrect/invalid then. According to the PMML specification, the Node@score attribute is required. Quoting http://dmg.org/pmml/v4-3/TreeModel.html: "it is the model provider's responsibility to make sure that it is not possible that the scoring process ends in a Node which does not have a score attribute. This includes scenarios with missing values where the final Node is not necessarily a leaf node." |
Please re-export your xgboost model using the R2PMML package. The generated PMML file will be about 50% smaller, and correct. |
Does the R2pmml package support complex feature transforms? |
Depends. But what good are those complex feature transforms of the R |
I am trying to move from a logistic regression model to xgboost. However, when I run my test cases on my new xgboost PMML I get the following error -
org.jpmml.evaluator.MissingAttributeException: Required attribute Node@score is not defined
Possible solutions?
The text was updated successfully, but these errors were encountered: