Skip to content

[FIX] Epoch not finished when using runtime budget #361

Closed
@ravinkohli

Description

@ravinkohli

NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://stackoverflow.com

Your issue may already be reported!
Also, please search on the issue tracker before creating one.

  • I'm submitting a ...
    • bug report

Issue Description

  • When Issue Happens
    When running test_train_pipeline_with_runtime (check test run here), I get ZeroDivisionError: float division by zero at this line.

  • Steps To Reproduce

    1. Run test_train_pipeline_with_runtime on reg_cocktail, I think we see the issue there because the default configuration is different and larger than that in development.

Expected Behavior

In case the epoch is not finished and hence N==0, we should raise a warning to the user but exit the function without the error otherwise its wasted func_eval_time even if the configuration performed well.

Current Behavior

When N==0 there is an error which leads to wasted func_eval_time as well as marking a configuration as crashed when it could have been good.

Possible Solution

Check if N==0 and raise a warning rather than the error.

Error message

ZeroDivisionError: float division by zero

Your Local environment

  • Operating System: Ubuntu, version: 20.04
  • Python, version: 3.8
  • Outputs of pip freeze or conda list

Make sure to add all the information needed to understand the bug so that someone can help.
If the info is missing, we'll add the 'Needs more information' label and close the issue until there is enough information.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions