-
-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8fe3e6
commit b78cd76
Showing
14 changed files
with
22 additions
and
704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,7 @@ | ||
# Datasets | ||
|
||
Flux includes several standard machine learning datasets. | ||
- [MLDatasets.jl](https://github.com/JuliaML/MLDatasets.jl): utility package for accessing common machine learning datasets | ||
|
||
|
||
|
||
```@docs | ||
Flux.Data.Iris.features() | ||
Flux.Data.Iris.labels() | ||
Flux.Data.MNIST.images() | ||
Flux.Data.MNIST.labels() | ||
Flux.Data.FashionMNIST.images() | ||
Flux.Data.FashionMNIST.labels() | ||
Flux.Data.CMUDict.phones() | ||
Flux.Data.CMUDict.symbols() | ||
Flux.Data.CMUDict.rawdict() | ||
Flux.Data.CMUDict.cmudict() | ||
Flux.Data.Sentiment.train() | ||
Flux.Data.Sentiment.test() | ||
Flux.Data.Sentiment.dev() | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,9 @@ | ||
module Data | ||
|
||
import ..Flux | ||
import SHA | ||
|
||
using Random: shuffle! | ||
using Base: @propagate_inbounds | ||
|
||
export CMUDict, cmudict | ||
|
||
deps(path...) = joinpath(@__DIR__, "..", "..", "deps", path...) | ||
|
||
function download_and_verify(url, path, hash) | ||
tmppath = tempname() | ||
download(url, tmppath) | ||
hash_download = open(tmppath) do f | ||
bytes2hex(SHA.sha256(f)) | ||
end | ||
if hash_download !== hash | ||
msg = "Hash Mismatch!\n" | ||
msg *= " Expected sha256: $hash\n" | ||
msg *= " Calculated sha256: $hash_download" | ||
error(msg) | ||
end | ||
mv(tmppath, path; force=true) | ||
end | ||
|
||
function __init__() | ||
mkpath(deps()) | ||
end | ||
|
||
include("dataloader.jl") | ||
export DataLoader | ||
|
||
include("mnist.jl") | ||
export MNIST | ||
|
||
include("fashion-mnist.jl") | ||
export FashionMNIST | ||
|
||
include("cmudict.jl") | ||
using .CMUDict | ||
|
||
include("tree.jl") | ||
include("sentiment.jl") | ||
using .Sentiment | ||
|
||
include("iris.jl") | ||
export Iris | ||
|
||
include("housing.jl") | ||
export Housing | ||
|
||
@deprecate DataLoader(x...; kws...) DataLoader(x; kws...) | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.