Examples of LabelMapping


Examples of etc.aloe.processes.LabelMapping

       
        //Predict the labels
        Predictions predictions = this.model.getPredictions(examples);

        //Map back onto messages
        LabelMapping mapping = getMappingImpl();
        mapping.map(predictions, segmentSet);

        //Evaluate the model on labeled examples
        this.evaluationReport = new EvaluationReport("Unlabeled Data", falsePositiveCost, falseNegativeCost);
        this.evaluationReport.addPredictions(predictions);
    }
View Full Code Here

Examples of etc.aloe.processes.LabelMapping

                Predictions predictions = model.getPredictions(testingSet);
                EvaluationReport report = new EvaluationReport("Fold " + (foldIndex + 1), falsePositiveCost, falseNegativeCost);
                report.addPredictions(predictions);
               
                LabelMapping mapping = getMappingImpl();
                mapping.map(predictions, testingSegments);
                report.addLabeledTestData(testingSegments);
               
                evaluationReport.addPartial(report);
                int numCorrect = report.getTrueNegativeCount() + report.getTruePositiveCount();
                System.out.println("- Fold " + (foldIndex + 1) + " completed (" + numCorrect + "/" + testingSet.size() + " correct).");
View Full Code Here

Examples of etc.aloe.processes.LabelMapping

            //Predict the labels
            Predictions prediction = this.model.getPredictions(examples);

            //Map back onto messages
            LabelMapping mapping = getMappingImpl();
            mapping.map(prediction, segmentSet);


            //Print out the label
            System.out.println("Predicted label: " + message.getPredictedLabel());
            System.out.println();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.