Skip to main content

No project description provided

Project description

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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai4ao-0.1.7.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

ai4ao-0.1.7-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file ai4ao-0.1.7.tar.gz.

File metadata

  • Download URL: ai4ao-0.1.7.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ai4ao-0.1.7.tar.gz
Algorithm Hash digest
SHA256 5cb3caff82cde98b073bead2762f12b795da07de8db406980d8158db28764abd
MD5 f64f88e9cc71d6f3002aeb6fc7aa6d6c
BLAKE2b-256 91ee1d949f3bb5df8a5a9d376c805d194f48af75cf3c54c04723981ae4953c15

See more details on using hashes here.

File details

Details for the file ai4ao-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: ai4ao-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for ai4ao-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f6861c9718a9c267a54406dcba1d57b00d47592d25fe4e05562ca5077cfb2d1e
MD5 9126eee54ba9fa862a4ba0a6daf9a4c1
BLAKE2b-256 5f76127b0528066f508ab5f6d855ff1f3af962f6f0c92eaef37aff7f826b53b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page