/** * tests whether the Kernel handles instance weights correctly * * @see CheckKernel#instanceWeights(boolean, boolean, boolean, boolean, boolean, boolean, int) * @see CheckKernel#testsPerClassType(int, boolean, boolean) */ public void testInstanceWeights() { boolean[] result; int i; if (m_weightedInstancesHandler) { for (i = FIRST_CLASSTYPE; i <= LAST_CLASSTYPE; i++) { // does the Kernel support this type of class at all? if (!canPredict(i)) continue; result = m_Tester.instanceWeights( m_NominalPredictors[i], m_NumericPredictors[i], m_StringPredictors[i], m_DatePredictors[i], m_RelationalPredictors[i], m_multiInstanceHandler, i); if (!result[0]) System.err.println( "Error handling instance weights (" + getClassTypeString(i) + " class)!"); } } }