8000 [MRG] COSMIT Remove unused parameters in private functions (#9310) · paulha/scikit-learn@c2fb7fd · GitHub
[go: up one dir, main page]

Skip to content

Commit c2fb7fd

Browse files
jnothmanpaulha
authored andcommitted
[MRG] COSMIT Remove unused parameters in private functions (scikit-learn#9310)
* Remove unused parameter * COSMIT another unused parameter * COSMIT another unused parameter
1 parent 8d4e26b commit c2fb7fd

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

sklearn/datasets/kddcup99.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,14 @@ def fetch_kddcup99(subset=None, data_home=None, shuffle=False,
222222
return Bunch(data=data, target=target)
223223

224224

225-
def _fetch_brute_kddcup99(subset=None, data_home=None,
225+
def _fetch_brute_kddcup99(data_home=None,
226226
download_if_missing=True, random_state=None,
227227
shuffle=False, percent10=True):
228228

229229
"""Load the kddcup99 dataset, downloading it if necessary.
230230
231231
Parameters
232232
----------
233-
subset : None, 'SA', 'SF', 'http', 'smtp'
234-
To return the corresponding classical subsets of kddcup 99.
235-
If None, return the entire kddcup 99 dataset.
236-
237233
data_home : string, optional
238234
Specify another download and cache folder for the datasets. By default
239235
all scikit-learn data is stored in '~/scikit_learn_data' subfolders.

sklearn/model_selection/_split.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ class StratifiedKFold(_BaseKFold):
566566
def __init__(self, n_splits=3, shuffle=False, random_state=None):
567567
super(StratifiedKFold, self).__init__(n_splits, shuffle, random_state)
568568

569-
def _make_test_folds(self, X, y=None, groups=None):
569+
def _make_test_folds(self, X, y=None):
570570
if self.shuffle:
571571
rng = check_random_state(self.random_state)
572572
else:

sklearn/neural_network/multilayer_perceptron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def partial_fit(self):
640640
% self.solver)
641641
return self._partial_fit
642642

643-
def _partial_fit(self, X, y, classes=None):
643+
def _partial_fit(self, X, y):
644644
return self._fit(X, y, incremental=True)
645645

646646
def _predict(self, X):

0 commit comments

Comments
 (0)
0