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

Exponential Notation is not allowed anymore #4080

Closed
immonomono opened this issue Aug 18, 2021 · 4 comments · Fixed by #4261
Closed

Exponential Notation is not allowed anymore #4080

immonomono opened this issue Aug 18, 2021 · 4 comments · Fixed by #4261
Assignees
Labels
bug Something isn't working user raised

Comments

@immonomono
Copy link

Describe the issue:
After when I update version to 2.4, exponential notation is not working.

When I use v2.1, exponential notation was no issue
{
"weightDecay": {"_type":"uniform", "_value":[1e-7, 1e-5]}
}

from v2.4, following error was occured
ERROR (nni.common.hpo_utils/Thread-1) search space "weightDecay" (uniform) must have float values : OrderedDict([('_type', 'uniform'), ('_value', ['1e-7', '1e-5'])])

But when I convert exponential notation to float, it is working.
Should I not use exponential notation?

Environment:

  • NNI version: 2.4
  • Training service (local|remote|pai|aml|etc): local
  • Client OS: Red Hat
  • Server OS (for remote mode only):
  • Python version: 3.8
  • PyTorch/TensorFlow version: PyTorch 1.8.1
  • Is conda/virtualenv/venv used?: virtualenv
  • Is running in Docker?: No

Configuration:

  • Search space:
    {
    "weightDecay": {"_type":"uniform", "_value":[1e-7, 1e-5]}
    }

Log message:

  • dispatcher.log:
    ERROR (nni.common.hpo_utils/Thread-1) search space "weightDecay" (uniform) must have float values : OrderedDict([('_type', 'uniform'), ('_value', ['1e-7', '1e-5'])])
@QuanluZhang
Copy link
Contributor

@immonomono , thanks for reporting this issue! we have reproduced this issue, will fix it soon.

@QuanluZhang
Copy link
Contributor

@immonomono , upgrading pyyaml to >= 5.4 can resolve this issue. we will update the dependency in NNI v2.5

@immonomono
Copy link
Author

@QuanluZhang, Thanks for the kind explanation.

@scarlett2018 scarlett2018 added bug Something isn't working 2.4_regression labels Sep 26, 2021
@ultmaster ultmaster linked a pull request Oct 21, 2021 that will close this issue
@liuzhe-lz
Copy link
Contributor

Fixed in v2.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user raised
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants