botorch icon indicating copy to clipboard operation
botorch copied to clipboard

[Feature Request] Suppress InputDataWarnings when using a non-Gaussian likelihood

Open crasanders opened this issue 2 years ago • 1 comments

🚀 Feature Request

I often work with binary data that I model using SingleTaskVariationalGP with a BernoulliLikelihood. I always get a warning that says InputDataWarning: Input data is not standardized. Please consider scaling the input to zero mean and unit variance. But it doesn't make sense to scale binary data. It would be nice if this warning were suppressed when using a non-Gaussian likelihood, or if there a flag you could set to suppress it.

crasanders avatar May 11 '23 19:05 crasanders

As a quick fix, you should be able to silence that warning with from botorch import settings; settings.validate_input_scaling(False).

The suggestion sounds extremely reasonable to me. I haven't done a deep dive into the relevant code, but intuitively it seems like input checks should be based on the likelihood rather than the model type.

esantorella avatar May 11 '23 21:05 esantorella