Skip to content

Commit b53b3dd

Browse files
Update EMNIST download URL and docstring (#247)
- Update the EMNIST dataset download URL. - Update the docstring to reflect actual EMNIST content.
1 parent 556529c commit b53b3dd

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

src/datasets/vision/emnist.jl

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function __init__emnist()
2828
the website to make sure you want to download the
2929
dataset.
3030
""",
31-
"http://www.itl.nist.gov/iaui/vip/cs_links/EMNIST/matlab.zip",
31+
"https://biometrics.nist.gov/cs_links/EMNIST/matlab.zip",
3232
"e1fa805cdeae699a52da0b77c2db17f6feb77eed125f9b45c022e7990444df95",
3333
post_fetch_method = DataDeps.unpack))
3434
end
@@ -74,28 +74,30 @@ a vector of integers in `EMNIST().targets`.
7474
julia> using MLDatasets: EMNIST
7575
7676
julia> dataset = EMNIST(:letters, split=:train)
77-
EMNIST:
78-
metadata => Dict{String, Any} with 3 entries
79-
split => :train
80-
features => 28×28×60000 Array{Float32, 3}
81-
targets => 60000-element Vector{Int64}
77+
dataset EMNIST:
78+
metadata => Dict{String, Any} with 1 entry
79+
name => :letters
80+
split => :train
81+
features => 28×28×124800 Array{Float32, 3}
82+
targets => 124800-element Vector{Int64}
8283
8384
julia> dataset[1:5].targets
8485
5-element Vector{Int64}:
85-
7
86-
2
87-
1
88-
0
89-
4
86+
23
87+
7
88+
16
89+
15
90+
23
9091
9192
julia> X, y = dataset[:];
9293
9394
julia> dataset = EMNIST(:balanced, Tx=UInt8, split=:test)
94-
EMNIST:
95-
metadata => Dict{String, Any} with 3 entries
96-
split => :test
97-
features => 28×28×10000 Array{UInt8, 3}
98-
targets => 10000-element Vector{Int64}
95+
dataset EMNIST:
96+
metadata => Dict{String, Any} with 1 entry
97+
name => :balanced
98+
split => :test
99+
features => 28×28×18800 Array{UInt8, 3}
100+
targets => 18800-element Vector{Int64}
99101
```
100102
"""
101103
struct EMNIST <: SupervisedDataset

0 commit comments

Comments
 (0)