/** * tests whether the classifier handles instance weights correctly * * @see CheckClassifier#instanceWeights(boolean, boolean, boolean, boolean, * boolean, boolean, int) * @see CheckClassifier#testsPerClassType(int, boolean, boolean, boolean) */ public void testInstanceWeights() { boolean[] result; int i; if (m_weightedInstancesHandler) { for (i = FIRST_CLASSTYPE; i <= LAST_CLASSTYPE; i++) { // does the classifier 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)!"); } } } }
/** * tests whether the classifier handles instance weights correctly * * @see CheckClassifier#instanceWeights(boolean, boolean, boolean, boolean, * boolean, boolean, int) * @see CheckClassifier#testsPerClassType(int, boolean, boolean, boolean) */ public void testInstanceWeights() { boolean[] result; int i; if (m_weightedInstancesHandler) { for (i = FIRST_CLASSTYPE; i <= LAST_CLASSTYPE; i++) { // does the classifier 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)!"); } } } }
instanceWeights(PNom, PNum, PStr, PDat, PRel, multiInstance, classType);
instanceWeights(PNom, PNum, PStr, PDat, PRel, multiInstance, classType);