AdaGram.jl icon indicating copy to clipboard operation
AdaGram.jl copied to clipboard

exception on training - in "refs = Array(RemoteRef, nworkers())"

Open ecamaj opened this issue 8 years ago • 3 comments

(MacOs, Macbook Pro) ... WARNING: Base.ASCIIString is deprecated, use String instead. likely near /AdaGram.jl/src/AdaGram.jl:49 WARNING: Base.ASCIIString is deprecated, use String instead. likely near /AdaGram.jl/src/AdaGram.jl:49 Building dictionary... Done! ERROR: LoadError: MethodError: no method matching Array{T,N}(::Base.#RemoteRef, ::Int64) Closest candidates are: Array{T,N}{T}(!Matched::Type{T}, ::Int64) at boot.jl:330 Array{T,N}{T}(!Matched::Type{T}, ::Int64, !Matched::Int64) at boot.jl:331 Array{T,N}{T}(!Matched::Type{T}, ::Int64, !Matched::Int64, !Matched::Int64) at boot.jl:332 ... in #inplace_train_vectors!#18(::Int64, ::Float64, ::Void, ::Float64, ::Bool, ::Int64, ::Float64, ::Float64, ::AdaGram.#inplace_train_vectors!, ::AdaGram.VectorModel, ::AdaGram.Dictionary, ::String, ::Int64) at /AdaGram.jl/src/gradient.jl:152 in (::AdaGram.#kw##inplace_train_vectors!)(::Array{Any,1}, ::AdaGram.#inplace_train_vectors!, ::AdaGram.VectorModel, ::AdaGram.Dictionary, ::String, ::Int64) at ./:0 in include_from_node1(::String) at ./loading.jl:488 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? in process_options(::Base.JLOptions) at ./client.jl:262 in _start() at ./client.jl:318 in _start() at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:? while loading /AdaGram.jl/train.jl, in expression starting on line 105

ecamaj avatar Jan 07 '17 17:01 ecamaj

I admit, didn't hear of Julia before I stumbled to this repository. :) Looks interesting. Anyway, after some digging, it seems it is Julia 0.5 problem. https://github.com/JuliaLang/julia/pull/13923

Changed lines in gradient.jl and predict.jl from refs = Array(RemoteRef, nworkers()) to refs = Array(Future, nworkers()) and now everything works.

ecamaj avatar Jan 07 '17 22:01 ecamaj

Had the same problem. I used for that an older Julia (0.4.5.3) on Ubuntu.

KPilnacek avatar Jan 25 '17 23:01 KPilnacek

Hey!

Does train.jl support online learning? If yes, how can we do it?

srijan-mishra avatar May 10 '17 10:05 srijan-mishra