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

Read datasets from libsvm #93

Closed
matthiasbe opened this issue May 16, 2022 · 2 comments
Closed

Read datasets from libsvm #93

matthiasbe opened this issue May 16, 2022 · 2 comments

Comments

@matthiasbe
Copy link

Is it possible to read datasets from libsvm webpage in Julia ?

Here is an example of data (text file)

751.0 5:1 8:0.0 10:0.652913 11:0.701456 12:0.682039 13:0.677184 14:0.599515 15:0.589806 16:0.631068
703.0 6:1 8:0.0 10:0.696601941748 11:0.652913 12:0.701456 13:0.682039 14:0.677184 15:0.599515 16:0.589806
677.0 8:0.0 10:0.580097087379 11:0.696601941748 12:0.652913 13:0.701456 14:0.682039 15:0.677184 16:0.599515
718.0 1:1 8:0.0 10:0.516990291262 11:0.580097087379 12:0.696601941748 13:0.652913 14:0.701456 15:0.682039 16:0.677184

I couldn't find a direct way using CSV.jl or LIBSVM.jl, did I miss something ?

Thank you
Matthias

@ablaom
Copy link
Contributor

ablaom commented May 16, 2022

I don't know. I'm pretty sure LIBSVM.jl does not provide that functionality.

Some Julia grabbers for ML/stats data sets include RDatasets.jl, OpenML.jl. And there is MLDatasets, which is focused on deep learning applications.

@till-m
Copy link
Member

till-m commented Jul 15, 2022

This functionality is not provided.

You could write a parser yourself but it might be easier to check out the packages @ablaom mentioned (I would particularly recommend RDatasets.jl) or download datasets from their original source as listed on the libsvm page (e.g. from the UCI ML Repository) where they tend to use more common formats.

@till-m till-m closed this as completed Jul 15, 2022
@till-m till-m closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2022
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

3 participants