Skip to content

Commit 830e749

Browse files
authored
chore: update EvalRunResult deprecation warning to 2.12 (#8957)
* chore: update EvalRunResult deprecation warning to 2.12 * Update warning message * format
1 parent f3c44be commit 830e749

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

haystack/evaluation/eval_run_result.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,21 +223,27 @@ def comparative_detailed_report(
223223

224224
def score_report(self) -> "DataFrame":
225225
"""Generates a DataFrame report with aggregated scores for each metric."""
226-
msg = "The `score_report` method is deprecated and will be changed to `aggregated_report` in Haystack 2.11.0."
226+
msg = (
227+
"The `score_report` method is deprecated and will be removed in Haystack 2.12.0. Use "
228+
"`aggregated_report` instead."
229+
)
227230
warn(msg, DeprecationWarning, stacklevel=2)
228231
return self.aggregated_report(output_format="df")
229232

230233
def to_pandas(self) -> "DataFrame":
231234
"""Generates a DataFrame report with detailed scores for each metric."""
232-
msg = "The `to_pandas` method is deprecated and will be changed to `detailed_report` in Haystack 2.11.0."
235+
msg = (
236+
"The `to_pandas` method is deprecated and will be removed in Haystack 2.12.0. Use `detailed_report` "
237+
"instead."
238+
)
233239
warn(msg, DeprecationWarning, stacklevel=2)
234240
return self.detailed_report(output_format="df")
235241

236242
def comparative_individual_scores_report(self, other: "EvaluationRunResult") -> "DataFrame":
237243
"""Generates a DataFrame report with detailed scores for each metric from two evaluation runs for comparison."""
238244
msg = (
239-
"The `comparative_individual_scores_report` method is deprecated and will be changed to "
240-
"`comparative_detailed_report` in Haystack 2.11.0."
245+
"The `comparative_individual_scores_report` method is deprecated will be removed in Haystack 2.12.0. Use "
246+
"`comparative_detailed_report` instead."
241247
)
242248
warn(msg, DeprecationWarning, stacklevel=2)
243249
return self.comparative_detailed_report(other, output_format="df")

0 commit comments

Comments
 (0)