Skip to content

Saving predictions correctly #1810

Closed Answered by AdeelH
lcoandrade asked this question in Q&A
Jun 24, 2023 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

It seems like you're re-instantiating the Learner just before you make predictions. That means you're essentially predicting with a randomly initialized model.

  • You do not need to re-instantiate the Learner before making predictions if you already have it in memory.
  • If you do need to load a Learner from a model-bundle, use Learner.from_model_bundle(). See this or this.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@lcoandrade
Comment options

@AdeelH
Comment options

Answer selected by lcoandrade
@lcoandrade
Comment options

@AdeelH
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants