Closed harupy closed 1 year ago
- serializes/deserializes the Spark model properly FAILED [info] "[binary:logistic]" did not equal "[reg:squarederror]" xgbc_169002594330__objective is not equivalent (SparkParityBase.scala:210)
The objective param is not saved / loaded correctly.
CC @jsleight
Preserve
objective
when serializingXGBoostClassificationModel
.objective
is used intransform
:https://github.com/dmlc/xgboost/blob/a65ad0bd9c26ff0ce4cb842d3312064cd1e9eadc/jvm-packages/xgboost4j-spark/src/main/scala/ml/dmlc/xgboost4j/scala/spark/XGBoostClassifier.scala#L396