Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training the test group selection model failed due to a division by zero error #4196

Closed
suhaibmujahid opened this issue May 22, 2024 · 0 comments · Fixed by #4212
Closed
Assignees
Labels
bug Something isn't working

Comments

@suhaibmujahid
Copy link
Member

https://community-tc.services.mozilla.com/tasks/BDt8JybuSBSNkkIeabJ8Kw/runs/1/logs/public/logs/live.log:

Traceback (most recent call last):
  File "/usr/local/bin/bugbug-train", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/scripts/trainer.py", line 141, in main
    retriever.go(args)
  File "/usr/local/lib/python3.12/site-packages/scripts/trainer.py", line 41, in go
    metrics = model_obj.train(limit=args.limit)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/bugbug/model.py", line 574, in train
    self.evaluation()
  File "/usr/local/lib/python3.12/site-packages/bugbug/models/testselect.py", line 865, in evaluation
    do_eval(executor, confidence_threshold, reduction, cap, minimum)
  File "/usr/local/lib/python3.12/site-packages/bugbug/models/testselect.py", line 831, in do_eval
    100
ZeroDivisionError: division by zero
@suhaibmujahid suhaibmujahid added the bug Something isn't working label May 22, 2024
@marco-c marco-c self-assigned this May 31, 2024
@marco-c marco-c linked a pull request May 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants