Package storm.trident.testing

Examples of storm.trident.testing.MockTridentTuple


        int i = 1;
        List<Double> tempList = new LinkedList<Double>();
        for (String key : classifier.model.schema.keySet())
          tempList.add(Double.parseDouble(test_vector[i++]));

        TridentTuple values = new MockTridentTuple(new LinkedList(
            classifier.model.schema.keySet()), tempList);

        // compare classifier label vs. predicted

        classifier.prepare();

        String label = classifier.classifyTuple(values);
        LOG.debug(values.toString() + " predicted: " + predicted
            + " score: " + label);

        if (!predicted.equals(label)) {
          StringBuilder sb = new StringBuilder();
View Full Code Here

TOP

Related Classes of storm.trident.testing.MockTridentTuple

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.