From 94bddbc2008d6d2402bb0304f6f21062a52f3951 Mon Sep 17 00:00:00 2001 From: "pasquale c." <343guiltyspark@outlook.it> Date: Tue, 20 Aug 2024 00:45:14 +0200 Subject: [PATCH] added an if statement that check if ret_distr is set to false. --- src/conformal_models/inductive_bayes_regression.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/conformal_models/inductive_bayes_regression.jl b/src/conformal_models/inductive_bayes_regression.jl index d7f2720..9f62108 100644 --- a/src/conformal_models/inductive_bayes_regression.jl +++ b/src/conformal_models/inductive_bayes_regression.jl @@ -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