RestrictedBoltzmannMachine icon indicating copy to clipboard operation
RestrictedBoltzmannMachine copied to clipboard

No method matching Array

Open simoman20 opened this issue 4 years ago • 3 comments

I tried to follow the steps given, but I couldn't get past this error message. I'm running on julia 1.3.1.

$ julia fit.jl > fit.out
ERROR: LoadError: MethodError: no method matching Array(::Type{Float64}, ::Int64, ::Int64)
Closest candidates are:
Array(!Matched::LinearAlgebra.UniformScaling, ::Integer, ::Integer) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/LinearAlgebra/src/uniformscaling.jl:397

Stacktrace:
[1] traindata() at /Users/username/.julia/packages/MNIST/amnnA/src/MNIST.jl:86
[2] top-level scope at /Users/username/Downloads/jostmey-RestrictedBoltzmannMachine-bdd9a94/fit.jl:19
[3] include at ./boot.jl:328 [inlined]

[4] include_relative(::Module, ::String) at ./loading.jl:1105
[5] include(::Module, ::String) at ./Base.jl:31
[6] exec_options(::Base.JLOptions) at ./client.jl:287
[7] _start() at ./client.jl:460
in expression starting at /Users/username/Downloads/jostmey-RestrictedBoltzmannMachine-bdd9a94/fit.jl:19

Any ideas?

simoman20 avatar Jun 19 '20 01:06 simoman20

This code was last tested on version 0.4 of Julia! It looks like the error message is from the package "MNIST", which is a dependency of my code. This package was probably never ported to a more recent version of Julia. I have no intention of updating "MNIST", which is not my package :-(

Given that my code is so out of date, there may be additional backward compatibility errors when trying to run the code using Julia 1.4

jostmey avatar Jun 19 '20 18:06 jostmey

Aw. That's a shame. Trying the package on a current-day install of v0.4.7 (with today's version of MNIST, I suppose) would most likely result in the same, right?

simoman20 avatar Jun 20 '20 02:06 simoman20

I do not remember the exact version of Julia that I had running, but 0.4.7. should work

jostmey avatar Jun 22 '20 22:06 jostmey