Hi Neha, The error message looks suspicious, as it refers to "all the MAEs" while there is only one NA value in the summary. I would carefully check the object that you are passing to san_res.
Jim On Mon, Dec 23, 2019 at 4:17 AM Neha gupta <neha.bologn...@gmail.com> wrote: > > I am using the following code to tune the 4 parameters of Gradient Boosting > algorithm using Simulated annealing (optim). When I run the program, after > few seconds it stops and displays the following error: > > I point out here that the same code works for RF ( mtry parameter) and SVM > (cost and sigma parameters). So, I guess the problem should be in the 4 > parameters of GBM > > Something is wrong; all the MAE metric values are missing: > RMSE Rsquared MAE > Min. : NA Min. : NA Min. : NA > 1st Qu.: NA 1st Qu.: NA 1st Qu.: NA > Median : NA Median : NA Median : NA > Mean :NaN Mean :NaN Mean :NaN > 3rd Qu.: NA 3rd Qu.: NA 3rd Qu.: NA > Max. : NA Max. : NA Max. : NA > NA's :1 NA's :1 NA's :1 > ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.