use the CNN in Introduction to Statistical Learning with R on an ImageArray instance

islr_cnn(iarr, nEpochs = 30, batchSize = 128, valSplit = 0.2)

Arguments

iarr

ImageArray instance, must have 32x32x3 images

nEpochs

numeric(1) used in call to fit for keras_model_sequential

batchSize

numeric(1) used in call to fit for keras_model_sequential

valSplit

numeric(1) used in call to fit for keras_model_sequential

Value

list with components model (compiled model), history (of fit), and vector of unique type labels used for inputs, marked as an S3 class islr_cnn