Skip to content

Training fails to save model #5

@Keno

Description

@Keno
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions