@@ -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))
3434end
@@ -74,28 +74,30 @@ a vector of integers in `EMNIST().targets`.
7474julia> using MLDatasets: EMNIST
7575
7676julia> 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
8384julia> dataset[1:5].targets
84855-element Vector{Int64}:
85- 7
86- 2
87- 1
88- 0
89- 4
86+ 23
87+ 7
88+ 16
89+ 15
90+ 23
9091
9192julia> X, y = dataset[:];
9293
9394julia> 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"""
101103struct EMNIST <: SupervisedDataset
0 commit comments