Okay, so if I want to create a decision tree, so I come to this classification method here. If I go Maria if algorithm is equal to linear so we these are these are cohere. So if I want to create as a decision tree for ID tree maker ID tree or beat j boy I put something IDs if algorithms are equal to as a decision tree LP j k for a linear equation you JP okay okay in RSA j for a there I will change linea two j boy I changed the name to J boy then to two j foils. Okay. I can set settings for the classifier. So I can do something.
See our hair stock. mec see is no longer case to be Jay Paul a dot sound so j for a sound prune. I will add era no important gap here. Really important because classifier gap saw Jay for a dog say I'm proving to be true okay. So bodies decision tree classifier, this algorithm we can set the properties or the parameters or the settings here. So, for linear regression, we can also do something like this linear, there is something.
So, we can set all the settings here also. So, for decision tree you can set settings for the decision tree here for j boy a dot set to true and classifier equal to j boy then classifier to classify using based on the training data. So, for each number of instances or observations we classify By the instance So, for here I need to change something. So, the car is labor a classify instance okay I need to in something like this stream labor equals test dot cross attribute dot value in Asia and then see how as labor okay there we go pre install CRS labor real pain these are labor So, I will explain why in the data set Let's see going into the data set okay I use notepad plus plus a test editor. So in the data set I say we are using the iris dataset.
So let's say we are using the iris data set. So the dry Iris he will return to me the number so far CLS labor, cis labor, he will return to me the number. So for. For the CRS label, you will return to me, let's see one or two Maybe zero. So zero will be Iris setosa then two will be Iris virginica and one will be Iris see color. So I want to get all these are cross categories all these names here.
So I will do something Id string label equal test cross attribute and then get a value and I convert this cis label into integer and then I get a cross on indies arisa Tosa form instead of getting all those are 012 so I have something like this then I can use a classification method so I can do something I classy vacation Why is power meters classification change set test all these so I can do something is change I will use the dry the dry I will be using Iris dataset Iris, the dry Iris doc AI then Tessa will be using the dry I raised to be I raised tests Dalia. So I raised underscore test.ai algorithm I'm going to be using should be tree so here is our use tree should be tree chaining index ah let me call the index number for Iris. So 01234 so the class indices for for the testing, data crossing does it So, so far okay.
So I have no semicolon I can run the program okay. So for classification so I should have prediction something I guess, Iris setosa Iris setosa Iris versicolor and Iris virginica. Ah, I changed CLS labor. Change the CIS label into the iris versicolor. If I put in the CRS label, it will give me something like one, two or zero. So I changed zero to Iris setosa to Iris virginica.