Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with example #55

Closed
bchain opened this issue Jun 25, 2020 · 0 comments · Fixed by #58
Closed

problem with example #55

bchain opened this issue Jun 25, 2020 · 0 comments · Fixed by #58

Comments

@bchain
Copy link

bchain commented Jun 25, 2020

I ran the Iris example on the GitHub page using Julia 1.4.1 (run from Atom on Ubuntu) and got :
ERROR: MethodError: no method matching LIBSVM.SupportVectors(::Int32, ::Array{Int32,1}, ::CategoricalArray{String,1,UInt8,String,CategoricalValue{String,UInt8},Union{}}, ::Array{Float64,2}, ::Array{Int32,1}, ::Array{LIBSVM.SVMNode,1})
Closest candidates are:
LIBSVM.SupportVectors(::Int32, ::Array{Int32,1}, ::Array{T,1}, ::AbstractArray{U,2}, ::Array{Int32,1}, ::Array{LIBSVM.SVMNode,1}) where {T, U} at /home/benny/.julia/packages/LIBSVM/5Z99T/src/LIBSVM.jl:18
LIBSVM.SupportVectors(::LIBSVM.SVMModel, ::Any, ::Any) at /home/benny/.julia/packages/LIBSVM/5Z99T/src/LIBSVM.jl:27
Stacktrace:
[1] LIBSVM.SupportVectors(::LIBSVM.SVMModel, ::CategoricalArray{String,1,UInt8,String,CategoricalValue{String,UInt8},Union{}}, ::Array{Float64,2}) at /home/benny/.julia/packages/LIBSVM/5Z99T/src/LIBSVM.jl:40
[2] LIBSVM.SVM(::LIBSVM.SVMModel, ::CategoricalArray{String,1,UInt8,String,CategoricalValue{String,UInt8},Union{}}, ::Array{Float64,2}, ::Nothing, ::Array{CategoricalValue{String,UInt8},1}, ::Type{T} where T, ::LIBSVM.Kernel.KERNEL) at /home/benny/.julia/packages/LIBSVM/5Z99T/src/LIBSVM.jl:73
[3] svmtrain(::Array{Float64,2}, ::CategoricalArray{String,1,UInt8,String,CategoricalValue{String,UInt8},Union{}}; svmtype::Type{T} where T, kernel::LIBSVM.Kernel.KERNEL, degree::Int64, gamma::Float64, coef0::Float64, cost::Float64, nu::Float64, epsilon::Float64, tolerance::Float64, shrinking::Bool, probability::Bool, weights::Nothing, cachesize::Float64, verbose::Bool, nt::Int64) at /home/benny/.julia/packages/LIBSVM/5Z99T/src/LIBSVM.jl:386
[4] svmtrain(::Array{Float64,2}, ::CategoricalArray{String,1,UInt8,String,CategoricalValue{String,UInt8},Union{}}) at /home/benny/.julia/packages/LIBSVM/5Z99T/src/LIBSVM.jl:347
[5] top-level scope at /home/benny/.julia/scripts/10_06_2020/15_06_2020.jl:80

iblislin pushed a commit that referenced this issue Jan 30, 2021
Update the usage in README.

Closes #50.
Closes #55.
Closes #57.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant