results <- neuralnet::compute(model2, test_df) # This can happen when you load the neuralnet package followed # by another package that contains a compute function # (like the dplyr package).