Skip to content

Commit

Permalink
deleted superfluos if at line 24
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaPieri committed Aug 21, 2023
1 parent 42748d0 commit 774e095
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nlgmetricverse/meta_eval/metrics_correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def metrics_correlation(
predictions,
references,
metrics,
correlation_measures=None
correlation_measures=CorrelationMeasures.Pearson
):
"""
Calculates the correlation between different metrics, with the possibility of choosing
Expand All @@ -21,8 +21,6 @@ def metrics_correlation(
:param metrics: List of metrics
:param correlation_measures: The correlation technique to apply
"""
if correlation_measures is None:
correlation_measures = [CorrelationMeasures.Pearson]
if len(metrics) < 2:
raise ValueError("'metric' length must be at least 2")
if not isinstance(predictions, list) and not isinstance(references, list):
Expand Down

0 comments on commit 774e095

Please sign in to comment.