Skip to content

Commit 5741bac

Browse files
authored
DOC: Update the references for Isolation forest (scikit-learn#32554)
1 parent 6fedf34 commit 5741bac

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

doc/modules/outlier_detection.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ lengths for particular samples, they are highly likely to be anomalies.
280280
The implementation of :class:`ensemble.IsolationForest` is based on an ensemble
281281
of :class:`tree.ExtraTreeRegressor`. Following Isolation Forest original paper,
282282
the maximum depth of each tree is set to :math:`\lceil \log_2(n) \rceil` where
283-
:math:`n` is the number of samples used to build the tree (see (Liu et al.,
284-
2008) for more details).
283+
:math:`n` is the number of samples used to build the tree (see [1]_
284+
for more details).
285285

286286
This algorithm is illustrated below.
287287

@@ -317,8 +317,10 @@ allows you to add more trees to an already fitted model::
317317

318318
.. rubric:: References
319319

320-
* Liu, Fei Tony, Ting, Kai Ming and Zhou, Zhi-Hua. "Isolation forest."
321-
Data Mining, 2008. ICDM'08. Eighth IEEE International Conference on.
320+
.. [1] F. T. Liu, K. M. Ting and Z. -H. Zhou.
321+
:doi:`"Isolation forest." <10.1109/ICDM.2008.17>`
322+
2008 Eighth IEEE International Conference on Data Mining (ICDM),
323+
2008, pp. 413-422.
322324
323325
.. _local_outlier_factor:
324326

sklearn/ensemble/_iforest.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,18 @@ class IsolationForest(OutlierMixin, BaseBagging):
201201
The implementation is based on an ensemble of ExtraTreeRegressor. The
202202
maximum depth of each tree is set to ``ceil(log_2(n))`` where
203203
:math:`n` is the number of samples used to build the tree
204-
(see (Liu et al., 2008) for more details).
204+
(see [1]_ for more details).
205205
206206
References
207207
----------
208-
.. [1] Liu, Fei Tony, Ting, Kai Ming and Zhou, Zhi-Hua. "Isolation forest."
209-
Data Mining, 2008. ICDM'08. Eighth IEEE International Conference on.
210-
.. [2] Liu, Fei Tony, Ting, Kai Ming and Zhou, Zhi-Hua. "Isolation-based
211-
anomaly detection." ACM Transactions on Knowledge Discovery from
212-
Data (TKDD) 6.1 (2012): 3.
208+
.. [1] F. T. Liu, K. M. Ting and Z. -H. Zhou.
209+
:doi:`"Isolation forest." <10.1109/ICDM.2008.17>`
210+
2008 Eighth IEEE International Conference on Data Mining (ICDM),
211+
2008, pp. 413-422.
212+
.. [2] F. T. Liu, K. M. Ting and Z. -H. Zhou.
213+
:doi:`"Isolation-based anomaly detection."
214+
<10.1145/2133360.2133363>` ACM Transactions on
215+
Knowledge Discovery from Data (TKDD) 6.1 (2012): 1-39.
213216
214217
Examples
215218
--------

0 commit comments

Comments
 (0)