Closed cossio closed 7 months ago
https://github.com/cossio/RestrictedBoltzmannMachines.jl/blob/73bb5bfd2091344ab5dce7e4fd718bcdf9a73a01/src/rbm.jl#L317
Should we convert wts here to the eltype of rbm.w ? Something like this:
wts
rbm.w
wts_diag = with_eltypeof(rbm.w, Diagonal(vec(wts))) ∂wflat = -vflat * wts_diag * hflat' / sum(wts)
https://github.com/cossio/RestrictedBoltzmannMachines.jl/blob/73bb5bfd2091344ab5dce7e4fd718bcdf9a73a01/src/rbm.jl#L317
Should we convert
wts
here to the eltype ofrbm.w
? Something like this: