1
我正在使用迴歸樹(http://www.mathworks.co.uk/help/stats/classregtree.html)對一些數據進行分類。我的數據有9個特徵,但是迴歸樹會給我一個決策樹,只是基於分割類的最好的兩個特徵。我想看看分類中使用的更多功能。我已閱讀文檔,但什麼都沒發現。你能指出我該怎麼做?如何指定matlab中迴歸樹的深度?
我正在使用迴歸樹(http://www.mathworks.co.uk/help/stats/classregtree.html)對一些數據進行分類。我的數據有9個特徵,但是迴歸樹會給我一個決策樹,只是基於分割類的最好的兩個特徵。我想看看分類中使用的更多功能。我已閱讀文檔,但什麼都沒發現。你能指出我該怎麼做?如何指定matlab中迴歸樹的深度?
這可能是由於修剪,默認爲on
。嘗試將其設置爲off
:
t = classregtree(X, y, 'prune','off')
不,它不是。我試過 – dorafmon
那麼你應該爲我們發佈一個可重複的例子來嘗試。 – Nishanth
嗯....我的數據集有30 * 9個元素,所以我想這不太可能。 – dorafmon