Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 138dc42

Browse filesBrowse files
2357juanItay
authored and
Itay
committed
MAINT Parameters validation for sklearn.preprocessing.robust_scale (scikit-learn#26086)
1 parent 0288bb2 commit 138dc42
Copy full SHA for 138dc42

File tree

Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed

‎sklearn/preprocessing/_data.py

Copy file name to clipboardExpand all lines: sklearn/preprocessing/_data.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,9 @@ def _more_tags(self):
16511651
return {"allow_nan": True}
16521652

16531653

1654+
@validate_params(
1655+
{"X": ["array-like", "sparse matrix"], "axis": [Options(Integral, {0, 1})]}
1656+
)
16541657
def robust_scale(
16551658
X,
16561659
*,

‎sklearn/tests/test_public_functions.py

Copy file name to clipboardExpand all lines: sklearn/tests/test_public_functions.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ def test_function_param_validation(func_module):
269269
("sklearn.decomposition.fastica", "sklearn.decomposition.FastICA"),
270270
("sklearn.decomposition.non_negative_factorization", "sklearn.decomposition.NMF"),
271271
("sklearn.preprocessing.minmax_scale", "sklearn.preprocessing.MinMaxScaler"),
272+
("sklearn.preprocessing.robust_scale", "sklearn.preprocessing.RobustScaler"),
272273
]
273274

274275

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.