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.

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.5.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.5-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vaesimca-0.3.5.tar.gz
Algorithm Hash digest
SHA256 aa8d0bc2711a3039a6b7b0210a2f1648e6ce01c8014d331cf28805ec6a641f9e
MD5 3acac37bb208c90e3fb380181f7076b2
BLAKE2b-256 afb143baa1dfdd0c9d374157b0ce11a5243899ed4141cda6b9d8820d064392ed

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for vaesimca-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1f27d4c1834931780fb000e899d0466b74cd9b984a4adf070571756b7b03ea99
MD5 598d6d35b4879b34a924270eadf4778c
BLAKE2b-256 64919aaab0d679dc50de7a45fd1efed93d2cd5105b2cf68a4d9dafcfcf95bff6

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