Skip to content

Commit

Permalink
removed unnecessary functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lalvim committed Oct 12, 2020
1 parent 7449f0d commit b0bf515
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/types.jl
Expand Up @@ -93,20 +93,3 @@ function PLSModel(X::Matrix{T},
kernel,
width)
end


######################################################################################################
## Load and Store models (good for production)
function load(; filename::AbstractString = MODEL_FILENAME, modelname::AbstractString = MODEL_ID)
local M
jldopen(filename, "r") do file
M = read(file, modelname)
end
M
end

function save(M::PLSModel; filename::AbstractString = MODEL_FILENAME, modelname::AbstractString = MODEL_ID)
jldopen(filename, "w") do file
write(file, modelname, M)
end
end

0 comments on commit b0bf515

Please sign in to comment.