Skip to content

Commit

Permalink
Remove Metadata for Ratings (#303)
Browse files Browse the repository at this point in the history
* comments on main places to erase

* erase main metadata rating properties from mixing
  • Loading branch information
ignacioct authored Jan 29, 2024
1 parent c4ce874 commit 528a4ac
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/distilabel/tasks/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ def to_argilla_dataset(
metadata_properties.append(
rg.IntegerMetadataProperty(name=f"length-{arg_name}-{idx}") # type: ignore
)
if arg_name == generations_column:
metadata_properties.append(
rg.FloatMetadataProperty(
name=f"{ratings_column}-{arg_name}-{idx}"
) # type: ignore
)
elif isinstance(dataset_row[arg_name], str):
metadata_properties.append(
rg.IntegerMetadataProperty(name=f"length-{arg_name}") # type: ignore
Expand Down Expand Up @@ -199,7 +193,7 @@ def to_argilla_record( # noqa: C901
else None,
}
)
metadata[f"{ratings_column}-{generations_column}-{idx}"] = value

if len(ratings) >= 2: # type: ignore
sorted_ratings = sorted(ratings, reverse=True) # type: ignore
metadata[f"distance-best-{ratings_column}"] = (
Expand Down

0 comments on commit 528a4ac

Please sign in to comment.