alibi_detect.utils.fetching.fetching module
- alibi_detect.utils.fetching.fetching.Data
Number of seconds to wait for URL requests before raising an error.
alias of
Union
[BaseDetector
,AdversarialAE
,ModelDistillation
,IForest
,LLR
,Mahalanobis
,OutlierAEGMM
,OutlierAE
,OutlierProphet
,OutlierSeq2Seq
,OutlierVAE
,OutlierVAEGMM
,SpectralResidual
]
- alibi_detect.utils.fetching.fetching.fetch_ad_ae(url, filepath, state_dict)[source]
Download AE adversarial detector.
- alibi_detect.utils.fetching.fetching.fetch_ad_md(url, filepath)[source]
Download model and distilled model.
- alibi_detect.utils.fetching.fetching.fetch_aegmm(url, filepath)[source]
Download AEGMM outlier detector.
- alibi_detect.utils.fetching.fetching.fetch_detector(filepath, detector_type, dataset, detector_name, model=None)[source]
Fetch an outlier or adversarial detector from a google bucket, save it locally and return the initialised detector.
- Parameters:
filepath (
Union
[str
,PathLike
]) – Local directory to save detector to.detector_type (
str
) – outlier or adversarial.dataset (
str
) – Dataset of pre-trained detector. E.g. kddcup, cifar10 or ecg.detector_name (
str
) – Name of the detector in the bucket.model (
Optional
[str
]) – Classification model used for adversarial detection.
- Return type:
Union
[BaseDetector
,AdversarialAE
,ModelDistillation
,IForest
,LLR
,Mahalanobis
,OutlierAEGMM
,OutlierAE
,OutlierProphet
,OutlierSeq2Seq
,OutlierVAE
,OutlierVAEGMM
,SpectralResidual
]- Returns:
Initialised pre-trained detector.
- alibi_detect.utils.fetching.fetching.fetch_enc_dec(url, filepath)[source]
Download encoder and decoder networks.
- alibi_detect.utils.fetching.fetching.fetch_llr(url, filepath)[source]
Download Likelihood Ratio outlier detector.
- alibi_detect.utils.fetching.fetching.fetch_seq2seq(url, filepath)[source]
Download sequence-to-sequence outlier detector.
- alibi_detect.utils.fetching.fetching.fetch_state_dict(url, filepath, save_state_dict=True)[source]
Fetch the metadata and state/hyperparameter values of pre-trained detectors.
- alibi_detect.utils.fetching.fetching.fetch_tf_model(dataset, model)[source]
Fetch pretrained tensorflow models from the google cloud bucket.
- alibi_detect.utils.fetching.fetching.fetch_vae(url, filepath)[source]
Download VAE outlier detector.