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

Training fails to save model #5

Open
Keno opened this issue Jul 9, 2018 · 0 comments
Open

Training fails to save model #5

Keno opened this issue Jul 9, 2018 · 0 comments

Comments

@Keno
Copy link
Contributor

Keno commented Jul 9, 2018

ERROR: SystemError: opening file ../models/agz_base.bson: No such file or directory
Stacktrace:
 [1] #systemerror#44 at ./error.jl:64 [inlined]
 [2] systemerror(::String, ::Bool) at ./error.jl:64
 [3] open(::String, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./iostream.jl:104
 [4] open(::String, ::String) at ./iostream.jl:132
 [5] open(::BSON.##16#17{Dict{Symbol,Flux.Chain}}, ::String, ::String) at ./iostream.jl:150
 [6] save_model(::AlphaGo.NeuralNet) at /home/keno/.julia/v0.6/AlphaGo/src/train.jl:21
 [7] #train#91(::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Void, ::Int64, ::AlphaGo.#train, ::AlphaGo.GoEnv) at /home/keno/.julia/v0.6/AlphaGo/src/train.jl:87
 [8] (::AlphaGo.#kw##train)(::Array{Any,1}, ::AlphaGo.#train, ::AlphaGo.GoEnv) at ./<missing>:0

Two issues:

  1. The model directory should probably be relative to the package directory rather than cwd
  2. The directory should be created if it doesn't exist.
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

1 participant