Skip to content

Commit

Permalink
Validation on loading model
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorenciaOjeda committed Jun 28, 2024
1 parent 162dc22 commit 29c5270
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 29c5270

Please sign in to comment.