Error in predicting test data when apply prediction fda.model (flexible discriminant analysis)

杀马特。学长 韩版系。学妹 提交于 2019-12-25 16:38:22

问题


library(mda)

I'm using:

pred.test <- predict(model.fda, test.data) 
after model.fda <- fda(Y~., train.data)

but obtained the following message:

Error in mindist[l] <- ndist[l] : NAs are not allowed in subscripted assignments.

Thank you very much for the hint!


回答1:


I've solved this issue after normalizing the data (It was binary values only and maybe too sparse in my case).



来源:https://stackoverflow.com/questions/30172523/error-in-predicting-test-data-when-apply-prediction-fda-model-flexible-discrimi

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