If you want an example please type: = ExcelImport (‘example.xls’) or = ExcelImport (‘yourfile.xls’) and watch the output.ġ) outcome classes must be numeric, with value from 0 to n.Ģ) outcome classes must’n contain NaN (the code will exit in this circumstance).Īt this point a first GUI helps you to select variables to include in the analysis, so you don’t need to modify your original datafile. Please create a file with this 3 variables: X (matrix of covariate values), y (outcome values), textdata (cell structure contains the text name of outcome and covariates). It can also import directly from matlab file (.mat extention). To start the classification tree type in Matlab workspace: Tree(‘filename.xls’) or Tree(‘filename.csv’) (be careful that your excel file contains a first row with variable names and the outcome group in the first column). The first column is the outcome group and It must be numeric. It imports data directly from an excel or csv file, using the first row as variable names (necessary). The main function of this code is named Tree. This matlab code uses ‘classregtree' function that implement GINI algorithm to determine the best split for each node (CART). Most of the commercial packages offer complex Tree classification algorithms, but they are very much expensive. Decision tree learning is a common method used in data mining.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |