From e51376797311527a73a6fb397ae1ce7aec96094f Mon Sep 17 00:00:00 2001 From: jawadhussein462 Date: Mon, 2 Dec 2024 09:31:49 +0100 Subject: [PATCH] update comment --- mapie/estimator/regressor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapie/estimator/regressor.py b/mapie/estimator/regressor.py index b6ee9ba41..121240f24 100644 --- a/mapie/estimator/regressor.py +++ b/mapie/estimator/regressor.py @@ -485,8 +485,8 @@ def fit_multi_estimators( if self.cv == "prefit": - # self.k_ is defined but not used - # Because it is among the fit attributes + # Create a placeholder attribute 'k_' filled with NaN values + # (This attribute is defined for consistency but is not used in prefit mode) self.k_ = np.full( shape=(n_samples, 1), fill_value=np.nan, dtype=float )