Skip to content

Commit

Permalink
DRY code:
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzmeister committed Oct 29, 2020
1 parent 3fea11d commit 555ada7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions python/hsfs/training_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,14 @@ def save(
if isinstance(features, query.Query):
feature_dataframe = features.read("offline")
self._querydto = features
self._features = engine.get_instance().parse_schema_training_dataset(
feature_dataframe
)
else:
feature_dataframe = engine.get_instance().convert_to_default_dataframe(
features
)
self._features = engine.get_instance().parse_schema_training_dataset(
feature_dataframe
)

self._features = engine.get_instance().parse_schema_training_dataset(
feature_dataframe
)

self._set_label_features()

Expand Down

0 comments on commit 555ada7

Please sign in to comment.