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 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 this paper, please use it for citing the method. The paper is freely available to everyone via open access option, it is recommended to read it first and then come back and try the examples from demo notebook.
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, torch_lr_finder 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.4.0
- added possibility to load data from CSV files.
- added learning rate finder option.
- see demo.ipynb for all details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vaesimca-0.4.0.tar.gz.
File metadata
- Download URL: vaesimca-0.4.0.tar.gz
- Upload date:
- Size: 52.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5239b45ebd6ef488cbbcca5c7a2b64a56b032c3d569f9ccb90c5716f3b21d35f
|
|
| MD5 |
74819d2348fa6e6843c1271a690cf426
|
|
| BLAKE2b-256 |
405c29e48fe091bc0b3206b500d092918cb8a1da50923363bb57616633fedb84
|
File details
Details for the file vaesimca-0.4.0-py3-none-any.whl.
File metadata
- Download URL: vaesimca-0.4.0-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fb468417ef92b226e002cd6770dc6adfde438391457c29a6c53d48b0c06947f
|
|
| MD5 |
1887ce33ff62555f0c81e03f8fa3a23f
|
|
| BLAKE2b-256 |
977a1819cc2be159ccc53db04a1d19959d19f181b0f7d2ef7fb795aa2f19b075
|