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

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

Open
1 task done
jultou-raa opened this issue Mar 10, 2025 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@jultou-raa
Copy link

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
@jultou-raa jultou-raa added the bug Something isn't working label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant