cross validation error meaning?
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
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'.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Gaussian Process Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!