This module is an experimental PyTorch implementation of iWTA. It includes additional metrics that help you to build intuition upon our work. It's also faster, if you have CUDA support.
Here is a snapshot of running the clustering experiment.
Note, to follow PyTorch batch logic, we swap the axis in weights, compared to the Numpy implementation.
Python 3.6+ is required.
-
Install PyTorch
conda install pytorch torchvision cpuonly -c pytorch
-
Install the requirements
pip install git+https://github.com/dizcza/pytorch-mighty.git#egg=pytorch-mighty pip install matplotlib pip install networkx
-
Start a Visdom server by running the following command in a new terminal window
python -m visdom.server
-
Run the experiment on your choice from the project root directory
python nn/clustering.py
-
Navigate to http://localhost:8097 to see the training progress as in the picture above.