필터 지우기
필터 지우기

Training and testing dataset using Linear Model of machine learning

조회 수: 1 (최근 30일)
Motiur
Motiur 2014년 5월 27일
In the example and the functions provided for the Linear Model in Matlab for example
mdl = LinearModel.fit(X,Y)
mdl contains functions such as MSE which would calculate the error of the "training"set. Is there any similar function for a suitable"testing" set. I am asking this because I am aware of the predict function, and I just would have to write extra amount of code to find the MSE of a testing set. Moreover the residuals of a testing set would not be available in the workspace, when I use predict function. Is there any way which would enable to write less amount of code and find testing error i.e MSE of the Linear Model. Thanks.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Regression에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by