Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

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

Open
shadiakiki1986 opened this issue Jan 23, 2018 · 2 comments

Comments

@shadiakiki1986
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants