Skip to content

Commit 1676c49

Browse files
committed
add download documentation
1 parent f6eec3f commit 1676c49

File tree

8 files changed

+62
-6
lines changed

8 files changed

+62
-6
lines changed

docs/src/datasets/CIFAR10.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ information on the interface take a look at the documentation
4242

4343
Function | Description
4444
---------|-------------
45-
`download([dir])` | Trigger interactive download of the dataset
45+
[`download([dir])`](@ref CIFAR10.download) | Trigger interactive download of the dataset
4646
[`classnames()`](@ref CIFAR10.classnames) | Return the class names as a vector of strings
4747
[`traintensor([T], [indices]; [dir])`](@ref CIFAR10.traintensor) | Load the training images as an array of eltype `T`
4848
[`trainlabels([indices]; [dir])`](@ref CIFAR10.trainlabels) | Load the labels for the training images
@@ -104,6 +104,7 @@ CIFAR10.testdata
104104
### Utilities
105105

106106
```@docs
107+
CIFAR10.download
107108
CIFAR10.classnames
108109
CIFAR10.convert2features
109110
CIFAR10.convert2image

docs/src/datasets/CIFAR100.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ information on the interface take a look at the documentation
4545

4646
Function | Description
4747
---------|-------------
48-
`download([dir])` | Trigger interactive download of the dataset
49-
[`classnames_coarse()`](@ref CIFAR100.classnames_coarse) | Return the 20 super-class names as a vector of strings
50-
[`classnames_fine()`](@ref CIFAR100.classnames_fine) | Return the 100 class names as a vector of strings
48+
[`download([dir])`](@ref CIFAR100.download) | Trigger interactive download of the dataset
49+
[`classnames_coarse(; [dir])`](@ref CIFAR100.classnames_coarse) | Return the 20 super-class names as a vector of strings
50+
[`classnames_fine(; [dir])`](@ref CIFAR100.classnames_fine) | Return the 100 class names as a vector of strings
5151
[`traintensor([T], [indices]; [dir])`](@ref CIFAR100.traintensor) | Load the training images as an array of eltype `T`
5252
[`trainlabels([indices]; [dir])`](@ref CIFAR100.trainlabels) | Load the labels for the training images
5353
[`testtensor([T], [indices]; [dir])`](@ref CIFAR100.testtensor) | Load the test images as an array of eltype `T`
@@ -111,6 +111,7 @@ See [`CIFAR10.convert2features`](@ref) and
111111
[`CIFAR10.convert2image`](@ref)
112112

113113
```@docs
114+
CIFAR100.download
114115
CIFAR100.classnames_coarse
115116
CIFAR100.classnames_fine
116117
```

docs/src/datasets/FashionMNIST.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ information on the interface take a look at the documentation
4242

4343
Function | Description
4444
---------|-------------
45-
`download([dir])` | Trigger (interactive) download of the dataset
45+
[`download([dir])`](@ref FashionMNIST.download) | Trigger (interactive) download of the dataset
4646
[`classnames()`](@ref FashionMNIST.classnames) | Return the class names as a vector of strings
4747
[`traintensor([T], [indices]; [dir])`](@ref FashionMNIST.traintensor) | Load the training images as an array of eltype `T`
4848
[`trainlabels([indices]; [dir])`](@ref FashionMNIST.trainlabels) | Load the labels for the training images
@@ -109,6 +109,7 @@ See [`MNIST.convert2features`](@ref) and
109109
[`MNIST.convert2image`](@ref)
110110

111111
```@docs
112+
FashionMNIST.download
112113
FashionMNIST.classnames
113114
```
114115

docs/src/datasets/MNIST.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ information on the interface take a look at the documentation
4343

4444
Function | Description
4545
---------|-------------
46-
`download([dir])` | Trigger (interactive) download of the dataset
46+
[`download([dir])`](@ref MNIST.download) | Trigger (interactive) download of the dataset
4747
[`traintensor([T], [indices]; [dir])`](@ref MNIST.traintensor) | Load the training images as an array of eltype `T`
4848
[`trainlabels([indices]; [dir])`](@ref MNIST.trainlabels) | Load the labels for the training images
4949
[`testtensor([T], [indices]; [dir])`](@ref MNIST.testtensor) | Load the test images as an array of eltype `T`
@@ -105,6 +105,7 @@ MNIST.testdata
105105
### Utilities
106106

107107
```@docs
108+
MNIST.download
108109
MNIST.convert2features
109110
MNIST.convert2image
110111
```

src/CIFAR10/CIFAR10.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ module CIFAR10
5050
"truck",
5151
]
5252

53+
"""
54+
download([dir]; [i_accept_the_terms_of_use])
55+
56+
Trigger the (interactive) download of the full dataset into
57+
"<`dir`>/$DEPNAME". If no `dir` is provided the dataset will
58+
be downloaded into "~/.julia/datadeps/$DEPNAME".
59+
60+
This function will display an interactive dialog unless
61+
either the keyword parameter `i_accept_the_terms_of_use` or
62+
the environment variable `DATADEPS_ALWAY_ACCEPT` is set to
63+
`true`. Note that using the data responsibly and respecting
64+
copyright/terms-of-use remains your responsibility.
65+
"""
5366
download(args...; kw...) = download_dep(DEPNAME, args...; kw...)
5467

5568
include(joinpath("Reader","Reader.jl"))

src/CIFAR100/CIFAR100.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ module CIFAR100
3838
const TRAINSET_SIZE = 50_000
3939
const TESTSET_SIZE = 10_000
4040

41+
"""
42+
download([dir]; [i_accept_the_terms_of_use])
43+
44+
Trigger the (interactive) download of the full dataset into
45+
"<`dir`>/$DEPNAME". If no `dir` is provided the dataset will
46+
be downloaded into "~/.julia/datadeps/$DEPNAME".
47+
48+
This function will display an interactive dialog unless
49+
either the keyword parameter `i_accept_the_terms_of_use` or
50+
the environment variable `DATADEPS_ALWAY_ACCEPT` is set to
51+
`true`. Note that using the data responsibly and respecting
52+
copyright/terms-of-use remains your responsibility.
53+
"""
4154
download(args...; kw...) = download_dep(DEPNAME, args...; kw...)
4255

4356
include(joinpath("Reader","Reader.jl"))

src/FashionMNIST/FashionMNIST.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ module FashionMNIST
4747
"Ankle boot"
4848
]
4949

50+
"""
51+
download([dir]; [i_accept_the_terms_of_use])
52+
53+
Trigger the (interactive) download of the full dataset into
54+
"<`dir`>/$DEPNAME". If no `dir` is provided the dataset will
55+
be downloaded into "~/.julia/datadeps/$DEPNAME".
56+
57+
This function will display an interactive dialog unless
58+
either the keyword parameter `i_accept_the_terms_of_use` or
59+
the environment variable `DATADEPS_ALWAY_ACCEPT` is set to
60+
`true`. Note that using the data responsibly and respecting
61+
copyright/terms-of-use remains your responsibility.
62+
"""
5063
download(args...; kw...) = download_dep(DEPNAME, args...; kw...)
5164

5265
include("interface.jl")

src/MNIST/MNIST.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ module MNIST
3131
const TESTIMAGES = "t10k-images-idx3-ubyte.gz"
3232
const TESTLABELS = "t10k-labels-idx1-ubyte.gz"
3333

34+
"""
35+
download([dir]; [i_accept_the_terms_of_use])
36+
37+
Trigger the (interactive) download of the full dataset into
38+
"<`dir`>/$DEPNAME". If no `dir` is provided the dataset will
39+
be downloaded into "~/.julia/datadeps/$DEPNAME".
40+
41+
This function will display an interactive dialog unless
42+
either the keyword parameter `i_accept_the_terms_of_use` or
43+
the environment variable `DATADEPS_ALWAY_ACCEPT` is set to
44+
`true`. Note that using the data responsibly and respecting
45+
copyright/terms-of-use remains your responsibility.
46+
"""
3447
download(args...; kw...) = download_dep(DEPNAME, args...; kw...)
3548

3649
include(joinpath("Reader","Reader.jl"))

0 commit comments

Comments
 (0)