Package edu.msu.cme.rdp.classifier.train.validation

Examples of edu.msu.cme.rdp.classifier.train.validation.ValidationClassificationResult


            int size = ((List) aPath.get(i)).size();
            if (size == 0) {
                outFile.write("\n");
                continue;
            }
            ValidationClassificationResult result = (ValidationClassificationResult) ((List) aPath.get(i)).get(size - 1);

            outFile.write(((Taxonomy) ((HierarchyTree) result.getBestClass()).getTaxonomy()).getTaxID() + "\n");
        }
    }
View Full Code Here


        }
        out.write("\n");

        i = resultFacade.getRankAssignment().iterator();
        while (i.hasNext()) {
            ValidationClassificationResult result = (ValidationClassificationResult) i.next();
            out.write(((HierarchyTree) result.getBestClass()).getName() + "\t");

        }

        out.write("\n");
        i = resultFacade.getRankAssignment().iterator();
View Full Code Here

        // compare the true taxon and the hit taxon with same rank.
        while (trueParent != null) {

            if (!trueParent.isSingleton()) {
                ValidationClassificationResult hit = null;
                for (int i = 0; i < hitList.size(); i++) {
                    ValidationClassificationResult tmp = (ValidationClassificationResult) hitList.get(i);
                    if ((trueParent.getTaxonomy().getHierLevel()).equals(tmp.getBestClass().getTaxonomy().getHierLevel())) {
                        hit = tmp;
                        break;
                    }
                }
View Full Code Here

        // update the total count and misclassified count

        while (trueParent != null) {

            if (!trueParent.isSingleton()) {
                ValidationClassificationResult hit = null;
                for (int i = 0; i < hitList.size(); i++) {
                    ValidationClassificationResult tmp = (ValidationClassificationResult) hitList.get(i);
                    if ((trueParent.getTaxonomy().getHierLevel()).equals(tmp.getBestClass().getTaxonomy().getHierLevel())) {
                        hit = tmp;
                        break;
                    }
                }
View Full Code Here

TOP

Related Classes of edu.msu.cme.rdp.classifier.train.validation.ValidationClassificationResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.