JuliaAcademy / DataScience

Data Science in Julia course for JuliaAcademy.com, taught by Huda Nassar
https://juliaacademy.com/p/julia-for-data-science
MIT License
488 stars 256 forks source link

softmax option not recognized in VS code #10

Closed NicolasL-S closed 4 years ago

NicolasL-S commented 4 years ago

I can run the whole (very nice) tutorial fine in Julia REPL. But using VS code 1.46.0 with Julia 1.4.2, when I run this line

m = Chain(Dense(28^2, 32, relu), Dense(32, 10), softmax)

I get this output:

ERROR: UndefVarError: softmax not defined
Stacktrace:
 [1] top-level scope at REPL[119]:1
caused by [exception 10]
IOError: symlink: operation not permitted (EPERM)
Stacktrace:
... 

(the stack trace is very long, I could paste it if it helps.)

However, the following line works fine

m = Chain(Dense(28^2, 32, relu), Dense(32, 10))

I then block at the actual training because of the missing softmax option I presume.

nassarhuda commented 4 years ago

Do you mind double checking which Flux version you're using?

NicolasL-S commented 4 years ago

I've installed it yesterday. It is v 0.10.4.

NicolasL-S commented 4 years ago

Ok never mind I just tried it again and it started working fine. Hard to know what was the problem. Thanks for the very prompt reply!