public static int findClassLabelColumn ( MultipleObjectsBundle bundle ) { for ( int i = 0 , l = bundle . metaLength ( ) ; i < l ; ++ i ) { if ( TypeUtil . CLASSLABEL . isAssignableFromType ( bundle . meta ( i ) ) ) { return i ; } } return - 1 ; }
Find the class label column in the given data set .