Skip to content

Commit

Permalink
Fix error in log.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Semmler committed Dec 22, 2023
1 parent c2fb34e commit 40c0893
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/re_classwise_shapley/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,15 @@ def log_datasets(datasets: pd.DataFrame):
for dataset_type in ["val_set", "test_set"]:
dataset = row[dataset_type]
dataset_name = row["dataset_name"]
repetition_id = str(row["repetition_id"])
mlflow.log_input(
mlflow.data.pandas_dataset.from_pandas(
dataset_to_dataframe(dataset),
targets=dataset.target_names[0],
name=f"{dataset_name}_{repetition_id}_{dataset_type}",
name=f"{dataset_name}_{dataset_type}",
),
tags={
"set": dataset_type,
"dataset": dataset_name,
"repetition": repetition_id,
},
)

Expand Down

0 comments on commit 40c0893

Please sign in to comment.