Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Solve bug caused by scientific calculation errors #828

Merged
merged 2 commits into from
Mar 12, 2019

Conversation

PurityFan
Copy link
Contributor

When we calculate
self.s_max = math.floor(math.log(self.R, self.eta))
in Hyperband, we may cause a scientific calculation errors.

For example, R = 243(3^5), eta = 3, then s_max should be 5, but math.log(243, 3) = 4.999999...... That will make s_max turn to 4.

Solution: add epsilon(=1e-6) behind the expression to carry.

@PurityFan PurityFan changed the title Solve bugs caused by scientific calculation errors Solve bug caused by scientific calculation errors Mar 11, 2019
@xuehui1991 xuehui1991 merged commit c6b7cc8 into microsoft:master Mar 12, 2019
@PurityFan PurityFan deleted the bug branch March 13, 2019 06:15
@scarlett2018 scarlett2018 added this to the March 2019 Release v0.6 milestone Apr 1, 2019
@scarlett2018 scarlett2018 mentioned this pull request Apr 1, 2019
15 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants