From f50fe65096bf0000d5ddb8e182cf5435cba41e52 Mon Sep 17 00:00:00 2001 From: "Velimir (monty) Vesselinov" Date: Sun, 11 Aug 2024 06:27:48 -0600 Subject: [PATCH] vector --- src/SVRfunctions.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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])