Skip to content

[Bug]: save_to_json_file saves a value NaN which not compatible with json format #4144

@Ianmendonca

Description

@Ianmendonca

What happened?

from ax.api.client import Client

When i tried saving the Client to json using save_to_json_file(), it saved an value NaN which is not compatible with json. How to avoid this problem

Please provide a minimal, reproducible example of the unexpected behavior.

ValueError: Out of range float values are not JSON compliant

" "map_key_infos": [
{
"key": "step",
"default_value": NaN
}
],
"

Please paste any relevant traceback/logs produced by the example provided.

Ax Version

1.0.0

Python Version

3.11.2

Operating System

debian

(Optional) Describe any potential fixes you've considered to the issue outlined above.

No response

Pull Request

None

Code of Conduct

  • I agree to follow Ax's Code of Conduct

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