Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

revise comments

lizhijian6beef0b25431
diff --git a/dspy/evaluate/evaluate.py b/dspy/evaluate/evaluate.py
index 06ec4e63a..27358ed4f 100644
--- a/dspy/evaluate/evaluate.py
+++ b/dspy/evaluate/evaluate.py
@@ -142,7 +142,7 @@ class Evaluate:
# Truncate every cell in the DataFrame
df = df.applymap(truncate_cell)
- # Rename the 'correct' column to the name of the metric function
+ # Rename the 'correct' column to the name of the metric object
assert(callable(metric))
metric_name = metric.__name__ if isinstance(metric, types.FunctionType) else metric.__class__.__name__
df.rename(columns={'correct': metric_name}, inplace=True)