train() in caret package returns an error about names & gsub

余生长醉 提交于 2019-12-06 13:41:11

As it happens, the error was a really basic one.

I was performing normalization on the data (that I did not suspect would cause the issue) but it turned out one of the variables only had 0's in it; hence I got all NaN's, which caused the model to fail.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!