AdaGram.jl
AdaGram.jl copied to clipboard
exception on training - in "refs = Array(RemoteRef, nworkers())"
(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 ./
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.
Had the same problem. I used for that an older Julia (0.4.5.3) on Ubuntu.
Hey!
Does train.jl support online learning? If yes, how can we do it?