@@ -165,7 +165,7 @@ class PCovC(LinearClassifierMixin, _BasePCov):
165165 n_components, or the lesser value of n_features and n_samples
166166 if n_components is None.
167167
168- n_outputs : int
168+ n_outputs_ : int
169169 The number of outputs when ``fit`` is performed.
170170
171171 classifier : estimator object
@@ -280,7 +280,7 @@ def fit(self, X, Y, W=None):
280280
281281 check_classification_targets (Y )
282282 self .classes_ = np .unique (Y )
283- self .n_outputs = 1 if Y .ndim == 1 else Y .shape [1 ]
283+ self .n_outputs_ = 1 if Y .ndim == 1 else Y .shape [1 ]
284284
285285 super ()._set_fit_params (X )
286286
@@ -305,7 +305,7 @@ def fit(self, X, Y, W=None):
305305 ", or `precomputed`"
306306 )
307307
308- multioutput = self .n_outputs != 1
308+ multioutput = self .n_outputs_ != 1
309309 precomputed = self .classifier == "precomputed"
310310
311311 if self .classifier is None or precomputed :
@@ -468,7 +468,7 @@ def decision_function(self, X=None, T=None):
468468 if X is not None :
469469 X = validate_data (self , X , reset = False )
470470
471- if self .n_outputs == 1 :
471+ if self .n_outputs_ == 1 :
472472 # Or self.classifier_.decision_function(X @ self.pxt_)
473473 return X @ self .pxz_ + self .classifier_ .intercept_
474474 else :
@@ -479,7 +479,7 @@ def decision_function(self, X=None, T=None):
479479 else :
480480 T = check_array (T )
481481
482- if self .n_outputs == 1 :
482+ if self .n_outputs_ == 1 :
483483 return T @ self .ptz_ + self .classifier_ .intercept_
484484 else :
485485 return [
0 commit comments