Download M5PrimeLab

Transcript
rng(1);
resultsCV = m5pcv(X, Y, params, isBinCat, 10, [], [], paramsEnsemble);
figure;
plot(ensembleResults.OOBError(:,1));
hold on;
plot(resultsCV.MSE);
grid on;
xlabel('Number of trees');
ylabel('MSE');
legend({'Out-of-bag' 'Cross-Validation'}, 'Location', 'NorthEast');
After doing Cross-Validation, we can see that in our case it gives us error estimate that is very
similar to the previously calculated out-of-bag estimate.
18