Skip to content

Commit

Permalink
Remove name comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hmstepanek committed Dec 13, 2022
1 parent d025142 commit 8bbb79e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions newrelic/hooks/mlmodel_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,10 @@ def wrap_metric_scorer(wrapped, instance, args, kwargs):
if not isinstance(score, (str, int, float, bool)):
if hasattr(score, "__iter__"):
for i, s in enumerate(score):
# ModelName/TrainingStep/<training_step>/accuracy_score[<score_result_index>]
transaction._add_agent_attribute(
"%s/TrainingStep/%s/%s[%s]" % (model_name, training_step, wrapped.__name__, i), s
)
else:
# ModelName/TrainingStep/<training_step>/accuracy_score
transaction._add_agent_attribute("%s/TrainingStep/%s/%s" % (model_name, training_step, wrapped.__name__), score)
return score

Expand Down

0 comments on commit 8bbb79e

Please sign in to comment.