forked from facebook/Ax
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix: Correctly add noise to benchmark problems (facebook#3203)
Summary: Pull Request resolved: facebook#3203 There was this piece of incorrect logic: ``` df["mean"] = df["Y_true"] + np.random.normal(len(df)) * df["sem"] ``` `len(df)` is not the size/shape parameter; it's the mean. So this generates one single normal draw with mean `len(df)` and variance 1, then multiplies it by `df["sem"]`. This diff fixes that. Reviewed By: saitcakmak Differential Revision: D67521651 fbshipit-source-id: ef6d66761ac2ea023782a7347e841f0bdba7c5ce
- Loading branch information
1 parent
a9aeffb
commit 433b38f
Showing
2 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters