@@ -941,15 +942,15 @@ def validate_target_values(problem_paths, dataset_path, problem_description, dat
if'binary'intask_keywords:
ifnumber_distinct_values!=2:
print("ERROR: Problem {problem_paths} has 'binary' keyword, but target column does not have 2 distinct values, but {number_distinct_values}.".format(
problem_paths=problem_paths,
print("ERROR: Problem {problem_path} has 'binary' keyword, but target column does not have 2 distinct values, but {number_distinct_values}.".format(
problem_path=problem_path,
number_distinct_values=number_distinct_values,
))
error=True
elif'multiClass'intask_keywords:
ifnumber_distinct_values<3:
print("ERROR: Problem {problem_paths} has 'multiClass' keyword, but target column does not have more than 2 distinct values, but {number_distinct_values}.".format(
problem_paths=problem_paths,
print("ERROR: Problem {problem_path} has 'multiClass' keyword, but target column does not have more than 2 distinct values, but {number_distinct_values}.".format(
problem_path=problem_path,
number_distinct_values=number_distinct_values,
))
error=True
...
...
@@ -957,15 +958,15 @@ def validate_target_values(problem_paths, dataset_path, problem_description, dat
print("ERROR: Problem {problem_paths} uses '{metric}' metric, but target column does not have 2 distinct values, but {number_distinct_values}.".format(
problem_paths=problem_paths,
print("ERROR: Problem {problem_path} uses '{metric}' metric, but target column does not have 2 distinct values, but {number_distinct_values}.".format(
print("ERROR: Problem {problem_paths} provides 'posLabel' for metric '{metric}' with value '{value}', but possible values are: {distinct_values}".format(
problem_paths=problem_paths,
print("ERROR: Problem {problem_path} provides 'posLabel' for metric '{metric}' with value '{value}', but possible values are: {distinct_values}".format(
problem_path=problem_path,
metric=metric['metric'],
value=metric['posLabel'],
distinct_values=sorted(distinct_values),
...
...
@@ -973,13 +974,13 @@ def validate_target_values(problem_paths, dataset_path, problem_description, dat
print("ERROR: Problem {problem_paths} has a target '{target_index}' which does not match a column '{column_index}' in dataset '{dataset_path}' fully.".format(
problem_paths=problem_paths,
print("ERROR: Problem {problem_path} has a target '{target_index}' which does not match a column '{column_index}' in dataset '{dataset_path}' fully.".format(