Skip to content

Commit

Permalink
FIX: initialize_models add prefit
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadhussein462 committed Dec 9, 2024
1 parent 54613b8 commit d98be34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapie_v1/integration_tests/tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_intervals_and_predictions_exact_equality_split(
"random_state": RANDOM_STATE,
}

v0, v1 = initialize_models("split", v0_params, v1_params)
v0, v1 = initialize_models(cv, v0_params, v1_params)
compare_model_predictions_and_intervals(v0=v0,
v1=v1,
X=X_split,
Expand Down Expand Up @@ -280,7 +280,7 @@ def initialize_models(
CrossConformalRegressor,
JackknifeAfterBootstrapRegressor]

if strategy_key == "split":
if strategy_key in ["split", "prefit"]:
v1_params = filter_params(SplitConformalRegressor.__init__, v1_params)
v1 = SplitConformalRegressor(**v1_params)

Expand Down

0 comments on commit d98be34

Please sign in to comment.