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

Error reading svm data file #7

Open
dpo opened this issue Apr 12, 2022 · 0 comments
Open

Error reading svm data file #7

dpo opened this issue Apr 12, 2022 · 0 comments

Comments

@dpo
Copy link

dpo commented Apr 12, 2022

Is this what readlibsvmfile is for?

julia> x, y = SVR.readlibsvmfile("rcv1subset_topics_train_1.svm")
ERROR: BoundsError: attempt to access 1-element Vector{SubString{String}} at index [2]
Stacktrace:
  [1] getindex(A::Vector{SubString{String}}, i1::Int64)
    @ Base ./array.jl:861
  [2] (::SVR.var"#30#31"{Matrix{Any}, Int64})(j::Int64)
    @ SVR ~/.julia/packages/SVR/xQWBO/src/SVRfunctions.jl:381
  [3] iterate
    @ ./generator.jl:47 [inlined]
  [4] collect_to!
    @ ./array.jl:782 [inlined]
  [5] collect_to_with_first!
    @ ./array.jl:760 [inlined]
  [6] _collect(c::Vector{Int64}, itr::Base.Generator{Vector{Int64}, SVR.var"#30#31"{Matrix{Any}, Int64}}, #unused#::Base.EltypeUnknown, isz::Base.HasShape{1})
    @ Base ./array.jl:754
  [7] collect_similar(cont::Vector{Int64}, itr::Base.Generator{Vector{Int64}, SVR.var"#30#31"{Matrix{Any}, Int64}})
    @ Base ./array.jl:653
  [8] map(f::Function, A::Vector{Int64})
    @ Base ./abstractarray.jl:2849
  [9] readlibsvmfile(file::String)
    @ SVR ~/.julia/packages/SVR/xQWBO/src/SVRfunctions.jl:381
 [10] top-level scope
    @ REPL[4]:1
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

No branches or pull requests

1 participant