Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/yzhao062/pyod
/ types & classes
Types & classes
300 in github.com/yzhao062/pyod
⨍
Functions
2,677
◇
Types & classes
300
↳
Endpoints
4
↓ 63 callers
Class
ADEngine
Anomaly detection lifecycle engine. Parameters ---------- knowledge_dir : str or None Path to knowledge base directory. If None,
pyod/utils/ad_engine.py:49
↓ 37 callers
Class
LOF
Wrapper of scikit-learn LOF Class with more functionalities. Unsupervised Outlier Detection using Local Outlier Factor (LOF). The anomaly sco
pyod/models/lof.py:19
↓ 35 callers
Class
EmbeddingOD
Anomaly detection on raw data via embedding + detector pipeline. Chains any embedding encoder with any PyOD detector. Encode raw data (text,
pyod/models/embedding.py:98
↓ 35 callers
Class
KNN
kNN class for outlier detection. For an observation, its distance to its kth nearest neighbor could be viewed as the outlying score. It could
pyod/models/knn.py:23
↓ 18 callers
Class
SOD
Subspace outlier detection (SOD) schema aims to detect outlier in varying subspaces of a high dimensional feature space. For each data object,
pyod/models/sod.py:43
↓ 15 callers
Class
IForest
Wrapper of scikit-learn Isolation Forest with more functionalities. The IsolationForest 'isolates' observations by randomly selecting a featu
pyod/models/iforest.py:49
↓ 15 callers
Class
KPCA
KPCA class for outlier detection. PCA is performed on the feature space uniquely determined by the kernel, and the reconstruction error on th
pyod/models/kpca.py:65
↓ 15 callers
Class
LUNAR
LUNAR class for outlier detection. See https://www.aaai.org/AAAI22Papers/AAAI-51.GoodgeA.pdf for details. For an observation, its ordered lis
pyod/models/lunar.py:111
↓ 15 callers
Class
MultiModalOD
Multi-modal anomaly detection via score fusion. Runs a separate detector per modality and combines their anomaly scores. Each modality can us
pyod/models/embedding.py:497
↓ 14 callers
Class
COPOD
COPOD class for Copula Based Outlier Detector. COPOD is a parameter-free, highly interpretable outlier detection algorithm based on empirical
pyod/models/copod.py:52
↓ 14 callers
Class
MultiModalEncoder
Encode multiple modalities and concatenate into a single embedding. Each modality is encoded by its own encoder. The resulting embeddings are
pyod/utils/encoders/__init__.py:95
↓ 12 callers
Class
HBOS
Histogram- based outlier detection (HBOS) is an efficient unsupervised method. It assumes the feature independence and calculates the degree o
pyod/models/hbos.py:19
↓ 12 callers
Class
TorchDataset
pyod/utils/torch_utility.py:11
↓ 11 callers
Class
COF
Connectivity-Based Outlier Factor (COF) COF uses the ratio of average chaining distance of data point and the average of average chaining dist
pyod/models/cof.py:20
↓ 11 callers
Class
DummyDetector
pyod/test/test_base_dl.py:42
↓ 11 callers
Class
ECOD
ECOD class for Unsupervised Outlier Detection Using Empirical Cumulative Distribution Functions (ECOD) ECOD is a parameter-free, highly interp
pyod/models/ecod.py:53
↓ 11 callers
Class
LMDD
Linear Method for Deviation-based Outlier Detection. LMDD employs the concept of the smoothing factor which indicates how much the dissimilar
pyod/models/lmdd.py:51
↓ 10 callers
Class
SCAN
SCAN: Structural Clustering Algorithm for Networks. Implements the full SCAN procedure: computes structural similarity ``sigma(u,v) = |N[u
pyod/models/pyg_scan.py:25
↓ 10 callers
Class
Sampling
Sampling class for outlier detection. Sugiyama, M., Borgwardt, K. M.: Rapid Distance-Based Outlier Detection via Sampling, Advances in Neural
pyod/models/sampling.py:22
↓ 10 callers
Class
TimeSeriesOD
Windowed bridge that wraps any PyOD detector for time series anomaly detection. Takes a time series, creates sliding windows, runs any PyOD d
pyod/models/ts_od.py:21
↓ 9 callers
Class
ABOD
ABOD class for Angle-base Outlier Detection. For an observation, the variance of its weighted cosine scores to all neighbors could be viewed a
pyod/models/abod.py:90
↓ 9 callers
Class
LinearBlock
pyod/models/dif.py:335
↓ 8 callers
Class
CallableEncoder
Encoder that wraps a user-provided callable. Parameters ---------- fn : callable A function that accepts raw input and returns a
pyod/utils/encoders/__init__.py:67
↓ 8 callers
Class
GUIDE
GUIDE: Higher-order Structure Based Anomaly Detection. Constructs a motif adjacency from triangle participation (binarized in v1: edges in
pyod/models/pyg_guide.py:25
↓ 8 callers
Class
KShape
k-Shape clustering-based time series anomaly detector. Extracts sliding-window subsequences, clusters them using the k-Shape algorithm (shape
pyod/models/ts_kshape.py:231
↓ 8 callers
Class
LODA
Loda: Lightweight on-line detector of anomalies. See :cite:`pevny2016loda` for more information. Two versions of LODA are supported:
pyod/models/loda.py:19
↓ 7 callers
Class
ANOMALOUS
ANOMALOUS: Joint Modeling for Anomaly Detection. CUR-style decomposition: ``min_{W,R} ||X - XWX - R||_F^2 + alpha * ||W||_F^2 + lambda_r *
pyod/models/pyg_anomalous.py:26
↓ 7 callers
Class
AnomalyDAE
AnomalyDAE: Dual Autoencoder for Anomaly Detection. Uses GATConv for structure encoding and an MLP for attribute encoding. Reconstructs ad
pyod/models/pyg_anomalydae.py:24
↓ 7 callers
Class
AudioFeatureEncoder
Handcrafted acoustic-feature encoder (librosa, no GPU). Each audio clip becomes a 74-dimensional vector: 20 MFCC, 12 chroma, and 5 spectral d
pyod/utils/encoders/audio.py:74
↓ 7 callers
Class
DOMINANT
DOMINANT: Deep Anomaly Detection on Attributed Networks. GCN encoder maps nodes to embeddings. Structure decoder reconstructs adjacency vi
pyod/models/pyg_dominant.py:24
↓ 7 callers
Class
MAD
Median Absolute Deviation: for measuring the distances between data points and the median in terms of median distance. See :cite:`iglewicz1993
pyod/models/mad.py:38
↓ 7 callers
Class
MatrixProfile
Matrix Profile time series anomaly detector using STOMP. Computes the Matrix Profile via the STOMP algorithm, identifying anomalous subsequen
pyod/models/ts_matrix_profile.py:171
↓ 7 callers
Class
Radar
Radar: Residual Analysis for Anomaly Detection. Solves ``min_{W,R} ||X - WX - R||_F^2 + alpha * ||W||_F^2 + gamma * (||R||_{2,1} + tr(R^T
pyod/models/pyg_radar.py:26
↓ 6 callers
Class
CONAD
CONAD: Contrastive + Reconstruction Anomaly Detection. Constructs an anomalous view via attribute swapping and random edge injection, enco
pyod/models/pyg_conad.py:27
↓ 6 callers
Class
CoLA
CoLA: Contrastive Anomaly Detection on Attributed Networks. GCN encoder maps nodes to embeddings. A bilinear discriminator scores how well
pyod/models/pyg_cola.py:26
↓ 6 callers
Class
Dummy1
pyod/test/test_base.py:100
↓ 6 callers
Class
KDE
KDE class for outlier detection. For an observation, its negative log probability density could be viewed as the outlying score. See :ci
pyod/models/kde.py:18
↓ 6 callers
Class
OCSVM
Wrapper of scikit-learn one-class SVM Class with more functionalities. Unsupervised Outlier Detection. Estimate the support of a high-dimensi
pyod/models/ocsvm.py:16
↓ 6 callers
Class
ROD
Rotation-based Outlier Detection (ROD), is a robust and parameter-free algorithm that requires no statistical distribution assumptions and wor
pyod/models/rod.py:329
↓ 6 callers
Class
RoutingParseError
Raised when :func:`parse_routing_response` cannot extract a plan. The engine catches this and falls back to rule-driven routing unless the en
pyod/utils/_llm.py:57
↓ 6 callers
Class
SAND
SAND streaming anomaly detector for time series. Extracts z-normalized sliding-window subsequences, initializes k centroids via k-Shape on th
pyod/models/ts_sand.py:27
↓ 6 callers
Class
SpectralResidual
Spectral Residual anomaly detector for time series. Computes a saliency map via the spectral residual of the log-amplitude spectrum. This is
pyod/models/ts_spectral_residual.py:20
↓ 6 callers
Class
VAE
Variational auto encoder Encoder maps X onto a latent space Z Decoder samples Z from N(0,1) VAE_loss = Reconstruction_loss + KL_loss
pyod/models/vae.py:82
↓ 5 callers
Class
AutoEncoder
Auto Encoder (AE) is a type of neural networks for learning useful data representations in an unsupervised manner. Similar to PCA, AE could b
pyod/models/auto_encoder.py:20
↓ 5 callers
Class
CD
Cook's distance can be used to identify points that negatively affect a regression model. A combination of each observation’s leverage a
pyod/models/cd.py:118
↓ 5 callers
Class
DIF
Deep Isolation Forest (DIF) is an extension of iForest. It uses deep representation ensemble to achieve non-linear isolation on original data
pyod/models/dif.py:27
↓ 5 callers
Class
GMM
Wrapper of scikit-learn Gaussian Mixture Model with more functionalities. Unsupervised Outlier Detection. See :cite:`aggarwal2015outlier` Cha
pyod/models/gmm.py:17
↓ 5 callers
Class
PCA
Principal component analysis (PCA) can be used in detecting outliers. PCA is a linear dimensionality reduction using Singular Value Decomposition
pyod/models/pca.py:19
↓ 4 callers
Class
ALAD
Adversarially Learned Anomaly Detection (ALAD). Paper: https://arxiv.org/pdf/1812.02288.pdf See :cite:`zenati2018adversarially` for details.
pyod/models/alad.py:28
↓ 4 callers
Class
CBLOF
r"""The CBLOF operator calculates the outlier score based on cluster-based local outlier factor. CBLOF takes as an input the data set and the
pyod/models/cblof.py:25
↓ 4 callers
Class
FeatureBagging
A feature bagging detector is a meta estimator that fits a number of base detectors on various sub-samples of the dataset and use averaging o
pyod/models/feature_bagging.py:84
↓ 4 callers
Class
INNE
Isolation-based anomaly detection using nearest-neighbor ensembles. The INNE algorithm uses the nearest neighbour ensemble to isolate anomal
pyod/models/inne.py:23
↓ 4 callers
Class
K
pyod/test/test_base.py:44
↓ 4 callers
Class
LSTMAD
LSTM-based anomaly detector for time series. Trains a stacked LSTM to predict the next timestep, then scores each timestamp by the Mahalanobi
pyod/models/ts_lstm.py:20
↓ 4 callers
Class
MCD
Detecting outliers in a Gaussian distributed dataset using Minimum Covariance Determinant (MCD): robust estimator of covariance. The Minimum
pyod/models/mcd.py:17
↓ 4 callers
Class
QMCD
The Wrap-around Quasi-Monte Carlo discrepancy is a uniformity criterion which is used to assess the space filling of a number of samples in a
pyod/models/qmcd.py:43
↓ 4 callers
Class
SUOD
SUOD (Scalable Unsupervised Outlier Detection) is an acceleration framework for large scale unsupervised outlier detector training and predict
pyod/models/suod.py:32
↓ 4 callers
Class
_NLPattern
A pattern that matches user feedback and produces a structured action.
pyod/utils/_nl_feedback.py:318
↓ 3 callers
Class
AnomalyTransformer
Anomaly Transformer for time series anomaly detection. Implements the Anomaly Transformer (Xu et al., ICLR 2022), a Transformer-based archite
pyod/models/ts_anomaly_transformer.py:394
↓ 3 callers
Class
AudioAE
Log-mel reconstruction autoencoder for audio anomaly detection. The detector extracts overlapping log-mel context windows from each clip, fit
pyod/models/audio_ae.py:44
↓ 3 callers
Class
DeepSVDD
Deep One-Class Classifier with AutoEncoder (AE) is a type of neural networks for learning useful data representations in an unsupervised way.
pyod/models/deep_svdd.py:146
↓ 3 callers
Class
LSCP
Locally Selection Combination in Parallel Outlier Ensembles LSCP is an unsupervised parallel outlier detection ensemble which selects compet
pyod/models/lscp.py:28
↓ 3 callers
Class
MO_GAAL
Multi-Objective Generative Adversarial Active Learning. MO_GAAL directly generates informative potential outliers to assist the classifier in
pyod/models/mo_gaal.py:30
↓ 3 callers
Class
OpenAIEncoder
Encoder using OpenAI Embeddings API. Produces text embeddings via the OpenAI API. Handles batching (max 2048 items per request) internally.
pyod/utils/encoders/openai_encoder.py:20
↓ 3 callers
Class
SOS
Stochastic Outlier Selection. SOS employs the concept of affinity to quantify the relationship from one data point to another data point.
pyod/models/sos.py:39
↓ 3 callers
Class
T
pyod/test/test_base.py:57
↓ 2 callers
Class
AE1SVM
Auto Encoder with One-class SVM for anomaly detection. Note: self.device is needed or all tensors may not be on the same device (if device w/
pyod/models/ae1svm.py:177
↓ 2 callers
Class
DevNet
pyod/models/devnet.py:209
↓ 2 callers
Class
DummyUnchangeModel
pyod/test/test_base_dl.py:33
↓ 2 callers
Class
HDBSCAN
Wrapper of scikit-learn HDBSCAN for outlier detection. HDBSCAN (Hierarchical Density-Based Spatial Clustering of Applications with Noise) per
pyod/models/hdbscan.py:15
↓ 2 callers
Class
InvestigationState
Typed state object for an ADEngine investigation session. Tracks the full workflow: profiling, planning, detection, analysis, and iteration.
pyod/utils/investigation.py:23
↓ 2 callers
Class
KnowledgeBase
Loader and accessor for PyOD's structured knowledge base. Reads JSON files from the knowledge directory and provides query methods for algori
pyod/utils/knowledge/__init__.py:14
↓ 2 callers
Class
LOCI
Local Correlation Integral. LOCI is highly effective for detecting outliers and groups of outliers ( a.k.a.micro-clusters), which offers
pyod/models/loci.py:81
↓ 2 callers
Class
LinearBlock
Linear block with activation and batch normalization Parameters ---------- in_features : int Number of input features
pyod/utils/torch_utility.py:49
↓ 2 callers
Class
MyEstimator
pyod/test/test_base.py:30
↓ 2 callers
Class
NoRefitRegressor
pyod/test/test_cd.py:138
↓ 2 callers
Class
RGraph
Outlier Detection via R-graph. Paper: https://openaccess.thecvf.com/content_cvpr_2017/papers/You_Provable_Self-Representation_Based_CVPR_2017_pap
pyod/models/rgraph.py:22
↓ 2 callers
Class
SO_GAAL
Single-Objective Generative Adversarial Active Learning. SO-GAAL directly generates informative potential outliers to assist the classifier i
pyod/models/so_gaal.py:59
↓ 2 callers
Class
SO_GAAL
Single-Objective Generative Adversarial Active Learning. SO-GAAL directly generates informative potential outliers to assist the classifier i
pyod/models/so_gaal_new.py:25
↓ 2 callers
Class
SentenceTransformerEncoder
Encoder using sentence-transformers library. Wraps ``sentence_transformers.SentenceTransformer`` to produce text embeddings compatible with P
pyod/utils/encoders/sentence_transformer.py:14
↓ 2 callers
Class
XGBOD
r"""XGBOD class for outlier detection. It first uses the passed in unsupervised outlier detectors to extract richer representation of the data
pyod/models/xgbod.py:35
↓ 1 callers
Class
AnoGAN
Anomaly Detection with Generative Adversarial Networks (AnoGAN). See the original paper "Unsupervised anomaly detection with generative adver
pyod/models/anogan.py:104
↓ 1 callers
Class
AutoEncoderModel
pyod/models/auto_encoder.py:175
↓ 1 callers
Class
AutoModelSelector
pyod/utils/auto_model_selector.py:97
↓ 1 callers
Class
BaseEncoder
Abstract base class for embedding encoders. All encoders must implement the ``encode`` method, which converts raw input data to a 2D numpy ar
pyod/utils/encoders/__init__.py:17
↓ 1 callers
Class
DevNetD
pyod/models/devnet.py:31
↓ 1 callers
Class
DevNetLinear
pyod/models/devnet.py:59
↓ 1 callers
Class
DevNetS
pyod/models/devnet.py:47
↓ 1 callers
Class
Discriminator
pyod/models/so_gaal.py:43
↓ 1 callers
Class
Discriminator
pyod/models/anogan.py:63
↓ 1 callers
Class
Discriminator
pyod/models/so_gaal_new.py:158
↓ 1 callers
Class
Discriminator
pyod/models/gaal_base.py:37
↓ 1 callers
Class
Dummy2
pyod/test/test_base.py:111
↓ 1 callers
Class
Dummy3
pyod/test/test_base.py:122
↓ 1 callers
Class
DummyDetector2
pyod/test/test_base_dl.py:73
↓ 1 callers
Class
DummyLoss
pyod/test/test_base_dl.py:25
↓ 1 callers
Class
DummyNegativeModel
pyod/test/test_utility.py:279
↓ 1 callers
Class
DummyPostiveModel
pyod/test/test_utility.py:286
↓ 1 callers
Class
Generator
pyod/models/so_gaal.py:29
↓ 1 callers
Class
Generator
pyod/models/anogan.py:31
next →
1–100 of 300, ranked by callers