mljar-api-python icon indicating copy to clipboard operation
mljar-api-python copied to clipboard

predict on `Mljar(...)` instance that was fit in a previous python session does not allow `predict`

Open shadiakiki1986 opened this issue 7 years ago • 2 comments

In a previous python session, I ran model = Mljar(...) and model.fit(...) and it was fine. Upon closing the python session and opening a new one, doing model = Mljar(...) followed by model.predict(...) returns Can not run prediction. Please run fit method first, to start models training and to retrieve them ;) eventhough the fit method had been called earlier.

shadiakiki1986 avatar Jan 23 '18 06:01 shadiakiki1986

Thank you for reporting this. This works as designed. To get the best model reference you need call fit once again, however it will not train models again, just check if models are available and get information about best one, which will be used for predictions. Can you check if it works for you?

pplonski avatar Jan 23 '18 07:01 pplonski

And the new fit call would automatically identify that the datasets being passed to it are not already uploaded?

shadiakiki1986 avatar Jan 23 '18 13:01 shadiakiki1986