Pre-packaged prototype-based machine learning models using ProtoTorch and PyTorch-Lightning.
Project description
# ProtoTorch Models
Pre-packaged prototype-based machine learning models using ProtoTorch and PyTorch-Lightning.
## Installation
To install this plugin, first install [ProtoTorch](https://github.com/si-cim/prototorch) with:
`sh git clone https://github.com/si-cim/prototorch.git && cd prototorch pip install -e . `
and then install the plugin itself with:
`sh git clone https://github.com/si-cim/prototorch_models.git && cd prototorch_models pip install -e . `
The plugin should then be available for use in your Python environment as prototorch.models.
## Development setup
It is recommended that you use a virtual environment for development. If you do not use conda, the easiest way to work with virtual environments is by using [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/). Once you’ve installed it with pip install virtualenvwrapper, you can do the following:
`sh export WORKON_HOME=~/pyenvs mkdir -p $WORKON_HOME source /usr/local/bin/virtualenvwrapper.sh # location may vary mkvirtualenv pt `
Once you have a virtual environment setup, you can start install the models plugin with:
`sh workon pt git clone git@github.com:si-cim/prototorch_models.git cd prototorch_models git checkout dev pip install -e .[all] # \[all\] if you are using zsh or MacOS `
To assist in the development process, you may also find it useful to install yapf, isort and autoflake. You can install them easily with pip.
## Available models
Generalized Learning Vector Quantization (GLVQ)
Generalized Relevance Learning Vector Quantization (GRLVQ)
Generalized Matrix Learning Vector Quantization (GMLVQ)
Limited-Rank Matrix Learning Vector Quantization (LiRaMLVQ)
Siamese GLVQ
Neural Gas (NG)
## Work in Progress
Classification-By-Components Network (CBC)
Learning Vector Quantization Multi-Layer Network (LVQMLN)
## Planned models
Local-Matrix GMLVQ
Generalized Tangent Learning Vector Quantization (GTLVQ)
Robust Soft Learning Vector Quantization (RSLVQ)
Probabilistic Learning Vector Quantization (PLVQ)
Self-Incremental Learning Vector Quantization (SILVQ)
K-Nearest Neighbors (KNN)
Learning Vector Quantization 1 (LVQ1)
## FAQ
### How do I update the plugin?
If you have already cloned and installed prototorch and the prototorch_models plugin with the -e flag via pip, all you have to do is navigate to those folders from your terminal and do git pull to update.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file prototorch-models-0.0.0.tar.gz
.
File metadata
- Download URL: prototorch-models-0.0.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d541a2c56eadb9571d64f73773f4ddc87cfccbc5c97be579b02d047f37e0a1d |
|
MD5 | 9ca1e4d84d7f456f6258f8274ff724d4 |
|
BLAKE2b-256 | 5f1efa6a891727c78e52b697a0e7731df4f80e591c694b67cf73d0428c01f0f8 |
File details
Details for the file prototorch_models-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: prototorch_models-0.0.0-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c734d98430fa5c12923e9cf7852dec24988aca895f1bed9608fea6a8d01f46b |
|
MD5 | 613a5c7f597c14ce6a2d92ed37e31807 |
|
BLAKE2b-256 | ff1b86e8a0e6864ad523a3317a266efb8006cf3183ce1afc8bfb1e4b28ca3b00 |