Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/additional_information/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Added
- Implement and integrate type validation into ``dtaianomaly``.
- Added marks to the test: ``slow`` and ``numba``.
- Integrated numpydocs documentation formatting rules.
- Implement ``HybridKNearestNeighbors`` anomaly detector.

Changed
^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion docs/additional_information/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,4 @@ Documentation
| |check_box| Has a citation to the relevant paper(s) been added in the class documentation, and the bibtex added to ``docs/bibliography.bib``?
| |check_box| Did you add the component in tha API-documentation in ``docs/api/``?
| |check_box| If you added a :py:class:`~dtaianomaly.data.LazyDataLoader`, did you update `data/README.rst <https://github.com/ML-KULeuven/dtaianomaly/blob/main/data/README.rst>`_?

| |check_box| Have you updated the changelog?
1 change: 1 addition & 0 deletions docs/api/anomaly_detection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Neural methods

AutoEncoder
ConvolutionalNeuralNetwork
HybridKNearestNeighbors
LongShortTermMemoryNetwork
MultilayerPerceptron
Transformer
Expand Down
14 changes: 14 additions & 0 deletions docs/bibliography.bib
Original file line number Diff line number Diff line change
Expand Up @@ -525,3 +525,17 @@ @InProceedings{perini2021quantifying
}


@article{song2017hybrid,
author = {Song, Hongchao and Jiang, Zhuqing and Men, Aidong and Yang, Bo},
title = {A Hybrid Semi-Supervised Anomaly Detection Model for High-Dimensional Data},
journal = {Computational Intelligence and Neuroscience},
volume = {2017},
number = {1},
pages = {8501683},
doi = {https://doi.org/10.1155/2017/8501683},
year = {2017}
}




5 changes: 3 additions & 2 deletions dtaianomaly/anomaly_detection/_BasePyODAnomalyDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from dtaianomaly.anomaly_detection._BaseDetector import BaseDetector, Supervision
from dtaianomaly.type_validation import IntegerAttribute, WindowSizeAttribute
from dtaianomaly.windowing import (
WINDOW_SIZE_TYPE,
compute_window_size,
reverse_sliding_window,
sliding_window,
Expand Down Expand Up @@ -42,7 +43,7 @@ class BasePyODAnomalyDetector(BaseDetector, abc.ABC):
The PyOD anomaly detector
"""

window_size: int | str
window_size: WINDOW_SIZE_TYPE
stride: int
kwargs: dict
window_size_: int
Expand All @@ -53,7 +54,7 @@ class BasePyODAnomalyDetector(BaseDetector, abc.ABC):
"stride": IntegerAttribute(1),
}

def __init__(self, window_size: int | str, stride: int = 1, **kwargs):
def __init__(self, window_size: WINDOW_SIZE_TYPE, stride: int = 1, **kwargs):
super().__init__(self._supervision())
self.window_size = window_size
self.stride = stride
Expand Down
Loading