Skip to content

Commit

Permalink
[auto_trainer] fix get_offline deprecated function usage (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyal-Danieli authored Feb 6, 2024
1 parent 438128d commit 754c7cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions auto_trainer/auto_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ def _get_dataframe(
# Getting the dataset:
if mlrun.utils.StorePrefix.FeatureVector == store_uri_prefix:
# FeatureVector case:
fv = mlrun.datastore.get_store_resource(dataset.artifact_url)
label_columns = label_columns or dataset.meta.status.label_column
dataset = fs.get_offline_features(
dataset.meta.uri, drop_columns=drop_columns
).to_dataframe()
dataset = fv.get_offline_features(drop_columns=drop_columns).to_dataframe()

context.logger.info(f"label columns: {label_columns}")

Expand Down
Loading

0 comments on commit 754c7cb

Please sign in to comment.