sphinxteam / Boltzmann.jl

Restricted Boltzmann Machines in Julia
Other
15 stars 4 forks source link

Bug runing run_mnist() #19

Open krzakala opened 8 years ago

krzakala commented 8 years ago

Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:06 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 [Epoch 0015] Train(pl : -0.082, tl : -0.079), Valid(pl : -0.083, tl : -0.079) [12.726 µsec/batch/unit] Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:06 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 [Epoch 0020] Train(pl : -0.070, tl : -0.072), Valid(pl : -0.077, tl : -0.073) [12.652 µsec/batch/unit] I got this:

Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:06 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 ERROR: MethodError: write has no method matching write(::Function, ::ASCIIString, ::Array{Float64,2}) Closest candidates are: write{T<:Base.AbstractPipe}(::T<:Base.AbstractPipe, ::Any...) write(::IO, ::Any...) write(::Union{HDF5.HDF5File,HDF5.HDF5Group}, ::Union{ASCIIString,UTF8String}, ::Any, ::Union{ASCIIString,UTF8String}, ::Any, ::Any...) ... in save_params at /Users/florent/.julia/v0.4/Boltzmann/src/io.jl:12 in anonymous at /Users/florent/.julia/v0.4/Boltzmann/src/io.jl:19 in h5open at /Users/florent/.julia/v0.4/HDF5/src/plain.jl:567 in save_params at /Users/florent/.julia/v0.4/Boltzmann/src/io.jl:18 in run_mnist at none:42

alaa-saade commented 8 years ago

I think Eric solved that one in Montreal. Probably just a missing using hdf5 somewhere ?

Le lun. 14 déc. 2015 à 21:53, Florent Krzakala notifications@github.com a écrit :

Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:06 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 [Epoch 0015] Train(pl : -0.082, tl : -0.079), Valid(pl : -0.083, tl : -0.079) [12.726 µsec/batch/unit] Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:06 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 [Epoch 0020] Train(pl : -0.070, tl : -0.072), Valid(pl : -0.077, tl : -0.073) [12.652 µsec/batch/unit] I got this:

Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:06 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 Fitting Batches...100% Time: 0:00:07 ERROR: MethodError: write has no method matching write(::Function, ::ASCIIString, ::Array{Float64,2}) Closest candidates are: write{T<:Base.AbstractPipe}(::T<:Base.AbstractPipe, ::Any...) write(::IO, ::Any...) write(::Union{HDF5.HDF5File,HDF5.HDF5Group}, ::Union{ASCIIString,UTF8String}, ::Any, ::Union{ASCIIString,UTF8String}, ::Any, ::Any...) ... in save_params at /Users/florent/.julia/v0.4/Boltzmann/src/io.jl:12 in anonymous at /Users/florent/.julia/v0.4/Boltzmann/src/io.jl:19 in h5open at /Users/florent/.julia/v0.4/HDF5/src/plain.jl:567 in save_params at /Users/florent/.julia/v0.4/Boltzmann/src/io.jl:18 in run_mnist at none:42

— Reply to this email directly or view it on GitHub https://github.com/sphinxteam/Boltzmann.jl/issues/19.

krzakala commented 8 years ago

I see. I was maybe using an old version. Now we should have the export to Mocha function working in our version of the package

eric-tramel commented 8 years ago

Hi guys, was this fixed in the end? I don't seem to be having any problems at the moment.