Skip to content

Commit 5868761

Browse files
IwonaZglemaitreadrinjalali
authored
DOC add link to plot_isolation_forest.py (scikit-learn#26975)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com> Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
1 parent 3aa1054 commit 5868761

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sklearn/ensemble/_iforest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ class IsolationForest(OutlierMixin, BaseBagging):
199199
>>> clf = IsolationForest(random_state=0).fit(X)
200200
>>> clf.predict([[0.1], [0], [90]])
201201
array([ 1, 1, -1])
202+
203+
For an example of using isolation forest for anomaly detection see
204+
:ref:`sphx_glr_auto_examples_ensemble_plot_isolation_forest.py`.
202205
"""
203206

204207
_parameter_constraints: dict = {

0 commit comments

Comments
 (0)