Package com.etsy.conjecture

Examples of com.etsy.conjecture.PrimitivePair


        List<PrimitivePair> curve = new ArrayList<PrimitivePair>();
        double tp = 0;
        double fp = 0;

        for (int[] counts : examples.values()) {
            curve.add(new PrimitivePair(fp / neg, tp / pos));

            tp += counts[0];
            fp += counts[1];
        }
        curve.add(new PrimitivePair(fp / neg, tp / pos));

        double[][] out = new double[curve.size()][2];

        for (int i = 0; i < curve.size(); i++) {
            out[i][0] = curve.get(i).second; // tpr
View Full Code Here

TOP

Related Classes of com.etsy.conjecture.PrimitivePair

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.