Why I got different results using automl.predict() and automl.model.predict()? #1282
-
I trained a multi-classification LightGBM model via FLAML. But when I tested the model on the test set, I got completely different results on the same data by using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @azurechen97, There may be some feature transformation in AutoML, in that case, |
Beta Was this translation helpful? Give feedback.
Hi @azurechen97, There may be some feature transformation in AutoML, in that case,
automl.predict()
will be different fromautoml.model.predict()
. The code is here. You can pickle the trained automl instance and reuse it later. If you just want to use themodel.predict
(such as using mlflow autologging), you'll need to pickle thefeature_transformer
andlabel_transformer
and use it together with the saved model.