Cefficient of determination in r studio

How to calculate coefficient of determination in r studio using neuralnet and can anyone help me with this code:
predict_testNN = compute(NN,testNN[,c(1:5)])
i am trying to predict rmse value , this code has error .please correct it

© Copyright 2013-2019 Analytics Vidhya