Skip to main content

Implementation of VAE-SIMCA one class classification method

Project description

VAESIMCA — one class classifier based on Variational Autoencoders and data driven SIMCA approach

The package is currently in developing stage and break changes may occur. Do not use it so far for real cases. The stable release will come soon

The package vaesimca implements a method for creating one-class classification (OCC) models (also known as anomaly detectors or novelty detectors) using Variational Autoencoders (VAE). The overall idea is based on another OCC method, DD-SIMCA, and hence can be considered as a adaptation of the DD-SIMCA approach using VAE for data decomposition. The theoretical background and practical examples for the vaesimca methods are described in a paper which is currently under review (the link comes here later). It is recommended to read it first and then come back and try the examples below.

Although the method we proposed is versatile, the package implements VAESIMCA method for analysis of images. It can be installed from PyPI using pip or any other package manager compatible with PyPI, e.g.:

pip3 install vaesimca

It requires numpy, scipy, torch, torchvision, pandas and matplotlib, which will be automatically installed as dependencies.

Getting started

Use Jupyter notebook demo.ipynb in order to get started. To run the examples from this notebook you need to download zip file with simulated dataset (it is also used for illustration of the method in the paper). Here is direct link to the archive with the dataset.

Simply download the dataset and unzip it to your working directory, where you have the notebook, and follow the guides.

Releases

0.3.7

  • fixed a bug in saving state dictionary of the best model during training loop

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

vaesimca-0.3.7.tar.gz (32.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vaesimca-0.3.7-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file vaesimca-0.3.7.tar.gz.

File metadata

  • Download URL: vaesimca-0.3.7.tar.gz
  • Upload date:
  • Size: 32.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for vaesimca-0.3.7.tar.gz
Algorithm Hash digest
SHA256 29d025706ece9dd8438eed8717bfa222d9e0bd8bf1fe5ccd5d0defbcf9ed93b5
MD5 26f44e3158369e489149f93d7ff5a338
BLAKE2b-256 7ac42223a5833111b808a00ef98d7fc2a9f03567ed37c53dce031857cadcd95a

See more details on using hashes here.

File details

Details for the file vaesimca-0.3.7-py3-none-any.whl.

File metadata

  • Download URL: vaesimca-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for vaesimca-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 73cd524f484b8698c2ef439e20d8a364b178e89fed6b93c167e55272699ffe0d
MD5 d7c3d3d3ac60cddf377cddfadb34467a
BLAKE2b-256 1212182fd713fb4862765b257ab55fd6952623268a4192ee40db36bdd100e204

See more details on using hashes here.

Supported by

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