From b3b260f2ab4a2299f7aecea31c1fb728d3c57471 Mon Sep 17 00:00:00 2001 From: Jsy Date: Tue, 20 May 2025 13:05:43 -0700 Subject: [PATCH 1/3] DOC Add Links to plot_lof_novelty_detection example --- doc/modules/outlier_detection.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/modules/outlier_detection.rst b/doc/modules/outlier_detection.rst index 7de2da4f1818e..b6f360acc7b0a 100644 --- a/doc/modules/outlier_detection.rst +++ b/doc/modules/outlier_detection.rst @@ -413,7 +413,12 @@ Note that ``fit_predict`` is not available in this case to avoid inconsistencies Novelty detection with Local Outlier Factor is illustrated below. +* See :ref:`sphx_glr_auto_examples_neighbors_plot_lof_novelty_detection.py` + for an illustration of the use of :class:`neighbors.LocalOutlierFactor` for novelty detection. + .. figure:: ../auto_examples/neighbors/images/sphx_glr_plot_lof_novelty_detection_001.png :target: ../auto_examples/neighbors/plot_lof_novelty_detection.html :align: center :scale: 75% + + From b8dc9c7f36830e7ea20ac186312c1988dd10d7c3 Mon Sep 17 00:00:00 2001 From: SiyuJin-1 Date: Thu, 22 May 2025 09:28:34 -0700 Subject: [PATCH 2/3] Update doc/modules/outlier_detection.rst Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com> --- doc/modules/outlier_detection.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/modules/outlier_detection.rst b/doc/modules/outlier_detection.rst index b6f360acc7b0a..54628ca4db232 100644 --- a/doc/modules/outlier_detection.rst +++ b/doc/modules/outlier_detection.rst @@ -411,10 +411,8 @@ Note that ``fit_predict`` is not available in this case to avoid inconsistencies The scores of abnormality of the training samples are always accessible through the ``negative_outlier_factor_`` attribute. -Novelty detection with Local Outlier Factor is illustrated below. - -* See :ref:`sphx_glr_auto_examples_neighbors_plot_lof_novelty_detection.py` - for an illustration of the use of :class:`neighbors.LocalOutlierFactor` for novelty detection. +Novelty detection with :class:`neighbors.LocalOutlierFactor` is illustrated below +(see :ref:`sphx_glr_auto_examples_neighbors_plot_lof_novelty_detection.py`). .. figure:: ../auto_examples/neighbors/images/sphx_glr_plot_lof_novelty_detection_001.png :target: ../auto_examples/neighbors/plot_lof_novelty_detection.html From 29b732df3611b6e118938e0bee56114e48cf4193 Mon Sep 17 00:00:00 2001 From: SiyuJin-1 Date: Thu, 22 May 2025 09:28:45 -0700 Subject: [PATCH 3/3] Update doc/modules/outlier_detection.rst Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com> --- doc/modules/outlier_detection.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/modules/outlier_detection.rst b/doc/modules/outlier_detection.rst index 54628ca4db232..bdb6b1aeacdbf 100644 --- a/doc/modules/outlier_detection.rst +++ b/doc/modules/outlier_detection.rst @@ -418,5 +418,3 @@ Novelty detection with :class:`neighbors.LocalOutlierFactor` is illustrated belo :target: ../auto_examples/neighbors/plot_lof_novelty_detection.html :align: center :scale: 75% - -