Save and load Restricted Boltzmann machine objects as HDF5 files.
This package is registered. Install with:
import Pkg
Pkg.add("RestrictedBoltzmannMachinesHDF5")
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
RestrictedBoltzmannMachines.jl package, which defines the RBM
object.