Open ihainan opened 6 years ago
@ihainan Would you be able to have a look at a fix for this and submit a PR? I think we would need to support serializing doubles as positive and negative infinity in the JsonSupport file in the bundle-ml submodule of MLeap.
seems not resolved?
Hi there. I tried to train a Spark
BinaryLogisticRegressionModel
with a dataset whose labels are the same value and used this model to make predictions.The result looks fine:
After converting to MLeap model, the "probabilities" are all nulls, the prediction result is incorrect as well.
Spark Version: 2.1.1 MLeap Version: 0.7.0
Seems that Spark set the
intercept
parameter toDouble.PositiveInfinity
but MLeap can't handle this situation.