Regression trees, improve the test performance

2 次查看(过去 30 天)
Hi everyone,
I built a basic regression tree code for a complicated problem (27 inputs, one output, 630 timesteps)
rtree = RegressionTree.fit(InputsTr,Mn2tr,'Minparent',30);
view(rtree,'mode','graph');
Ynew = predict(rtree,Inputsts);
plot(Ynew)
hold on
plot(Mn2ts,'g')
hold off
err=Ynew-Mn2ts;
Msetst=mse(err)
percMse=Msetst/mean(Mn2ts)
I got a very good performance for the training set, but when I tried with new independent inputs (Inputsts), the performance dropped to very poor values.
Any suggestions about how to improve it? I have tried with pruning, making it simpler, but the improvement is very small (only because the resulting values are less noisy, but very far from the real targets)
Thank you

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by