mljar-api-python
mljar-api-python copied to clipboard
predict on `Mljar(...)` instance that was fit in a previous python session does not allow `predict`
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.
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?
And the new fit call would automatically identify that the datasets being passed to it are not already uploaded?