mljar / mljar-api-python

A simple python wrapper over MLJAR API.
https://docs.mljar.com/
Apache License 2.0
42 stars 10 forks source link

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

Open shadiakiki1986 opened 6 years ago

shadiakiki1986 commented 6 years ago

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.

pplonski commented 6 years ago

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?

shadiakiki1986 commented 6 years ago

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