필터 지우기
필터 지우기

cross validation error meaning?

조회 수: 2 (최근 30일)
Melinda Darren
Melinda Darren 2017년 4월 17일
답변: Mukul Rao 2017년 4월 24일
I need help deciphering what a cross validation error (kfoldloss) of 536 means. I've developed a program that creates a decision tree. The program runs with 2,286 data points for several different variables. Does this mean that the model gets 536 predictions incorrect?

답변 (1개)

Mukul Rao
Mukul Rao 2017년 4월 24일
Hello,
To begin with I would recommend reading a little about what cross-validation stands for from here:
The documentation for kfoldLoss
says that L is "The loss (mean squared error) between the observations in a fold when compared against predictions made with a tree trained on the out-of-fold data. If mode is 'individual', L is a vector of the losses. If mode is 'average', L is the average loss."
This post has a mathematical representation of the aforementioned statement:
Therefore, the way I see it, the value of 536 indicates that the average mean squared error over the cross validation sets for your model is 536.
If you would like to see the individual loss values corresponding to each of the partitioned data sets, you can set the 'mode' property for kfoldLoss to be 'individual'.

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by