Skip to content

Commit

Permalink
Restrict the training set of the RegressionRange model only to regres…
Browse files Browse the repository at this point in the history
…sions (#3746)
  • Loading branch information
PromiseFru authored Oct 26, 2023
1 parent b6291dc commit 798f215
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bugbug/models/regressionrange.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def get_labels(self):
classes = {}

for bug_data in bugzilla.get_bugs():
if "regression" not in bug_data["keywords"]:
continue

bug_id = int(bug_data["id"])
if "regressionwindow-wanted" in bug_data["keywords"]:
classes[bug_id] = 0
Expand Down

0 comments on commit 798f215

Please sign in to comment.