From 2cc12c604af052daf5bb4a93f01aa1cd69523af2 Mon Sep 17 00:00:00 2001 From: Maxwell Date: Tue, 6 Jul 2021 16:59:25 +0800 Subject: [PATCH] DOC ensure IsolationForest passes numpydoc validation (#20437) --- maint_tools/test_docstrings.py | 1 - sklearn/base.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/maint_tools/test_docstrings.py b/maint_tools/test_docstrings.py index 9b23b1789ae..940f00c7313 100644 --- a/maint_tools/test_docstrings.py +++ b/maint_tools/test_docstrings.py @@ -59,7 +59,6 @@ DOCSTRING_IGNORE_LIST = [ "HistGradientBoostingRegressor", "HuberRegressor", "IncrementalPCA", - "IsolationForest", "Isomap", "IsotonicRegression", "IterativeImputer", diff --git a/sklearn/base.py b/sklearn/base.py index 9e762bc1cb7..552132c2512 100644 --- a/sklearn/base.py +++ b/sklearn/base.py @@ -789,8 +789,8 @@ class OutlierMixin: Parameters ---------- - X : {array-like, sparse matrix, dataframe} of shape \ - (n_samples, n_features) + X : {array-like, sparse matrix} of shape (n_samples, n_features) + The input samples. y : Ignored Not used, present for API consistency by convention.