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 |
Answered by
thinkall
Feb 24, 2024
Replies: 1 comment 1 reply
|
Hi azurechen97, There may be some feature transformation in AutoML, in that case, |
1 reply
Answer selected by
thinkall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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_transformerandlabel_transformerand use it together with the saved model.