MCPcopy Index your code

hub / github.com/yzhao062/pyod / functions

Functions2,677 in github.com/yzhao062/pyod

↓ 3 callersMethodencode
Encode text strings to embeddings via OpenAI API. Parameters ---------- X : list of str Text strings to encode.
pyod/utils/encoders/openai_encoder.py:55
↓ 3 callersMethodencode
(self, x, edge_index)
pyod/models/pyg_cola.py:191
↓ 3 callersMethodfit
Fit the Anomaly Transformer on time series data. Parameters ---------- X : array-like of shape (n_timestamps,) or (n_timestam
pyod/models/ts_anomaly_transformer.py:497
↓ 3 callersMethodfit
Fit the frame autoencoder and score the training clips. Parameters ---------- X : list Audio clips as file paths,
pyod/models/audio_ae.py:170
↓ 3 callersMethodfit
Fit detector. y is ignored in unsupervised methods. Parameters ---------- X : numpy array of shape (n_samples, n_features)
pyod/models/sod.py:142
↓ 3 callersMethodget_benchmarks
Get benchmark results. Parameters ---------- benchmark : str Benchmark name, or 'all' for everything. Re
pyod/utils/ad_engine.py:1982
↓ 3 callersMethodget_outlier_scores
(self, X_norm)
pyod/models/alad.py:431
↓ 3 callersFunctionget_skill_path
Return the filesystem directory containing a packaged skill. Parameters ---------- skill_name : str Name of the packaged ski
pyod/skills/__init__.py:73
↓ 3 callersMethodlist_by_data_type
List algorithms supporting a given data type.
pyod/utils/knowledge/__init__.py:69
↓ 3 callersMethodlist_by_status
List algorithms with a given status.
pyod/utils/knowledge/__init__.py:78
↓ 3 callersMethodset_params
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as pipelines). The latt
pyod/models/base.py:666
↓ 3 callersFunctionskew
(X, axis=0)
pyod/models/ecod.py:22
↓ 3 callersFunctionsuggest_alternative
Suggest an alternative detector different from the current one. Resolution order: 1. First entry in the current plan's ``alternatives`` list
pyod/utils/_kb_router.py:218
↓ 3 callersFunctionto_sparse_adj
Convert edge_index to scipy sparse CSR adjacency. Parameters ---------- edge_index : np.ndarray of shape (2, n_edges) COO edge li
pyod/models/_pyg_utils.py:59
↓ 3 callersFunctionvalidation_metrics
Compute hindsight metrics from held-out labels.
examples/agentic_hindsight_real_data.py:151
↓ 3 callersFunctionwpearsonr
Utility function to calculate the weighted Pearson correlation of two samples. See https://stats.stackexchange.com/questions/221246/such-thin
pyod/utils/stat_models.py:74
↓ 2 callersFunctionFILTER
FILTER class for Filtering based thresholders. Use the filtering based methods to evaluate a non-parametric means to threshold scores g
pyod/models/thresholds.py:271
↓ 2 callersFunctionMETA
META class for Meta-modelling thresholder. Use a trained meta-model to evaluate a non-parametric means to threshold scores generated by
pyod/models/thresholds.py:542
↓ 2 callersMethod__dis
Internal function to calculate for dissimilarity in a sequence of sets.
pyod/models/lmdd.py:162
↓ 2 callersMethod__init__
(self, stop_epochs=20, lr_d=0.01, lr_g=0.0001, momentum=0.9, contamination=0.1)
pyod/models/so_gaal.py:110
↓ 2 callersMethod__init__
(self, batch_size=1000, representation_dim=20, hidden_neuro
pyod/models/dif.py:111
↓ 2 callersMethod__init__
(self, hidden_neurons=None, hidden_activation='relu', batch_norm=True, learning_rate=1e-3, ep
pyod/models/ae1svm.py:231
↓ 2 callersMethod__init__
(self, contamination=0.1, preprocessing=True, epoch_num=100, criterion_name=
pyod/models/so_gaal_new.py:41
↓ 2 callersMethod__init__
(self, model_type="WEIGHT", n_neighbours=5, negative_sampling="MIXED", val_s
pyod/models/lunar.py:209
↓ 2 callersMethod_a2b
Computes the binding probabilities of a given affinity matrix. Parameters ---------- A : array, shape (n_samp
pyod/models/sos.py:225
↓ 2 callersFunction_accepts_random_state
Return True if `cls.__init__` declares an explicit `random_state` parameter. A class is considered to accept ``random_state`` only when the param
pyod/utils/_detector_factory.py:22
↓ 2 callersMethod_aggregate
Mean per-frame score within each clip.
pyod/models/audio_ae.py:161
↓ 2 callersFunction_average_path_length
The average path length in a n_samples iTree, which is equal to the average path length of an unsuccessful BST search since the latter ha
pyod/models/dif.py:430
↓ 2 callersMethod_b2o
Computes the binding probabilities of a given affinity matrix. Parameters ---------- A : array, shape (n_samp
pyod/models/sos.py:243
↓ 2 callersFunction_build_interface_ground_truth
Walk ADEngine + InvestigationState via multi-modality dry runs. Returns a tuple of: (engine_attrs, state_attrs, valid_dict_keys, engine_s
pyod/test/test_skill_api_refs.py:71
↓ 2 callersMethod_build_pairs
Create (input, target) sliding-window pairs. Parameters ---------- X : np.ndarray of shape (n_timestamps, n_channels)
pyod/models/ts_lstm.py:103
↓ 2 callersMethod_calculate_decision_score
Computes the outlier scores. Parameters ---------- X : array-like, shape (n_samples, n_features) The inpu
pyod/models/loci.py:180
↓ 2 callersFunction_calculate_outlier_scores
The internal function to calculate the outlier scores based on the bins and histograms constructed with the training data. The program is opti
pyod/models/hbos.py:270
↓ 2 callersFunction_calculate_outlier_scores_auto
The internal function to calculate the outlier scores based on the bins and histograms constructed with the training data. The program is opti
pyod/models/hbos.py:184
↓ 2 callersFunction_check_array_compat
Compatibility wrapper for sklearn.utils.check_array. Handles force_all_finite -> ensure_all_finite rename in sklearn 1.6+
pyod/models/mad.py:27
↓ 2 callersFunction_check_dim
Internal function to assert univariate data
pyod/models/mad.py:18
↓ 2 callersFunction_check_openai_dependency
Check that openai is installed and exposes the OpenAI client.
pyod/utils/auto_model_selector.py:16
↓ 2 callersFunction_clamp_logvar
(z_logvar, logvar_clip)
pyod/models/vae.py:33
↓ 2 callersMethod_combine
Combine per-modality scores.
pyod/models/embedding.py:687
↓ 2 callersFunction_compute_centroid
Compute the k-Shape centroid for a set of z-normalized, shift-aligned cluster members. The centroid maximizes total similarity. It is the ei
pyod/models/ts_kshape.py:109
↓ 2 callersMethod_compute_scores
Compute per-timestamp anomaly scores. Parameters ---------- X : np.ndarray of shape (n_timestamps, n_channels) Va
pyod/models/ts_spectral_residual.py:127
↓ 2 callersFunction_create_anomalous_view
Create anomalous view by injecting synthetic anomalies. Following the CONAD paper: perturb a subset of node attributes by swapping with ra
pyod/models/pyg_conad.py:188
↓ 2 callersFunction_create_windows_3d
Create overlapping windows preserving the channel dimension. Parameters ---------- X : np.ndarray, shape (n_timestamps, n_channels) w
pyod/models/ts_anomaly_transformer.py:291
↓ 2 callersMethod_d2a
Performs a binary search to get affinities in such a way that each conditional Gaussian has the same perplexity. Then returns the affi
pyod/models/sos.py:167
↓ 2 callersMethod_decision_function
(self, X_norm)
pyod/models/rgraph.py:523
↓ 2 callersMethod_deep_representation
(self, net, X)
pyod/models/dif.py:270
↓ 2 callersFunction_deserialize_result
Parse a `run_detection` JSON result back into a dict. Converts the list-form ``scores_train`` / ``labels_train`` / ``scores_test`` / ``labels
pyod/mcp_server.py:216
↓ 2 callersMethod_encode
(self, x, edge_index)
pyod/models/pyg_conad.py:243
↓ 2 callersMethod_encode
(self, x, edge_index, encoder)
pyod/models/pyg_guide.py:223
↓ 2 callersMethod_extract
Return (frames, clip_idx) over all clips in X.
pyod/models/audio_ae.py:140
↓ 2 callersFunction_format_drift_msg
(drift: list[tuple[str, str, str, str]])
pyod/utils/persistence.py:356
↓ 2 callersFunction_generate_data
Internal function to generate data samples. Parameters ---------- n_inliers : int The number of inliers. n_outliers :
pyod/utils/data.py:28
↓ 2 callersMethod_generate_new_features
(self, X)
pyod/models/xgbod.py:272
↓ 2 callersMethod_get_alpha_n
Computes the alpha neighbourhood points. Parameters ---------- dist_matrix : array-like, shape (n_samples, n_features)
pyod/models/loci.py:151
↓ 2 callersMethod_get_decision_scores
Helper function for getting outlier scores on test data X (note: model must already be fit) Parameters ---------- X
pyod/models/lscp.py:212
↓ 2 callersMethod_get_dist_by_method
Internal function to decide how to process passed in distance array Parameters ---------- dist_arr : numpy array of shape (n_
pyod/models/knn.py:253
↓ 2 callersFunction_handle_loaded_object
Route a loaded top-level object through envelope/legacy handlers. Shared by the non-fall-through path and by the post-`compat_load` path; the
pyod/utils/persistence.py:226
↓ 2 callersFunction_inject_anomalies
(X, length)
pyod/utils/data.py:727
↓ 2 callersFunction_install_dirname
Map a Python subpackage name to its Claude Code install dirname.
pyod/skills/__init__.py:68
↓ 2 callersFunction_make_series
(length)
pyod/utils/data.py:713
↓ 2 callersFunction_map_window_scores_to_timestamps
Map per-window per-timestamp scores to full time series scores. For each window, per-position scores are assigned to the corresponding global
pyod/models/ts_anomaly_transformer.py:313
↓ 2 callersFunction_mono
Collapse a waveform array to 1-D mono. 1-D arrays pass through. For 2-D arrays the channel axis is the smaller of the two dimensions (audio h
pyod/utils/encoders/audio.py:24
↓ 2 callersFunction_partition_estimators
Private function used to partition estimators between jobs. See sklearn/ensemble/base.py for more information.
pyod/models/sklearn_base.py:38
↓ 2 callersMethod_predict_model
Run the trained LSTM model on input windows. Parameters ---------- model : _LSTMModel inputs : np.ndarray of shape (n
pyod/models/ts_lstm.py:172
↓ 2 callersMethod_preprocess_fit
Fit preprocessing and transform embeddings.
pyod/models/embedding.py:273
↓ 2 callersFunction_process_distances
Calculate the mean Cook's distances for each feature. Parameters ---------- X : numpy array of shape (n_samples, n_features) The
pyod/models/cd.py:63
↓ 2 callersFunction_render_bullets
Render a list of (name, algo) tuples as a markdown bullet list. Each bullet contains: name, full_name, complexity, best_for, avoid_when, requ
scripts/regen_skill.py:142
↓ 2 callersMethod_resolve_device
Resolve the device string to a torch.device.
pyod/models/ts_anomaly_transformer.py:491
↓ 2 callersFunction_run
(file_handle, filename, validated_mmap_mode)
pyod/utils/persistence.py:481
↓ 2 callersFunction_run_install
Shared install path for both `pyod install skill` and `pyod-install-skill`. Parameters mirror the argparse surface of both CLIs. Returns a shel
pyod/skills/__init__.py:142
↓ 2 callersMethod_run_to_analyzed
(self)
pyod/test/test_ad_engine_v3.py:238
↓ 2 callersMethod_score_subsequences
Score each subsequence by SBD to nearest centroid. Parameters ---------- subs : np.ndarray of shape (n_subs, length)
pyod/models/ts_sand.py:116
↓ 2 callersFunction_score_windows
Compute anomaly scores for a batch of windows. Score(t) = softmax(-AssDis(t)) * ||x_t - x_hat_t||^2 Parameters ---------- model : _A
pyod/models/ts_anomaly_transformer.py:348
↓ 2 callersFunction_select_algos
Return deduplicated (name, algo) tuples whose data_types include any modality. Used by both single-modality renderers and the combined text/image
scripts/regen_skill.py:124
↓ 2 callersMethod_spectral_residual
Compute spectral residual saliency for a 1-D signal. Parameters ---------- x : np.ndarray of shape (n_timestamps,)
pyod/models/ts_spectral_residual.py:86
↓ 2 callersMethod_tmp
(self, name='artifact.joblib')
pyod/test/test_persistence.py:563
↓ 2 callersFunction_to_mono_waveform
Return a 1-D mono waveform for one input item. Accepts a file path (str), a waveform array, or a ``(waveform, sample_rate)`` tuple. Multi-cha
pyod/utils/encoders/audio.py:41
↓ 2 callersFunction_update_mp
Update the Matrix Profile for column j. Converts QT values to z-normalized distances and updates the profile wherever the new distance is sma
pyod/models/ts_matrix_profile.py:116
↓ 2 callersFunction_wrap_around_discrepancy
Wrap-around Quasi-Monte Carlo discrepancy method
pyod/models/qmcd.py:20
↓ 2 callersMethod_x2d
Computes the dissimilarity matrix of a given dataset. Parameters ---------- X : array-like, shape (n_samples, n_featu
pyod/models/sos.py:125
↓ 2 callersMethod_znorm_windows
Z-normalize each row of a window matrix.
pyod/models/ts_sand.py:111
↓ 2 callersFunctionadjust_contamination_up
Increase contamination by `_CONTAMINATION_INCREASE_FACTOR`, capped at `_CONTAMINATION_MAX`.
pyod/utils/_nl_feedback.py:82
↓ 2 callersFunctionapply_structured_feedback
Handle structured feedback dict. Mutates `state` in place to apply the feedback action, then resets detection-side fields (``results``, ``con
pyod/utils/_nl_feedback.py:92
↓ 2 callersMethodcall_gpt
Calls the OpenAI GPT-4o API with the provided prompt and returns the response. Parameters ---------- prompt
pyod/utils/auto_model_selector.py:134
↓ 2 callersFunctioncompute_quality
Compute three diagnostic quality metrics for a detection run. Each metric diagnoses one independent failure mode and drives one branch of `AD
pyod/utils/_quality_metrics.py:38
↓ 2 callersMethoddecision_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/lof.py:193
↓ 2 callersMethoddecision_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/knn.py:216
↓ 2 callersMethoddecision_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/ocsvm.py:172
↓ 2 callersMethoddecision_function
Predict raw anomaly scores for a test time series. Parameters ---------- X : array-like of shape (n_timestamps,) or (n_timest
pyod/models/ts_sand.py:275
↓ 2 callersMethoddecision_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/iforest.py:225
↓ 2 callersMethoddecision_function
Predict raw anomaly score of X using the fitted detector. For consistency, outliers are assigned with larger anomaly scores. Parameter
pyod/models/lunar.py:449
↓ 2 callersMethoddecode
(self, z)
pyod/models/vae.py:373
↓ 2 callersMethodencode
Convert raw input to numeric embeddings. Parameters ---------- X : list or array-like Raw input data. ba
pyod/utils/encoders/__init__.py:25
↓ 2 callersMethodencode
(self, X, batch_size=32, show_progress=True)
pyod/utils/encoders/__init__.py:90
↓ 2 callersMethodencode
Encode audio clips to a (n_samples, 74) feature matrix. Parameters ---------- X : list Audio clips as file paths,
pyod/utils/encoders/audio.py:139
↓ 2 callersFunctioneuclidean
Find the euclidean distance between two vectors or between a vector and a collection of vectors. Parameters ---------- v1 : list
pyod/models/rod.py:149
↓ 2 callersMethodevaluate
Evaluate the deep learning model. Parameters ---------- data_loader : torch.utils.data.DataLoader The da
pyod/models/base_dl.py:297
↓ 2 callersFunctionfind_skill_files
Yield every *.md file under pyod/skills/ recursively.
scripts/regen_skill.py:268
↓ 2 callersMethodfit
Fit detector. y is ignored in unsupervised methods. Parameters ---------- X : numpy array of shape (n_samples, n_features)
pyod/models/cof.py:90
↓ 2 callersMethodfit
Fit detector. y is ignored in unsupervised methods. Parameters ---------- X : numpy array of shape (n_samples, n_features)
pyod/models/lof.py:156
← previousnext →201–300 of 2,677, ranked by callers