https://github.com/matt-graham/boltzmann-machine-tools
Python tools for analysing Boltzmann machine distributions
https://github.com/matt-graham/boltzmann-machine-tools
boltzmann-machines cython ising-model mcmc
Last synced: 9 months ago
JSON representation
Python tools for analysing Boltzmann machine distributions
- Host: GitHub
- URL: https://github.com/matt-graham/boltzmann-machine-tools
- Owner: matt-graham
- License: mit
- Created: 2016-09-14T22:01:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T04:32:21.000Z (over 9 years ago)
- Last Synced: 2025-03-27T16:21:22.528Z (about 1 year ago)
- Topics: boltzmann-machines, cython, ising-model, mcmc
- Language: Python
- Homepage:
- Size: 606 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boltzmann machine tools
Python tools for analysing Boltzmann machine / Ising spin models. Includes functions for calculating exact moments of small Boltzmann machine models, exact maximum-likelihood gradient based training and various MCMC sampler implementations.
## Installation
Requires [NumPy](http://www.numpy.org/), [SciPy](http://www.scipy.org/) and [CVXPY](http://www.cvxpy.org/en/latest/).
If [Cython](http://cython.org/) is installed, the Cython extension modules can be build from the Cython `.pyx` source files using
```
python setup.py build_ext -use-cython
```
If Cython is not installed, the generated C source of the modules is also included and running `setup.py` without the `-use-cython` option will use the C source instead.
The following additional optional arguments can also be used with `setup.py`:
```
-debug Export GDB debug information when compiling.
-use-gcc-opts Use GCC compiler optimisations for quicker but less safe
mathematical operations.
-use-cython-opts Add extra Cython compile directives for quicker but less
safe array access. Requires -use-cython to be set to have
an effect.
-use-openmp Compiles with OpenMP support.
```