diff --git a/src/deprecated.jl b/src/deprecated.jl new file mode 100644 index 00000000..77c44625 --- /dev/null +++ b/src/deprecated.jl @@ -0,0 +1,8 @@ +#NB deprecated because it isn't the recommended way of storing models anymore +""" + loadbestweights(path::String) + +Returns the weights of the neural network saved as 'best_network.bson' in the given `path`. +""" +loadbestweights(path::String) = loadweights(joinpath(path, "best_network.bson")) +loadweights(path::String) = load(path, @__MODULE__)[:weights]