/** * Checks basic estimation of one attribute of the scheme, for simple * non-troublesome datasets. * * @param attrTypes the types the estimator can work with * @param classType the class type (NOMINAL, NUMERIC, etc.) */ protected void canSplitUpClass(AttrTypes attrTypes, int classType) { if (attrTypes.nominal) { canSplitUpClass(Attribute.NOMINAL, classType); } if (attrTypes.numeric) { canSplitUpClass(Attribute.NUMERIC, classType); } }
/** * Checks basic estimation of one attribute of the scheme, for simple * non-troublesome datasets. * * @param attrTypes the types the estimator can work with * @param classType the class type (NOMINAL, NUMERIC, etc.) */ protected void canSplitUpClass(AttrTypes attrTypes, int classType) { if (attrTypes.nominal) { canSplitUpClass(Attribute.NOMINAL, classType); } if (attrTypes.numeric) { canSplitUpClass(Attribute.NUMERIC, classType); } }
/** * Begin the tests, reporting results to System.out */ public void doTests() { if (getEstimator() == null) { println("\n=== No estimator set ==="); return; } println("\n=== Check on Estimator: " + getEstimator().getClass().getName() + " ===\n"); m_ClasspathProblems = false; // Start tests with test for options canTakeOptions(); // test what type of estimator it is EstTypes estTypes = new EstTypes(); estTypes.incremental = incrementalEstimator()[0]; estTypes.weighted = weightedInstancesHandler()[0]; estTypes.supervised = supervisedEstimator()[0]; // in none of the estimators yet the functionality is depending on the class // type // since this could change the basic structure taken from checkclassifiers // is kept here int classType = Attribute.NOMINAL; AttrTypes attrTypes = testsPerClassType(classType, estTypes); // only nominal class can be split up so far canSplitUpClass(attrTypes, classType); }
/** * Begin the tests, reporting results to System.out */ public void doTests() { if (getEstimator() == null) { println("\n=== No estimator set ==="); return; } println("\n=== Check on Estimator: " + getEstimator().getClass().getName() + " ===\n"); m_ClasspathProblems = false; // Start tests with test for options canTakeOptions(); // test what type of estimator it is EstTypes estTypes = new EstTypes(); estTypes.incremental = incrementalEstimator()[0]; estTypes.weighted = weightedInstancesHandler()[0]; estTypes.supervised = supervisedEstimator()[0]; // in none of the estimators yet the functionality is depending on the class // type // since this could change the basic structure taken from checkclassifiers // is kept here int classType = Attribute.NOMINAL; AttrTypes attrTypes = testsPerClassType(classType, estTypes); // only nominal class can be split up so far canSplitUpClass(attrTypes, classType); }