Skip to content

Commit

Permalink
Merge pull request #10 from tryolabs/hotfix/extra-model-validation-on…
Browse files Browse the repository at this point in the history
…-predict

Validation on loading model
  • Loading branch information
FlorenciaOjeda authored Jun 28, 2024
2 parents 162dc22 + 29c5270 commit c87507a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions challenge/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,7 @@ def predict(
Returns:
(List[int]): predicted targets.
"""
if self._model is None:
self.__load_model(MODEL_PATH)
predictions = self._model.predict(features)
return predictions.tolist()

0 comments on commit c87507a

Please sign in to comment.