write datasets in a JLD2 or Arrow format for faster read
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- julia
- Domain
- data, machine-learning
Research direction
Start by locating dataset constructors such as MNIST and their current dataset creation paths; inspect how FileIO.load and FileIO.save could support a processed/dataset.jld2 cache. Resolve the JLD2-versus-Arrow choice and define the cache behavior, then verify that repeated construction loads the stored dataset instead of recreating it.
Written by the indexing model from the issue text.
Description
We could have a "processed" folder in each dataset folder where we write the dataset object the first time we create it. In the following creations, e.g. d = MNIST() we just load the JLD2 file.
Example:
function MNIST(...)
dataset_dir = ...
processed_file = joinpath(dataset_dir, "processed", "dataset.jld2")
if isfile(processed_file)
return FileIO.load(processed_file, "dataset")
end
mnist = ...
if isfile(processed_file)
FileIO.save(processed_file, Dict("dataset" => mnist))
end
return mnist
end
- Dominant language
- Julia
- Stars
- 239
- Forks
- 52
- Avg merge
- 4h 23m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaML/MLDatasets.jl
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
JuliaML/MLDatasets.jl#260 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
JuliaML/MLDatasets.jl#246 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
JuliaML/MLDatasets.jl#245 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaML/MLDatasets.jl#242 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaML/MLDatasets.jl#239 · 1 comment ·
All issues in JuliaML/MLDatasets.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
grame-cncm/faust#1409 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
SciML/PETScDiffEq.jl#521 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaML/MLUtils.jl#270 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EnzymeAD/Reactant.jl#3828 ·
Maintainers usually reply within 1 day