Skip to content

Commit 75d37ef

Browse files
authored
Merge pull request #309 from xopt-org/heteroskedastic-warning
add warning for heteroskedastic GP constructor
2 parents b5a5c96 + 4e420fd commit 75d37ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

xopt/generators/bayesian/base_model.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from abc import ABC, abstractmethod
22
from typing import Dict, List, Union
3+
import warnings
34

45
import pandas as pd
56
import torch
@@ -183,7 +184,12 @@ def build_heteroskedastic_gp(
183184
suppressed within this method.
184185
185186
"""
186-
import warnings
187+
warnings.warn(
188+
"Heteroskedastic modeling has been removed from botorch due "
189+
"to numerical stability issues. A copy of the implementation "
190+
"is included in Xopt, however it may be unstable / buggy. "
191+
"Your results may vary."
192+
)
187193

188194
warnings.filterwarnings("ignore")
189195

0 commit comments

Comments
 (0)