Closed Mantj closed 4 years ago
Are you using the JPMML-SparkML-XGBoost library?
The label of XGBoostClassifier is binary,
The label should be categorical binary for classification work, but in your case it's continuous binary.
TLDR: you have a mismatch between your label column type vs. XGBoost objective functions vs. XGBoostClassifier
.
Most probably, you're using a regression objective function with XGBoostClassifier
.
Can someone help me with this error:
This error occurred when I save my trained PipeLineModel(vectorAssembler, XGBoostClassifier). The label of XGBoostClassifier is binary, and the version of my dependencies: