You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to run ADK evaluation on my agent but I'm encountering the following error: "AttributeError: 'float' object has no attribute 'item'". Here are the details:
I'm using google-adk version 1.1.1, but I've also tried 0.0.4 and 1.0.0 with the same error.
The eval-set I'm using was generated via ADK Web.
I've executed the tests using both pytest and the adk eval CLI, and both produce the same results.
The error appears to originate from the response_evaluator, specifically this line.
self = <google.adk.evaluation.response_evaluator.ResponseEvaluator object at 0x00000141C47D2030>
eval_result = EvalResult(summary_metrics={'row_count': 1, 'rouge_1/mean': nan, 'rouge_1/std': np.float64(nan)}, metrics_table= ...e_1/score
0 { "audit_transaction": { "request_docume... ... None
[1 rows x 6 columns], metadata=None)
def _get_score(self, eval_result) -> float:
> return eval_result.summary_metrics[f"{self._metric_name}/mean"].item()
E AttributeError: 'float' object has no attribute 'item'
..\.env\Lib\site-packages\google\adk\evaluation\response_evaluator.py:120: AttributeError
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm attempting to run ADK evaluation on my agent but I'm encountering the following error:
"AttributeError: 'float' object has no attribute 'item'"
. Here are the details:I'm using google-adk version 1.1.1, but I've also tried 0.0.4 and 1.0.0 with the same error.
The eval-set I'm using was generated via ADK Web.
I've executed the tests using both pytest and the adk eval CLI, and both produce the same results.
The error appears to originate from the response_evaluator, specifically this line.
test_config.json.txt
analyze_agent.test.json.txt
test_analyze_agent.py.txt
TestResults.txt
Any guidance would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions