From 1c930950374c73b4b75f92c68edbed6f5681bd66 Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Fri, 22 Mar 2024 18:07:59 +0000 Subject: [PATCH] Clean up --- mapie/regression/quantile_regression.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mapie/regression/quantile_regression.py b/mapie/regression/quantile_regression.py index 8f616718c..cc96d47cb 100644 --- a/mapie/regression/quantile_regression.py +++ b/mapie/regression/quantile_regression.py @@ -574,9 +574,7 @@ def fit( checked_estimator = self._check_estimator(self.estimator) alpha = self._check_alpha(self.alpha) X, y = indexable(X, y) - random_state = check_random_state( - random_state if random_state is not None else self.random_state - ) + random_state = check_random_state(random_state or self.random_state) results = self._check_calib_set( X, y,