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

Use population bias correction in StandardizeYTransform std computation #589

Closed
wants to merge 1 commit into from

Conversation

Balandat
Copy link
Contributor

@Balandat Balandat commented Jun 8, 2021

torch.std by default uses the Bessel correction (normalize by N-1), but numpy.std does not (normalize by N). This causes the botorch models to warn about unnormalized data even though data is being normalized in the modelbridge.

This won't matter much from a statistical perspective (this is just data normalization and not inference after all), but it feels like addressing this in Ax may be more reasonable, since in BoTorch when people are asked to standardize their data they will most likely use torch.std with default args and it would be very confusing if that would not get rid of the warning.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 8, 2021
@facebook-github-bot
Copy link
Contributor

@Balandat has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@Balandat merged this pull request in 00a5436.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants