history <- model %>% fit(
x = train_array, y = as.numeric(trainData$y),
epochs = 30, batch_size = 100,
validation_split = 0.2
)
Therefore I think you made some copying error or more probably a 'find and replace' error.
I do not know a dplr package but of course there is the dplyr package. In the article these packages are not mentioned explicitly. If you get no error messages on the library statements at the beginning of the article I assume that all necessary packages are available.