diff --git a/src/SVRfunctions.jl b/src/SVRfunctions.jl index 24c51fc..a86ada5 100644 --- a/src/SVRfunctions.jl +++ b/src/SVRfunctions.jl @@ -321,8 +321,8 @@ Returns: function loadmodel(filename::AbstractString) param = mapparam() nnodes, ssize = Int.(DelimitedFiles.readdlm(splitext(filename)[1] .* ".nodes")) - x = Array{Float64}(undef, nnodes - 1) - y = Array{Float64}(undef, ssize - 1) + x = Vector{Float64}(undef, nnodes - 1) + y = Vector{Float64}(undef, ssize - 1) nodes, nodeptrs = mapnodes(x) prob = svm_problem(length(y), pointer(y), pointer(nodeptrs)) plibsvmmodel = ccall((:svm_load_model, libsvm_jll.libsvm), Ptr{svm_model}, (Ptr{UInt8},), filename) @@ -377,7 +377,7 @@ Returns: function readlibsvmfile(file::AbstractString) d = DelimitedFiles.readdlm(file) (o, p) = size(d) - x = Array{Float64}(undef, o, p - 1) + x = Matrix{Float64}(undef, o, p - 1) y = Vector{Float64}(undef, o) try y = Float64.(d[:,1])