code-intelligence icon indicating copy to clipboard operation
code-intelligence copied to clipboard

Notebook to compute stats about label bot

Open jlewi opened this issue 5 years ago • 1 comments

We need metrics about how many issues were labeled by the label bot and whether they are accurate or not.

The label bot adds a comment to each issue when it adds a label. It also leaves a comment if it can't predict labels with high enough accuracy.

If the label bot is wrong we can detect this by looking to see if someone removed the label applied by the label bot.

We should write some code to compute accuracy of the label bot.

The issue_triage project provides some code that could be a good starting point We can modify the code below to download recent issues for a specific repository https://github.com/kubeflow/code-intelligence/blob/23ff8f6a59b5f0a7eff12ca62b5aa152d993806d/py/issue_triage/triage.py#L394

We can then iterate over comments and events to look for label bot comments

jlewi avatar Nov 27 '19 05:11 jlewi

Issue-Label Bot is automatically applying the label kind/feature to this issue, with a confidence of 0.91. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Nov 27 '19 05:11 issue-label-bot[bot]