Skip to content

Commit ca09717

Browse files
committed
add tensor and labels functions to SVHN2
1 parent 2c19fa1 commit ca09717

File tree

3 files changed

+208
-141
lines changed

3 files changed

+208
-141
lines changed

docs/src/datasets/SVHN2.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,14 @@ Function | Description
6262
---------|-------------
6363
[`download([dir])`](@ref SVHN2.download) | Trigger interactive download of the dataset
6464
[`classnames()`](@ref SVHN2.classnames) | Return the class names as a vector of strings
65+
[`traintensor([T], [indices]; [dir])`](@ref SVHN2.traintensor) | Load the training images as an array of eltype `T`
66+
[`trainlabels([indices]; [dir])`](@ref SVHN2.trainlabels) | Load the labels for the training images
6567
[`traindata([T], [indices]; [dir])`](@ref SVHN2.traindata) | Load images and labels of the training data
68+
[`testtensor([T], [indices]; [dir])`](@ref SVHN2.testtensor) | Load the test images as an array of eltype `T`
69+
[`testlabels([indices]; [dir])`](@ref SVHN2.testlabels) | Load the labels for the test images
6670
[`testdata([T], [indices]; [dir])`](@ref SVHN2.testdata) | Load images and labels of the test data
71+
[`extratensor([T], [indices]; [dir])`](@ref SVHN2.extratensor) | Load the extra images as an array of eltype `T`
72+
[`extralabels([indices]; [dir])`](@ref SVHN2.extralabels) | Load the labels for the extra training images
6773
[`extradata([T], [indices]; [dir])`](@ref SVHN2.extradata) | Load images and labels of the extra training data
6874

6975
This module also provides utility functions to make working with
@@ -107,18 +113,24 @@ SVHN2
107113
### Trainingset
108114

109115
```@docs
116+
SVHN2.traintensor
117+
SVHN2.trainlabels
110118
SVHN2.traindata
111119
```
112120

113121
### Testset
114122

115123
```@docs
124+
SVHN2.testtensor
125+
SVHN2.testlabels
116126
SVHN2.testdata
117127
```
118128

119129
### Extraset
120130

121131
```@docs
132+
SVHN2.extratensor
133+
SVHN2.extralabels
122134
SVHN2.extradata
123135
```
124136

src/SVHN2/SVHN2.jl

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ additional to use as extra training data.
1717
1818
## Interface
1919
20-
- [`SVHN2.traindata`](@ref)
21-
- [`SVHN2.testdata`](@ref)
22-
- [`SVHN2.extradata`](@ref)
20+
- [`SVHN2.traintensor`](@ref), [`SVHN2.trainlabels`](@ref), [`SVHN2.traindata`](@ref)
21+
- [`SVHN2.testtensor`](@ref), [`SVHN2.testlabels`](@ref), [`SVHN2.testdata`](@ref)
22+
- [`SVHN2.extratensor`](@ref), [`SVHN2.extralabels`](@ref), [`SVHN2.extradata`](@ref)
2323
2424
## Utilities
2525
26+
- [`SVHN2.download`](@ref)
2627
- [`SVHN2.classnames`](@ref)
2728
- [`SVHN2.convert2features`](@ref)
2829
- [`SVHN2.convert2image`](@ref)
@@ -40,6 +41,14 @@ module SVHN2
4041

4142
export
4243

44+
traintensor,
45+
testtensor,
46+
extratensor,
47+
48+
trainlabels,
49+
testlabels,
50+
extralabels,
51+
4352
traindata,
4453
testdata,
4554
extradata,

0 commit comments

Comments
 (0)