Check for missing argument or incorrect argument data type in call to function 'predict'.
이전 댓글 표시
I created my model in two different ways first using fitlm and then fitrlinear. With fitlm everything is okay, but with fitrlinear, when in the last row I use predict(mdl2,Xte), it returns me the error.
I checked all the related documentation but I don' understand why it is wrong.
% Xtr,Ytr = training | Xte,Yte = testing
mdl1 = fitlm(Xtr,Ytr);
mdl2 = fitrlinear(Xtr,Ytr,'KFold',5,'Learner','leastsquares','Regularization','lasso');
ypred1 = predict(mdl1,Xte);
ypred2 = predict(mdl2,Xte);
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Support Vector Machine Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!