Mathematical modeling study notes (twenty-six) the use of matlab Classification Learner toolbox

There is a magic toolbox Classification Learner in matlab

Try to use the classic problem of iris classification:
first load the data

load('fisheriris')

fisheriris is the iris data set
Insert picture description here
that comes with matlab. Open the toolbox, select all the data from the workspace, and start the session

Using the decision tree model, you can quickly perform analysis, and there are a variety of result graphs to choose from:
Insert picture description here
Insert picture description here
Insert picture description here
Disadvantages: only suitable for cases where the amount of data is relatively small; parameter selection is much less than python;
advantages: there are multiple models to choose from, batch training You can choose the model

with the highest accuracy. For Xiaobai (such as me) who doesn’t know much about the model , this thing is really fragrant~

Guess you like

Origin blog.csdn.net/qq1198768105/article/details/113621629