Skip to main content

AI for Anomaly and Outlier detection (AI4AO)

AI4AO is a Python package that allows to build any of the scikit-learn supported Clustering and Classification algorithms based machine learning models in batches. This means that one can use yaml declarative syntax in order to write a configuration file, and based on the instructions in the configuration file, and the machine learning models will be constructed sequentially. This way many models can be built with a single configuration file with the results being arranged in an extremely modular way. AI4AO can be considered as a convenient wrapper for scikit-learn models.

Usage

Define a configuration in config.yaml

    # config.yaml
    IsolationForest_0.01:
        project_name: timeseries_anomaly
        run_this_project: True
        multi_variate_model: True
        model: IsolationForest
        data:
            path: 'path-to-train-data.csv'
            test_data_path: 'path-to-train-data.csv'
            features_to_avoid: ['feat-to-avoid']
        hyperparams:
            contamination: 0.01
        results:
            path: 'results/isolation_forest_001/'
        remote_run: False

Run the model defined in config.yaml

    # example_script.py
    import ai4ao # import package 
    from ai4ao.models import SKLearnModel as Model # scikit-learn wrapper 

    # fit and evaluate model
    model = Model(plot_results=True)
    model.batch_fit(path_config='configs.yaml')

    # print models and metrics
    print(model.models)
    print(model.metrics())

Metadata

Release files for ai4ao 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai4ao 0.1.8
File Size Uploaded Provenance
ai4ao-0.1.8.tar.gz 5.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ai4ao 0.1.8
File Interpreter ABI Platform
ai4ao-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / ai4ao-0.1.8.tar.gz

Download URL ai4ao-0.1.8.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d28c207f2f4ea2ec7edb93b5c1c6aec50a5eb58adb548fbb89c947c0ce5165c2
BLAKE2b-256 checksum
How to use checksums
cc8f4e2c96ba310af7af659cd0c5f2502bdf24b7badf036957c2f30f37f3e751
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10

Release files / ai4ao-0.1.8-py3-none-any.whl

Download URL ai4ao-0.1.8-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9ae64e1b4a6710271e5c16879e1d20d7775ca71eac7ed279c680b4a7f9ffeae
BLAKE2b-256 checksum
How to use checksums
8680c1b66be853fe4d6e0c0ebeea7733bf413062ca58efcc6e5f1a1b3d4c8a0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10

Security for ai4ao 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page