Skip to content

Commit

Permalink
added an if statement that check if ret_distr is set to false.
Browse files Browse the repository at this point in the history
  • Loading branch information
pasq-cat committed Aug 19, 2024
1 parent 3599c30 commit 94bddbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/conformal_models/inductive_bayes_regression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ function BayesRegressor(
train_ratio::AbstractFloat=0.5,
)
@assert typeof(model) == LaplaceRegression "Model must be of type Laplace"
if model.ret_distr != false
@warn "model.ret_distr is not false. Setting model.ret_distr to false."
model.ret_distr = false
end
return BayesRegressor(model, coverage, nothing, heuristic, train_ratio)
end

Expand Down

0 comments on commit 94bddbc

Please sign in to comment.