Skip to content
This repository was archived by the owner on Jul 12, 2019. It is now read-only.

Commit b5429ab

Browse files
author
Fabian Pedregosa
committed
Removed unused parameters in least_angle
1 parent c6aaef8 commit b5429ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/linear_model/least_angle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def _get_gram(self):
385385
Gram = None
386386
return Gram
387387

388-
def fit(self, X, y, copy_X=True):
388+
def fit(self, X, y):
389389
"""Fit the model using X, y as training data.
390390
391391
parameters
@@ -702,7 +702,6 @@ def fit(self, X, y):
702702
"""
703703
X = np.asarray(X)
704704

705-
n_samples, n_features = X.shape
706705
# init cross-validation generator
707706
cv = check_cv(self.cv, X, y, classifier=False)
708707

0 commit comments

Comments
 (0)