Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ecamaj opened this issue Jan 7, 2017 · 3 comments
Open

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

ecamaj opened this issue Jan 7, 2017 · 3 comments

Comments

@ecamaj
Copy link

ecamaj commented Jan 7, 2017

(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
Copy link
Author

ecamaj commented Jan 7, 2017

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. JuliaLang/julia#13923

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

@KPilnacek
Copy link

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

@srijan-mishra
Copy link

srijan-mishra commented May 10, 2017

Hey!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants