/** * checks whether the clusterer can handle the given percentage of * missing predictors * * @param percent the percentage of missing predictors * @param allowFail if true a fail statement may be executed * @return true if the clusterer can handle it */ protected boolean checkMissingPredictors(int percent, boolean allowFail) { boolean[] result; result = m_Tester.canHandleMissing( m_NominalPredictors, m_NumericPredictors, m_StringPredictors, m_DatePredictors, m_RelationalPredictors, m_multiInstanceHandler, true, percent); if (allowFail) { if (!result[0] && !result[1]) fail("Error handling " + percent + "% missing predictors!"); } return result[0]; }
/** * checks whether the clusterer can handle the given percentage of * missing predictors * * @param percent the percentage of missing predictors * @param allowFail if true a fail statement may be executed * @return true if the clusterer can handle it */ protected boolean checkMissingPredictors(int percent, boolean allowFail) { boolean[] result; result = m_Tester.canHandleMissing( m_NominalPredictors, m_NumericPredictors, m_StringPredictors, m_DatePredictors, m_RelationalPredictors, m_multiInstanceHandler, true, percent); if (allowFail) { if (!result[0] && !result[1]) fail("Error handling " + percent + "% missing predictors!"); } return result[0]; }
boolean handleMissingPredictors = canHandleMissing(PNom, PNum, PStr, PDat, PRel, multiInstance, true, 20)[0]; if (handleMissingPredictors) { canHandleMissing(PNom, PNum, PStr, PDat, PRel, multiInstance, true, 100);
boolean handleMissingPredictors = canHandleMissing(PNom, PNum, PStr, PDat, PRel, multiInstance, true, 20)[0]; if (handleMissingPredictors) { canHandleMissing(PNom, PNum, PStr, PDat, PRel, multiInstance, true, 100);