Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 7, 2023
1 parent e993d7b commit e4b4b0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ludwig/data/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,9 +1364,7 @@ def build_dataset(
"chosen_value",
"rejected_value",
]
if not all(
param_name in global_preprocessing_parameters["reward"] for param_name in reward_parameter_names
):
if not all(param_name in global_preprocessing_parameters["reward"] for param_name in reward_parameter_names):
raise ValueError(f"Invalid reward training preprocessing parameters, expect {reward_parameter_names}.")

# Obtain column names and other values
Expand Down

0 comments on commit e4b4b0f

Please sign in to comment.