MCPcopy Create free account

hub / github.com/yzhao062/pyod / functions

Functions2,677 in github.com/yzhao062/pyod

↓ 1 callersFunction_dtypes_compatible_modulo_endian
True iff `a` and `b` differ at most in byte order.
pyod/utils/persistence.py:600
↓ 1 callersFunction_extract_backtick_tokens
Return the set of inline backtick-wrapped tokens in `text`. Only matches single-backtick spans (inline code), not triple-backtick fences. Spl
pyod/test/test_skill_kb_consistency.py:245
↓ 1 callersFunction_extract_engine_call_kwargs
Given the position just after ``engine.<name>(`` in *text*, return the set of kwarg names used in the call. Crude but sufficient for skill con
pyod/test/test_skill_api_refs.py:266
↓ 1 callersFunction_extract_first_array
Return the first ``[...]`` substring that parses as a JSON list. Tolerates surrounding prose, markdown fences, or repeated arrays. Returns ``
pyod/utils/_llm.py:145
↓ 1 callersMethod_factorize
Alternating optimization for Radar. Objective: min_{W,R} ||X - WX - R||^2 + alpha * ||W||_F^2 + gamma * ||R||_{2,1}
pyod/models/pyg_radar.py:99
↓ 1 callersMethod_factorize
Alternating optimization for ANOMALOUS. Objective: min_{W,R} ||X - XWX - R||^2 + alpha * ||W||_F^2 + lambda_r * ||R||_{
pyod/models/pyg_anomalous.py:101
↓ 1 callersMethod_features_one
(self, item)
pyod/utils/encoders/audio.py:116
↓ 1 callersMethod_fit
Build n_estimators sets of hyperspheres. Parameters ---------- X : numpy array of shape (n_samples, n_features)
pyod/models/inne.py:150
↓ 1 callersMethod_fit_channel
Fit k-Shape on a single channel and return per-timestamp scores. Parameters ---------- ts : np.ndarray of shape (n_timestamps
pyod/models/ts_kshape.py:305
↓ 1 callersMethod_fit_default
Default ABOD method. Use all training points with high complexity O(n^3). For internal use only.
pyod/models/abod.py:213
↓ 1 callersMethod_fit_fast
Fast ABOD method. Only use n_neighbors for angle calculation. Internal use only
pyod/models/abod.py:229
↓ 1 callersFunction_fit_small_ecod
A non-Tree-bearing detector for the compat_load pass-through test.
pyod/test/test_persistence.py:235
↓ 1 callersFunction_format_complexity
Format the KB complexity field as a one-line readable string. The KB stores complexity as a dict ``{"time": ..., "space": ...}``. Older entri
scripts/regen_skill.py:65
↓ 1 callersFunction_format_paper
Format the KB paper field as a short human-facing reference. The KB stores paper as a dict ``{"id": ..., "short": ...}`` where ``short`` is e
scripts/regen_skill.py:87
↓ 1 callersFunction_format_requires
Format the KB requires list as comma-joined ``pyod[extra]`` hints. Each token must be in ``_REQUIRES_TO_EXTRA``; unknown tokens raise KeyErro
scripts/regen_skill.py:103
↓ 1 callersFunction_format_strict_compat_drift_msg
( drift: list[tuple[str, str, str, str]])
pyod/utils/persistence.py:370
↓ 1 callersMethod_get_competent_detectors
Identifies competent base detectors based on correlation scores Parameters ---------- scores : numpy array, shape (n_clf,)
pyod/models/lscp.py:356
↓ 1 callersFunction_get_critical_values
Computes the critical values of a given distance matrix. Parameters ---------- dist_matrix : array-like, shape (n_samples, n_features)
pyod/models/loci.py:19
↓ 1 callersMethod_get_decision_scores
(self)
pyod/models/feature_bagging.py:349
↓ 1 callersMethod_get_local_region
Get local region for each test instance Parameters ---------- X_test_norm : numpy array, shape (n_samples, n_features)
pyod/models/lscp.py:279
↓ 1 callersMethod_get_min_length
Return the minimum time series length required. Returns ------- min_length : int
pyod/models/ts_spectral_residual.py:76
↓ 1 callersMethod_get_min_length
Return the minimum time series length required. Returns ------- min_length : int
pyod/models/ts_od.py:81
↓ 1 callersMethod_get_min_length
Minimum time series length required.
pyod/models/ts_sand.py:106
↓ 1 callersMethod_get_min_length
Return the minimum time series length required. Need enough timestamps beyond the window to produce several error vectors for a stabl
pyod/models/ts_lstm.py:90
↓ 1 callersFunction_get_n_jobs
Get number of jobs for the computation. See sklearn/utils/__init__.py for more information. This function reimplements the logic of joblib to
pyod/models/sklearn_base.py:12
↓ 1 callersMethod_get_param_names
Get parameter names for the estimator See http://scikit-learn.org/stable/modules/generated/sklearn.base.BaseEstimator.html and sklear
pyod/models/base.py:592
↓ 1 callersFunction_get_sampling_N
Computes the set of r-neighbours. Parameters ---------- dist_matrix : array-like, shape (n_samples, n_features) The distance matr
pyod/models/loci.py:55
↓ 1 callersFunction_get_sklearn_version
Utility function to decide the version of sklearn. PyOD will result in different behaviors with different sklearn version Returns ------
pyod/utils/utility.py:431
↓ 1 callersFunction_handle_compat_fallthrough
( path: Any, original_exc: BaseException, strict: bool, return_metadata: bool)
pyod/utils/persistence.py:301
↓ 1 callersFunction_import_regen_skill
Import scripts/regen_skill.py as a module by file path.
pyod/test/test_skill_kb_consistency.py:101
↓ 1 callersMethod_init_c
(self, X_norm, eps=0.1)
pyod/models/deep_svdd.py:87
↓ 1 callersMethod_init_detectors
initialize unsupervised detectors if no predefined detectors is provided. Parameters ---------- X : numpy array of sh
pyod/models/xgbod.py:184
↓ 1 callersFunction_is_envelope
(obj: Any)
pyod/utils/persistence.py:315
↓ 1 callersFunction_is_sklearn_tree
True iff `inst` is `sklearn.tree._tree.Tree`. Imported lazily so loading non-tree artifacts does not require sklearn to be importable on this
pyod/utils/persistence.py:503
↓ 1 callersFunction_iter_tree_estimators
Yield the per-tree sklearn estimators of an IForest or sklearn.IsolationForest. PyOD's IForest proxies ``estimators_`` through to its ``detect
pyod/test/test_persistence.py:193
↓ 1 callersMethod_load_model
Load model and processor/tokenizer on first use.
pyod/utils/encoders/huggingface.py:57
↓ 1 callersFunction_load_with_unpickler
Mirror of joblib.load that swaps in a custom unpickler class. Re-uses joblib's `_validate_fileobject_and_memmap` so compressed files and mmap
pyod/utils/persistence.py:452
↓ 1 callersFunction_logmel_windows
Return overlapping log-mel context windows for one waveform. Output shape is ``(n_windows, n_mels * context)``. Clips shorter than one contex
pyod/models/audio_ae.py:23
↓ 1 callersMethod_looks_like_audio_paths
Check if string samples look like audio file paths.
pyod/utils/ad_engine.py:175
↓ 1 callersMethod_looks_like_image_paths
Check if string samples look like image file paths.
pyod/utils/ad_engine.py:164
↓ 1 callersMethod_mad
Apply the robust median absolute deviation (MAD) to measure the distances of data points from the median. Returns --
pyod/models/mad.py:125
↓ 1 callersMethod_mahalanobis_scores
Compute Mahalanobis distance scores from prediction errors. Parameters ---------- errors : np.ndarray of shape (n_valid, n_ch
pyod/models/ts_lstm.py:193
↓ 1 callersMethod_make_estimator
Make and configure a copy of the `base_estimator_` attribute. sklearn/base.py Warning: This method should be used to properly instan
pyod/models/feature_bagging.py:378
↓ 1 callersFunction_maybe_realign_tree_state
Return `state` unchanged if no realignment is needed, otherwise return a new state dict with the `nodes` ndarray realigned to the running skle
pyod/utils/persistence.py:528
↓ 1 callersFunction_pairwise_distances_no_broadcast_helper
Internal function for calculating the distance with numba. Do not use. Parameters ---------- X : array of shape (n_samples, n_features)
pyod/utils/stat_models.py:53
↓ 1 callersMethod_plan_via_llm
Route via an LLM client (internal; see plan_detection).
pyod/utils/ad_engine.py:585
↓ 1 callersFunction_plot
Internal method to add subplot of inliers and outliers. Parameters ---------- X_inliers : numpy array of shape (n_samples, n_
pyod/utils/example.py:154
↓ 1 callersFunction_pprint
Pretty print the dictionary 'params' See http://scikit-learn.org/stable/modules/generated/sklearn.base.BaseEstimator.html and sklearn/base.py
pyod/models/sklearn_base.py:54
↓ 1 callersMethod_predict_decision_scores
(self, X)
pyod/models/feature_bagging.py:341
↓ 1 callersMethod_preprocess_transform
Transform embeddings using fitted preprocessing.
pyod/models/embedding.py:294
↓ 1 callersFunction_probe_pythresh_resources
Probe whether pythresh can load its bundled `.pkl` model resources. pythresh's META threshold loads pickled sklearn models from ``pythresh/mo
pyod/test/test_thresholds.py:28
↓ 1 callersFunction_rename_field_in_nodes
Rename a field in nodes_arr to simulate a future upstream rename. ``old`` must exist in the current dtype; the returned array has ``new`` inst
pyod/test/test_persistence.py:112
↓ 1 callersFunction_render_combined_detector_list
Render a deduplicated bullet list across multiple modalities.
scripts/regen_skill.py:177
↓ 1 callersMethod_resolve_scaler
Materialise the runtime scaler for this fit call. - ``self.scaler is None`` (the new default) -> a fresh ``MinMaxScaler()`` so each
pyod/models/lunar.py:264
↓ 1 callersFunction_retype_field_in_nodes
Change one field's dtype kind/itemsize to simulate an incompatible upstream redefinition.
pyod/test/test_persistence.py:95
↓ 1 callersMethod_score_channel
Score a single channel against pre-learned centroids. Parameters ---------- ts : np.ndarray of shape (n_timestamps,)
pyod/models/ts_kshape.py:341
↓ 1 callersMethod_set_cluster_centers
(self, X, n_features)
pyod/models/cblof.py:244
↓ 1 callersFunction_set_random_states
Sets fixed random_state parameters for an estimator. Internal use only. Modified from sklearn/base.py Finds all parameters ending ``random_st
pyod/models/feature_bagging.py:26
↓ 1 callersMethod_set_seed
Set random seed for reproducibility
pyod/models/base_dl.py:351
↓ 1 callersMethod_set_small_large_clusters
(self, n_samples)
pyod/models/cblof.py:259
↓ 1 callersFunction_shift_align
Shift-align x by the given lag, zero-padding where needed. Parameters ---------- x : np.ndarray of shape (m,) shift : int Pos
pyod/models/ts_kshape.py:81
↓ 1 callersMethod_snn
This function is called internally to calculate the shared nearest neighbors (SNN). SNN is reported to be more robust than k nearest n
pyod/models/sod.py:186
↓ 1 callersFunction_snn_imp
Internal function for fast snn calculation Parameters ---------- ind : int Indices return by kNN. ref_set_ : int, optional (
pyod/models/sod.py:17
↓ 1 callersMethod_sod
This function is called internally to perform subspace outlier detection algorithm. Returns ------- anomaly_
pyod/models/sod.py:208
↓ 1 callersMethod_streaming_fit_channel
Fit on one channel: initialize centroids, stream with updates. Parameters ---------- windows : np.ndarray of shape (n_windows
pyod/models/ts_sand.py:138
↓ 1 callersFunction_strip_paired_kb_derived_blocks
Remove content inside well-formed KB-DERIVED blocks. KB-DERIVED blocks already came from the KB by definition; we only want to validate hand-
pyod/test/test_skill_kb_consistency.py:120
↓ 1 callersMethod_suggest_substitutes
Suggest substitute detector names for failed slots. Calls ``plan_detection`` with ``exclude_detectors`` set to the union of failed an
pyod/utils/ad_engine.py:1288
↓ 1 callersMethod_train
Run minimax training loop. Parameters ---------- windows : np.ndarray, shape (n_windows, window_size, n_channels) dev
pyod/models/ts_anomaly_transformer.py:568
↓ 1 callersMethod_train_autoencoder
Train the autoencoder. Parameters ---------- train_loader : torch.utils.data.DataLoader DataLoader for the traini
pyod/models/ae1svm.py:313
↓ 1 callersMethod_train_model
Build and train the LSTM model using PyTorch. Parameters ---------- inputs : np.ndarray of shape (n_pairs, window_size, n_cha
pyod/models/ts_lstm.py:128
↓ 1 callersMethod_validate_estimator
Check the estimator and the n_estimator attribute, set the `base_estimator_` attribute.
pyod/models/feature_bagging.py:355
↓ 1 callersMethod_validate_estimator
(self, X)
pyod/models/xgbod.py:245
↓ 1 callersMethod_validate_estimator
Check the value of alpha and beta and clustering algorithm.
pyod/models/cblof.py:223
↓ 1 callersMethod_validate_logvar_clip
(logvar_clip)
pyod/models/vae.py:288
↓ 1 callersFunction_validate_schema_version
(envelope: dict)
pyod/utils/persistence.py:321
↓ 1 callersFunction_walk_dict
Recursively populate out[prefix] with d.keys(), then recurse.
pyod/test/test_skill_api_refs.py:101
↓ 1 callersFunction_walk_state_ref
Validate a single ``state.attr[..]..`` occurrence against ground truth. Returns (ok, problem_message) where problem_message is None on success.
pyod/test/test_skill_api_refs.py:223
↓ 1 callersFunction_wcos
Internal function to calculate weighted cosine using optimized numba code. Parameters ---------- curr_pt : numpy array of shape (n_sa
pyod/models/abod.py:22
↓ 1 callersFunction_write_npy
(tmp_path, name, arr)
pyod/test/test_mcp_server_import.py:157
↓ 1 callersFunctionactivate_od_expert_skill
Load the packaged od-expert skill and on-demand references. In a live Claude Code or Codex session this Markdown is injected into the agent c
examples/agentic_hindsight_real_data.py:47
↓ 1 callersMethodactive_support_elastic_net
Source: https://github.com/ChongYou/subspace-clustering/blob/master/cluster/selfrepresentation.py An active support based algorit
pyod/models/rgraph.py:167
↓ 1 callersMethodanalyze_and_tag_dataset
Analyzes the dataset and generates a prompt for GPT-4o to get standardized tags describing the dataset. Returns ----
pyod/utils/auto_model_selector.py:164
↓ 1 callersFunctionangle
find the angle between two 3D vectors. Parameters ---------- v1 : list, first vector v2 : list, second vector Returns ------
pyod/models/rod.py:42
↓ 1 callersFunctionapply_nl_feedback
Parse natural-language feedback into a structured action. Maps a free-text string to a structured-feedback dict using a small set of keyword
pyod/utils/_nl_feedback.py:389
↓ 1 callersFunctionbuild_detector_from_plan
Build and return an unfitted detector from a plan. Parameters ---------- plan : dict (DetectionPlan) Output of plan_detection().
pyod/utils/_detector_factory.py:45
↓ 1 callersFunctionbuild_from_preset
Build a detector using a factory preset. Presets are class-method factories that wire common defaults for a modality (e.g., text or image). C
pyod/utils/_detector_factory.py:94
↓ 1 callersMethodbuild_model
Need to define model in this method. self.feature_size is the number of features in the input data.
pyod/models/base_dl.py:360
↓ 1 callersFunctioncheck_files
Dry-run: return 0 if no file would change, 1 otherwise. Used by --check mode and by tests. Does NOT mutate any file: it reads the file, compu
scripts/regen_skill.py:286
↓ 1 callersFunctioncompute_consensus
Compute consensus from successful detector results. Rank-normalizes scores per detector via ``rankdata``, averages to get consensus scores, t
pyod/utils/_quality_metrics.py:423
↓ 1 callersFunctioncompute_feature_importance
Estimate per-feature contribution to anomaly scores. For each feature column, computes the Pearson correlation between the column's absolute
pyod/utils/_quality_metrics.py:223
↓ 1 callersMethodcompute_rejection_stats
Add reject option into the unsupervised detector. This comes with guarantees: an estimate of the expected rejection rate (retur
pyod/models/base.py:366
↓ 1 callersFunctioncreate_generator
Create the generator of the GAN for a given latent size. Parameters ---------- latent_size : int The size of the latent spac
pyod/models/gaal_base.py:56
↓ 1 callersFunctiondata_visualize
Utility function for visualizing the synthetic samples generated by generate_data_cluster function. Parameters ---------- X_train : n
pyod/utils/example.py:133
↓ 1 callersMethoddecision_function
Not supported (transductive detector).
pyod/models/pyg_cola.py:150
↓ 1 callersMethoddecision_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/cof.py:125
↓ 1 callersMethoddecision_function
Predict raw anomaly scores for time series X. Parameters ---------- X : array-like of shape (n_timestamps,) or (n_timestamps,
pyod/models/ts_spectral_residual.py:185
↓ 1 callersMethoddecision_function
Not supported (transductive detector).
pyod/models/pyg_conad.py:167
↓ 1 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/lscp.py:178
↓ 1 callersMethoddecision_function
Not supported (transductive detector).
pyod/models/pyg_guide.py:177
↓ 1 callersMethoddecision_function
Not supported (transductive detector).
pyod/models/pyg_anomalydae.py:136
← previousnext →401–500 of 2,677, ranked by callers