Skip to content

Commit

Permalink
[HWORKS-1161][APPEND] Fix model.to_dict when there's no td version (l…
Browse files Browse the repository at this point in the history
…ogicalclocks#232)

Co-authored-by: Javier de la Rúa Martínez <[email protected]>
  • Loading branch information
o-alex and javierdlrm authored May 1, 2024
1 parent 920ac39 commit f51af57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/hsml/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ def __init__(

self._model_engine = model_engine.ModelEngine()
self._feature_view = feature_view
if training_dataset_version is not None:
self._training_dataset_version = training_dataset_version
elif feature_view is not None:
self._training_dataset_version = training_dataset_version
if training_dataset_version is None and feature_view is not None:
if feature_view.get_last_accessed_training_dataset() is not None:
self._training_dataset_version = (
feature_view.get_last_accessed_training_dataset()
Expand Down

0 comments on commit f51af57

Please sign in to comment.