Skip to content

[Bug]: relativize_data does not take into account sem set to None at experiment definition. #3484

@jultou-raa

Description

@jultou-raa

What happened?

When utilizing an output metric with SEM set to None for inference by BOTorch, I encountered a TypeError when using the relativize option in the plot_slice_plotly function.

Error Message:

TypeError: unsupported operand type(s) for ** or pow(): 'NoneType' and 'int'

Cause: The error occurs because the relativize_data function is passing None to the relativize function within the ax.plot.helper method (specifically at line 765).

Image

Expected Behavior: The relativize_data function should handle the None value appropriately, without resulting in a TypeError by using the inferred value.

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

You can apply the example from the tutorial page by using relative=True in any function capable of relativizing to the status quo, which will implicitly invoke relativize_data.

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

Ax Version

0.5.0

Python Version

3.12.9

Operating System

Windows

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