Skip to content

Commit 09dfc6d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8564980 commit 09dfc6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pydra_ml/report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def performance_table(df, output_dir, round_decimals=2):
4646
output_dir,
4747
f"test-performance-table_{metric}_all-splits_{timestamp}.csv",
4848
),
49-
float_format='%.2f'
49+
float_format="%.2f",
5050
)
5151

5252
# null
@@ -65,7 +65,7 @@ def performance_table(df, output_dir, round_decimals=2):
6565
# Save median score with median null score in square brackets as strings
6666

6767
df_summary = pd.DataFrame(index=[0], columns=classifier_names)
68-
df_summary[classifier_names] = ''
68+
df_summary[classifier_names] = ""
6969

7070
for clf in classifier_names:
7171
data_median = round(df_metric_data_clean_median[clf], round_decimals)

pydra_ml/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def calc_metric(output, metrics):
118118
for metric in metrics:
119119
metric_mod = __import__("sklearn.metrics", fromlist=[metric])
120120
metric_func = getattr(metric_mod, metric)
121-
if metric == 'roc_auc_score' and output[2] is not None:
121+
if metric == "roc_auc_score" and output[2] is not None:
122122
# For roc_auc_score, we need to pass the probability of the positive class
123123
score.append(metric_func(output[0], output[2][:, 1]))
124124
else:

0 commit comments

Comments
 (0)