as_CNN_image_Y | R Documentation |
Create a one-hot vector for image labels (output)
as_CNN_image_Y(y, encoding = c("one_hot", "sparse"))
y |
The labels of the images either as factors for single-label classification or as a numeric or logical matrix for multi-label classification. |
encoding |
The type of encoding: one-hot encoding or sparse encoding. |
A one-hot encoded vector or matrix for the image labels.
one_hot_encode
, as_CNN_image_X
Other Convolutional Neural Network (CNN):
alexnet()
,
as_CNN_image_X()
,
as_CNN_temp_X()
,
as_CNN_temp_Y()
,
as_images_array()
,
as_images_tensor()
,
images_load()
,
images_resize()
,
inception_resnet_v2()
,
inception_v3()
,
lenet5()
,
mobilenet()
,
mobilenet_v2()
,
mobilenet_v3()
,
nasnet()
,
resnet
,
unet()
,
vgg
,
xception()
,
zfnet()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.