決策樹分類——matlab程序

%% 使用ID3決策樹算法預測銷量高低 clc; clear ; %% 數據預處理 disp('正在進行數據預處理...'); [matrix,attributes_label,attributes] = id3_preprocess(); %% 構造ID3決策樹,其中id3()爲自定義函數 disp('數據預處理完成,正在進行構造樹...'); tree = id3(matrix,attr
相關文章
相關標籤/搜索