-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy pathdataset_cifar100.Rd
More file actions
62 lines (53 loc) · 2.12 KB
/
Copy pathdataset_cifar100.Rd
File metadata and controls
62 lines (53 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\name{dataset_cifar100}
\alias{dataset_cifar100}
\title{CIFAR100 small image classification}
\usage{
dataset_cifar100(label_mode = c("fine", "coarse"), convert = TRUE)
}
\arguments{
\item{label_mode}{one of "fine", "coarse".}
\item{convert}{When \code{TRUE} (default) the datasets are returned as R arrays.
If \code{FALSE}, objects are returned as NumPy arrays.}
}
\value{
Lists of training and test data: \verb{train$x, train$y, test$x, test$y}.
\if{html}{\out{<div class="sourceCode r">}}\preformatted{str(dataset_cifar100())
}\if{html}{\out{</div>}}
\if{html}{\out{<div class="sourceCode">}}\preformatted{## List of 2
## $ train:List of 2
## ..$ x: int [1:50000, 1:32, 1:32, 1:3] 255 255 250 124 43 190 50 178 122 255 ...
## ..$ y: num [1:50000, 1] 19 29 0 11 1 86 90 28 23 31 ...
## $ test :List of 2
## ..$ x: int [1:10000, 1:32, 1:32, 1:3] 199 113 61 93 80 168 37 175 233 182 ...
## ..$ y: num [1:10000, 1] 49 33 72 51 71 92 15 14 23 0 ...
}\if{html}{\out{</div>}}
\if{html}{\out{<div class="sourceCode r">}}\preformatted{str(dataset_cifar100(convert = FALSE))
}\if{html}{\out{</div>}}
\if{html}{\out{<div class="sourceCode">}}\preformatted{## List of 2
## $ train:List of 2
## ..$ x: <numpy.ndarray shape(50000,32,32,3), dtype=uint8>
## ..$ y: <numpy.ndarray shape(50000,1), dtype=int64>
## $ test :List of 2
## ..$ x: <numpy.ndarray shape(10000,32,32,3), dtype=uint8>
## ..$ y: <numpy.ndarray shape(10000,1), dtype=int64>
}\if{html}{\out{</div>}}
The \code{x} data is an array of RGB image data with shape (num_samples, 3, 32, 32).
The \code{y} data is an array of category labels with shape (num_samples).
}
\description{
Dataset of 50,000 32x32 color training images, labeled over 100 categories,
and 10,000 test images.
}
\seealso{
Other datasets: \cr
\code{\link{dataset_boston_housing}()} \cr
\code{\link{dataset_california_housing}()} \cr
\code{\link{dataset_cifar10}()} \cr
\code{\link{dataset_fashion_mnist}()} \cr
\code{\link{dataset_imdb}()} \cr
\code{\link{dataset_mnist}()} \cr
\code{\link{dataset_reuters}()} \cr
}
\concept{datasets}