cross validation error meaning?

1 visualización (últimos 30 días)
Melinda Darren
Melinda Darren el 17 de Abr. de 2017
Respondida: Mukul Rao el 24 de Abr. de 2017
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?

Respuestas (1)

Mukul Rao
Mukul Rao el 24 de Abr. de 2017
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'.

Community Treasure Hunt

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

Start Hunting!

Translated by