Hi, I was repeating the procedure available at https://r-posts.com/creating-custom-neural-networks-with-nnlib2rcpp/ and I think there is a typo there. Instead of desired_data_out <- matrix(data=0, nrow=cases, ncol=3) you may want to have desired_data_out <- matrix(data=0, nrow=iris_cases, ncol=3).
Hi, I was repeating the procedure available at https://r-posts.com/creating-custom-neural-networks-with-nnlib2rcpp/ and I think there is a typo there. Instead of
desired_data_out <- matrix(data=0, nrow=cases, ncol=3)
you may want to havedesired_data_out <- matrix(data=0, nrow=iris_cases, ncol=3)
.