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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants