@@ -28,7 +28,7 @@ function __init__emnist()
28
28
the website to make sure you want to download the
29
29
dataset.
30
30
""" ,
31
- " http ://www.itl. nist.gov/iaui/vip /cs_links/EMNIST/matlab.zip" ,
31
+ " https ://biometrics. nist.gov/cs_links/EMNIST/matlab.zip" ,
32
32
" e1fa805cdeae699a52da0b77c2db17f6feb77eed125f9b45c022e7990444df95" ,
33
33
post_fetch_method = DataDeps. unpack))
34
34
end
@@ -74,28 +74,30 @@ a vector of integers in `EMNIST().targets`.
74
74
julia> using MLDatasets: EMNIST
75
75
76
76
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}
82
83
83
84
julia> dataset[1:5].targets
84
85
5-element Vector{Int64}:
85
- 7
86
- 2
87
- 1
88
- 0
89
- 4
86
+ 23
87
+ 7
88
+ 16
89
+ 15
90
+ 23
90
91
91
92
julia> X, y = dataset[:];
92
93
93
94
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}
99
101
```
100
102
"""
101
103
struct EMNIST <: SupervisedDataset
0 commit comments