Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-golts committed May 23, 2024
1 parent d3de881 commit e16af1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fuse/eval/metrics/libs/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import Sequence, Union
from scipy.stats import pearsonr


class Stat:
"""
Statistical metrics
Expand Down Expand Up @@ -39,6 +40,6 @@ def pearson_correlation(
statistic, p_value = pearsonr(pred, target)

results = {}
results['statistic'] = statistic
results['p_value'] = p_value
results["statistic"] = statistic
results["p_value"] = p_value
return results

0 comments on commit e16af1d

Please sign in to comment.