Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/yzhao062/pyod
/ functions
Functions
2,677 in github.com/yzhao062/pyod
⨍
Functions
2,677
◇
Types & classes
300
↳
Endpoints
4
↓ 6 callers
Function
_bogus_plan
(name='__bogus_nonexistent__')
pyod/test/test_recover.py:24
↓ 6 callers
Function
_isolated_home_env
Return an env dict with HOME/USERPROFILE pointing at a clean directory. Used by tests that need to exercise the ``pyod info`` skill-install-state
pyod/test/test_cli.py:87
↓ 6 callers
Function
_make_data
(tmp_path, n_samples=120, n_features=5, seed=0)
pyod/test/test_mcp_server_import.py:164
↓ 6 callers
Function
_normalize_model_name
Normalize a model name to its canonical registry key.
pyod/utils/auto_model_selector.py:53
↓ 6 callers
Method
_require_phase
Enforce workflow phase precondition.
pyod/utils/ad_engine.py:1183
↓ 6 callers
Method
_run_to_analyzed
(self)
pyod/test/test_ad_engine_v3.py:181
↓ 6 callers
Method
_run_to_detected
(self)
pyod/test/test_ad_engine_v3.py:123
↓ 6 callers
Function
_sbd
Shape-based distance between two z-normalized sequences. SBD(x, y) = 1 - max_w CC_w(x, y) / (||x|| * ||y||) Parameters ---------- x,
pyod/models/ts_kshape.py:34
↓ 6 callers
Method
_validate_output
Validate and normalize encoder output. Parameters ---------- embeddings : array-like Raw encoder output.
pyod/utils/encoders/__init__.py:44
↓ 6 callers
Function
aggregate_channel_scores
Aggregate per-channel anomaly scores. Z-normalizes each channel before aggregation to prevent high-variance channels from dominating. Pa
pyod/models/_ts_utils.py:93
↓ 6 callers
Method
assertHasAttr
(self, obj, intended_attr)
pyod/test/test_auto_encoder.py:22
↓ 6 callers
Method
assertInRange
(self, data, lower, upper)
pyod/test/test_vae.py:46
↓ 6 callers
Method
assertInRange
(self, data, lower, upper)
pyod/test/test_auto_encoder.py:25
↓ 6 callers
Method
assertInRange
(self, data, lower, upper)
pyod/test/test_so_gaal_new.py:27
↓ 6 callers
Method
decision_function
Predict raw anomaly scores for X. Parameters ---------- X : list or array-like Raw input data in the same format
pyod/models/embedding.py:253
↓ 6 callers
Method
fit
Fit the detector on graph data. Parameters ---------- X : Data or array-like y : ignored edge_index : a
pyod/models/pyg_anomalydae.py:74
↓ 6 callers
Method
fit
Fit the detector on graph data.
pyod/models/pyg_dominant.py:74
↓ 6 callers
Method
fit
Fit the Matrix Profile detector on time series data. Parameters ---------- X : array-like of shape (n_timestamps,) or (n_time
pyod/models/ts_matrix_profile.py:229
↓ 6 callers
Method
fit
Fit the detector on graph data. Parameters ---------- X : Data or array-like PyG Data or node features (n_no
pyod/models/pyg_radar.py:67
↓ 6 callers
Method
fit
Fit the detector on graph data. Parameters ---------- X : Data or array-like PyG Data or node features.
pyod/models/pyg_anomalous.py:69
↓ 6 callers
Function
get_outliers_inliers
Internal method to separate inliers from outliers. Parameters ---------- X : numpy array of shape (n_samples, n_features) Th
pyod/utils/data.py:88
↓ 6 callers
Function
load_model_analyses_labels_only
()
pyod/utils/auto_model_selector.py:58
↓ 6 callers
Function
make_plan
Construct a closed-schema DetectionPlan dict. The closed schema means downstream code can rely on the keys ``'detector_name'``, ``'params'``,
pyod/utils/_kb_router.py:156
↓ 6 callers
Function
maximization
Combination method to merge the outlier scores from multiple estimators by taking the maximum. Parameters ---------- scores : numpy a
pyod/models/combination.py:122
↓ 6 callers
Function
pairwise_distances_no_broadcast
Utility function to calculate row-wise euclidean distance of two matrix. Different from pair-wise calculation, this function would not broadcast.
pyod/utils/stat_models.py:22
↓ 6 callers
Method
report
Generate investigation report. Text format wraps ``generate_report()`` for best detector, prepending session-level context. JSON form
pyod/utils/ad_engine.py:1497
↓ 6 callers
Method
save
Save the model to the specified path. Parameters ---------- path : str The path to save the model.
pyod/models/base_dl.py:320
↓ 6 callers
Function
sliding_windows
Extract sliding windows from a time series. Parameters ---------- X : np.ndarray of shape (n_timestamps, n_channels) window_size : in
pyod/models/_ts_utils.py:28
↓ 5 callers
Function
_all_skill_files
Return sorted list of all *.md files under pyod/skills/.
pyod/test/test_skill_kb_consistency.py:115
↓ 5 callers
Function
_current_node_dtype
()
pyod/test/test_persistence.py:64
↓ 5 callers
Function
_load_data
Load data from file path.
pyod/mcp_server.py:391
↓ 5 callers
Function
_plan_via_mcp
Drive profile_data + plan_detection through the MCP layer.
pyod/test/test_mcp_server_import.py:171
↓ 5 callers
Function
aom
Average of Maximum - An ensemble method for combining multiple estimators. See :cite:`aggarwal2015theoretical` for details. First dividing es
pyod/models/combination.py:21
↓ 5 callers
Function
check_detector
Checks if fit and decision_function methods exist for given detector Parameters ---------- detector : pyod.models Detector instan
pyod/utils/utility.py:110
↓ 5 callers
Method
decision_function
Predict combined anomaly scores for X. Parameters ---------- X : dict of {str: data} Maps modality name to test d
pyod/models/embedding.py:628
↓ 5 callers
Method
fit
Fit the detector on graph data. Parameters ---------- X : Data or array-like y : ignored edge_index : a
pyod/models/pyg_cola.py:68
↓ 5 callers
Method
fit
Fit detector on time series data. Parameters ---------- X : array-like of shape (n_timestamps,) or (n_timestamps, n_channels)
pyod/models/ts_spectral_residual.py:152
↓ 5 callers
Method
fit
Fit the detector on graph data. Parameters ---------- X : Data or array-like y : ignored edge_index : a
pyod/models/pyg_conad.py:82
↓ 5 callers
Method
fit
Fit the SAND detector on time series data. Parameters ---------- X : array-like of shape (n_timestamps,) or (n_timestamps, n_
pyod/models/ts_sand.py:189
↓ 5 callers
Method
for_audio
Create an EmbeddingOD configured for audio anomaly detection. Uses a handcrafted 74-dim acoustic feature encoder (20 MFCC, 12 chroma,
pyod/models/embedding.py:448
↓ 5 callers
Method
for_image
Create an EmbeddingOD configured for image anomaly detection. Configurations are informed by AnomalyDINO (WACV 2025). Parameters
pyod/models/embedding.py:407
↓ 5 callers
Function
get_optimizer_by_name
Get optimizer by name Parameters ---------- model : torch.nn.Module Model to be optimized. name : str Optimizer
pyod/utils/torch_utility.py:216
↓ 5 callers
Method
get_params
Get parameters for this estimator. See http://scikit-learn.org/stable/modules/generated/sklearn.base.BaseEstimator.html and sklearn/b
pyod/models/base.py:625
↓ 5 callers
Function
moa
Maximization of Average - An ensemble method for combining multiple estimators. See :cite:`aggarwal2015theoretical` for details. First dividi
pyod/models/combination.py:61
↓ 5 callers
Function
precision_n_scores
Utility function to calculate precision @ rank n. Parameters ---------- y : list or numpy array of shape (n_samples,) The ground
pyod/utils/utility.py:201
↓ 5 callers
Function
rod_3D
Find ROD scores for 3D Data. note that gm, scaler1 and scaler2 will be returned "as they are" and without being changed if the model has
pyod/models/rod.py:177
↓ 5 callers
Function
save
Save a fitted PyOD detector with a versioned envelope. The envelope records every dependency version that can affect pickle/joblib layout, pl
pyod/utils/persistence.py:112
↓ 4 callers
Function
_add_sub_plot
Internal method to add subplot of inliers and outliers. Parameters ---------- X_inliers : numpy array of shape (n_samples, n_
pyod/utils/example.py:54
↓ 4 callers
Function
_calculate_wocs
Calculated the variance of weighted cosine of a point. wcos = (<a_curr, b_curr>/((|a_curr|*|b_curr|)^2) Parameters ---------- curr_pt
pyod/models/abod.py:54
↓ 4 callers
Function
_create_encoder
Create an encoder from a backend name and kwargs.
pyod/utils/encoders/__init__.py:327
↓ 4 callers
Method
_load_json
(self, filename)
pyod/utils/knowledge/__init__.py:36
↓ 4 callers
Function
_load_kb
Load pyod.utils.knowledge.algorithms.
pyod/test/test_skill_kb_consistency.py:109
↓ 4 callers
Function
_render_chain
(segments)
pyod/test/test_skill_api_refs.py:262
↓ 4 callers
Function
_running_version
Resolve the running version of an optional dependency.
pyod/utils/persistence.py:97
↓ 4 callers
Function
_scrub
(text)
pyod/test/test_cli.py:328
↓ 4 callers
Function
_short_path
Render *path* relative to the repo root if possible, else absolute. Used when building error messages. The negative-test fixture points SKILL
pyod/test/test_skill_api_refs.py:210
↓ 4 callers
Method
_sniff_data_type
Conservative data type detection.
pyod/utils/ad_engine.py:141
↓ 4 callers
Function
check_consistent_shape
Internal shape to check input data shapes are consistent. Parameters ---------- X_train : numpy array of shape (n_samples, n_features
pyod/utils/data.py:216
↓ 4 callers
Function
create_discriminator
Create the discriminator of the GAN for a given latent size. Parameters ---------- latent_size : int The size of the latent
pyod/models/gaal_base.py:20
↓ 4 callers
Method
decision_function
Predict raw anomaly scores of X using the fitted detector. The anomaly score of an input sample is computed based on the fitted detec
pyod/models/base.py:92
↓ 4 callers
Method
decision_function
Predict raw anomaly score of X using the fitted detector. The anomaly score of an input sample is computed based on different detecto
pyod/models/hbos.py:149
↓ 4 callers
Method
fit
Fit detector. y is ignored in unsupervised methods. Parameters ---------- X : numpy array of shape (n_samples, n_features)
pyod/models/loda.py:83
↓ 4 callers
Method
fit
Fit detector. y is ignored in unsupervised methods. Parameters ---------- X : numpy array of shape (n_samples, n_features)
pyod/models/base.py:73
↓ 4 callers
Method
fit
Fit detector. y is ignored in unsupervised methods. Parameters ---------- X : numpy array of shape (n_samples, n_features)
pyod/models/hbos.py:83
↓ 4 callers
Method
fit
Fit detector on time series data. Parameters ---------- X : array-like of shape (n_timestamps,) or (n_timestamps, n_channels)
pyod/models/ts_lstm.py:222
↓ 4 callers
Method
fit_encode
Encode training data and store per-modality mean embeddings. Call this during training (EmbeddingOD.fit) so that mean embeddings are
pyod/utils/encoders/__init__.py:134
↓ 4 callers
Function
get_diff_elements
get the elements in li1 but not li2, and vice versa Parameters ---------- li1 : list or numpy array Input list 1. li2 : list
pyod/utils/utility.py:324
↓ 4 callers
Function
get_intersection
get the overlapping between two lists Parameters ---------- li1 : list or numpy array Input list 1. li2 : list or numpy arra
pyod/utils/utility.py:281
↓ 4 callers
Function
get_label_n
Function to turn raw outlier scores into binary labels by assign 1 to top n outlier scores. Parameters ---------- y : list or numpy a
pyod/utils/utility.py:232
↓ 4 callers
Function
get_list_diff
get the elements in li1 but not li2. li1-li2 Parameters ---------- li1 : list or numpy array Input list 1. li2 : list or num
pyod/utils/utility.py:300
↓ 4 callers
Function
pin_stochastic_detectors
Make stochastic detectors repeatable without changing selection.
examples/agentic_hindsight_real_data.py:142
↓ 4 callers
Method
predict_confidence
Predict the model's confidence in making the same prediction under slightly different training sets. See :cite:`perini2020quantifying`
pyod/models/base.py:245
↓ 4 callers
Function
print_state
Summarize the current investigation state.
examples/agentic_hindsight_real_data.py:175
↓ 4 callers
Function
rod_nD
Find ROD overall scores when Data is higher than 3D: # scale dataset using Robust Scaler # decompose the full space into a combinatio
pyod/models/rod.py:253
↓ 3 callers
Method
__init__
(self)
pyod/test/test_base_dl.py:26
↓ 3 callers
Method
__init__
(self, c=None, d=None)
pyod/test/test_base.py:45
↓ 3 callers
Method
__init__
(self, d_model, n_heads, window_size)
pyod/models/ts_anomaly_transformer.py:56
↓ 3 callers
Method
__init__
(self, activation_hidden='tanh', dropout_rate=0.2, latent_dim_G=2, G_layers=
pyod/models/anogan.py:191
↓ 3 callers
Method
__init__
(self, network_depth=2, batch_size=512, epochs=50,
pyod/models/devnet.py:210
↓ 3 callers
Function
_collect
(state)
pyod/test/test_skill_api_refs.py:110
↓ 3 callers
Function
_compute_association_discrepancy
Compute association discrepancy across layers and heads. AssDis = sum over layers of [KL(P||S) + KL(S||P)] / 2 averaged over heads. Para
pyod/models/ts_anomaly_transformer.py:242
↓ 3 callers
Method
_decision_function
(self, X, labels)
pyod/models/cblof.py:305
↓ 3 callers
Function
_get_perplexity
Compute the perplexity and the A-row for a specific value of the precision of a Gaussian distribution. Parameters ---------- D : arra
pyod/models/sos.py:18
↓ 3 callers
Function
_kshape
Run the k-Shape clustering algorithm. Parameters ---------- subsequences : np.ndarray of shape (n_windows, window_size) Z-normali
pyod/models/ts_kshape.py:150
↓ 3 callers
Function
_load_kb
Load pyod.utils.knowledge.algorithms once. Planned (not-yet-implemented) detectors are excluded so the skill's detector counts and lists refl
scripts/regen_skill.py:50
↓ 3 callers
Method
_make_mock_response
Create a mock OpenAI embeddings response.
pyod/test/test_encoders.py:105
↓ 3 callers
Function
_normalize_to_package_name
Normalize user input to the Python subpackage name (underscore form). Accepts either the Python subpackage name (``od_expert``) or the Cla
pyod/skills/__init__.py:57
↓ 3 callers
Method
_profile_for
(self, data_type: str)
pyod/test/test_kb_router_surface1.py:373
↓ 3 callers
Function
_render_detector_list
Render a markdown bullet list of detectors for a single modality.
scripts/regen_skill.py:172
↓ 3 callers
Method
_score_samples
Opposite of the anomaly score defined in the original paper. The anomaly score of an input sample is computed as the mean ano
pyod/models/inne.py:215
↓ 3 callers
Function
_strip_field_from_nodes
Return a structured array identical to ``nodes_arr`` with one field removed. Used to simulate a pre-1.3 sklearn save.
pyod/test/test_persistence.py:72
↓ 3 callers
Method
_tmp
(self, name='artifact.joblib')
pyod/test/test_persistence.py:512
↓ 3 callers
Function
_tone_clips
(n, freq=440.0, seconds=1.0, sr=SR)
pyod/test/test_audio.py:25
↓ 3 callers
Function
adjust_contamination_down
Decrease contamination by `_CONTAMINATION_DECREASE_FACTOR`, floored at `_CONTAMINATION_MIN`.
pyod/utils/_nl_feedback.py:87
↓ 3 callers
Function
build_routing_prompt
Render a routing prompt from a knowledge-base context dict. Parameters ---------- kb_context : dict Output of :meth:`ADEngine.get
pyod/utils/_llm.py:65
↓ 3 callers
Method
decision_function
Predict clip-level anomaly scores for X. Parameters ---------- X : list Audio clips in the same formats accepted
pyod/models/audio_ae.py:220
↓ 3 callers
Method
decision_function
(self, X)
pyod/models/xgbod.py:356
↓ 3 callers
Method
decision_function
Predict raw anomaly score of X using the fitted detector. The anomaly score of an input sample is computed based on different detector
pyod/models/sod.py:167
↓ 3 callers
Method
detect
One-shot anomaly detection: profile -> plan -> run -> analyze. Parameters ---------- X_train : array-like Trainin
pyod/utils/ad_engine.py:644
↓ 3 callers
Method
discriminate
Score (node_embedding, local_context) pairs.
pyod/models/pyg_cola.py:200
← previous
next →
101–200 of 2,677, ranked by callers