public int getSplittingAttribute ( ) { //TODO refactor the splittingAttribute to just be in this order already if ( splittingAttribute < catAttributes . length ) //categorical feature return numNumericFeatures + splittingAttribute ; //else, is Numerical attribute int numerAttribute = splittingAttribute - catAttributes . length ; return numerAttribute ; }
Returns the attribute that this stump has decided to use to compute results . Numeric features start from 0 and categorical features start from the number of numeric features .