@@ -194,7 +194,7 @@ class would be predicted.
194194 """
195195 if not hasattr (self , 'coef_' ) or self .coef_ is None :
196196 raise NotFittedError ("This %(name)s instance is not fitted"
197- "yet" % {'name' :type (self ).__name__ })
197+ "yet" % {'name' : type (self ).__name__ })
198198
199199 X = check_array (X , accept_sparse = 'csr' )
200200
@@ -266,7 +266,7 @@ def densify(self):
266266 self: estimator
267267 """
268268 msg = "Estimator, %(name)s, must be fitted before densifying."
269- check_is_fitted (self , "coef_" , msg = msg )
269+ check_is_fitted (self , "coef_" , msg = msg )
270270 if sp .issparse (self .coef_ ):
271271 self .coef_ = self .coef_ .toarray ()
272272 return self
@@ -296,7 +296,7 @@ def sparsify(self):
296296 self: estimator
297297 """
298298 msg = "Estimator, %(name)s, must be fitted before sparsifying."
299- check_is_fitted (self , "coef_" , msg = msg )
299+ check_is_fitted (self , "coef_" , msg = msg )
300300 self .coef_ = sp .csr_matrix (self .coef_ )
301301 return self
302302
@@ -360,11 +360,6 @@ def fit(self, X, y, n_jobs=1):
360360 y : numpy array of shape [n_samples, n_targets]
361361 Target values
362362
363- n_jobs : int, optional, default 1
364- The number of jobs to use for the computation.
365- If -1 all CPUs are used. This will only provide speedup for
366- n_targets > 1 and sufficiently large problems.
367-
368363 Returns
369364 -------
370365 self : returns an instance of self.
0 commit comments