When you use a classifier to classify a dataset for some class values, you get an instance that has data attributes and an attribute that has class values. For example, if you have a set of emails as data, you should classify them as spam / non-spam. So your class attribute has two class values ββ(spam, non-spam).
Typically, a class attribute is added as the last attribute of the instance (optional). Therefore, you must specify a classifier whose attribute is an attribute of the class and which are other attributes. So the line you specified does the job. Indicates what the class index of your data instance object is.
If you need more explanation, write your code here. Hooray!..
source share