Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove correlation between the step size and the step direction (#2156)…
… (#2290) Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to make BoTorch better. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to BoTorch here: https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md --> ## Motivation This is a quick fix of #2156. In the ```botorch.utils.sampling.sample_polytope()```, both the step size ```rands``` and direction ```Rs``` are currently sampled using the same seed value. This can lead to strong correlation and induce sampling bias, particularly with a small number of steps (e.g., ```n=1```), as illustrated in #2156. Adding ```+1``` to the seed value for ```Rs``` helps to avoid such behaviour. ### Have you read the [Contributing Guidelines on pull requests](https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md#pull-requests)? Yes. Pull Request resolved: #2290 Test Plan: Not sure if any unit tests needed for that change. Reviewed By: esantorella Differential Revision: D57208858 Pulled By: Balandat fbshipit-source-id: 0653e751f4351a8f9ad2cf2625c93a3a5de7de63
- Loading branch information