Re: Decision Tree with libsvmtools datasets

2014-12-11 Thread Sean Owen
The implementation assumes classes are 0-indexed, not 1-indexed. You should set numClasses = 3 and change your labels to 0, 1, 2. On Thu, Dec 11, 2014 at 3:40 AM, Ge, Yao (Y.) wrote: > I am testing decision tree using iris.scale data set > (http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/m

Decision Tree with libsvmtools datasets

2014-12-10 Thread Ge, Yao (Y.)
I am testing decision tree using iris.scale data set (http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multiclass.html#iris) In the data set there are three class labels 1, 2, and 3. However in the following code, I have to make numClasses = 4. I will get an ArrayIndexOutOfBound Exception