Skip to content

Commit 33700ce

Browse files
committed
add test
1 parent 19d2975 commit 33700ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/core/test_compare.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ def test_ae_no_tuning(sample_data_for_ae_compare):
102102
assert "likelihood_cls" in gp_params
103103

104104

105+
def test_ae_no_tuning_fix_params(sample_data_for_ae_compare):
106+
"""Test that model_params are correctly passed when tuning is disabled."""
107+
x, y = sample_data_for_ae_compare
108+
ae = AutoEmulate(
109+
x, y, models=["GaussianProcessRBF"], model_params={"posterior_predictive": True}
110+
)
111+
assert ae.best_result().model.model.posterior_predictive is True # pyright: ignore[reportAttributeAccessIssue]
112+
113+
105114
def test_get_model_subset():
106115
"""Test getting a subset of models based on pytroch and probabilistic flags."""
107116

0 commit comments

Comments
 (0)