Commit c984097
authored
fix: evaluation docstring examples to use value=0 instead of value=None (#1520)
docs: fix Evaluation docstring examples to use value=0 instead of value=None
Update docstring examples in EvaluatorFunction and RunEvaluatorFunction
protocols to use value=0 instead of value=None, matching the type definition
which requires Union[int, float, str, bool] and does not allow None.
This change aligns with commit d11155e
which established that Evaluation score values cannot be None.
Changes:
- Update accuracy_evaluator example in EvaluatorFunction docstring
- Update llm_judge_evaluator error handling example
- Update average_accuracy example in RunEvaluatorFunction docstring
- Update accuracy_evaluator example in DatasetClient.run_experiment docstring1 parent 0246093 commit c984097
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
| 722 | + | |
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| |||
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
870 | | - | |
| 870 | + | |
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
| |||
0 commit comments