Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cossio/restrictedboltzmannmachineshdf5.jl
https://github.com/cossio/restrictedboltzmannmachineshdf5.jl
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cossio/restrictedboltzmannmachineshdf5.jl
- Owner: cossio
- License: mit
- Created: 2023-06-14T07:50:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-01T15:23:06.000Z (4 months ago)
- Last Synced: 2024-07-06T18:04:49.434Z (4 months ago)
- Language: Julia
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# RestrictedBoltzmannMachinesHDF5 Julia package
Save and load [Restricted Boltzmann machine](https://github.com/cossio/RestrictedBoltzmannMachines.jl) objects as [HDF5](https://github.com/JuliaIO/HDF5.jl) files.
## Installation
This package is registered. Install with:
```julia
import Pkg
Pkg.add("RestrictedBoltzmannMachinesHDF5")
```## Example
```julia
using RestrictedBoltzmannMachines: RBM, Binary # from https://github.com/cossio/RestrictedBoltzmannMachines.jl
using RestrictedBoltzmannMachinesHDF5: save_rbm, load_rbm # from this package
rbm = RBM(Binary(; θ=randn(2,3)), Binary(; θ=randn(4)), randn(2,3,4)) # create an RBM
path = save_rbm(tempname(), rbm) # save RBM to a temporary path
loaded_rbm = load_rbm(path) # load RBM from saved file
```## Related
[RestrictedBoltzmannMachines.jl](https://github.com/cossio/RestrictedBoltzmannMachines.jl) package, which defines the `RBM` object.