private ROCResult computeROCResult(int size, SetDBIDs positiveids, OutlierResult or) { XYCurve roccurve = ROCEvaluation.materializeROC(new DBIDsTest(positiveids), new OutlierScoreAdapter(or)); double rocauc = XYCurve.areaUnderCurve(roccurve); return new ROCResult(roccurve, rocauc); }
private ROCResult computeROCResult(int size, SetDBIDs positiveids, OutlierResult or) { XYCurve roccurve = ROCEvaluation.materializeROC(new DBIDsTest(positiveids), new OutlierScoreAdapter(or)); double rocauc = XYCurve.areaUnderCurve(roccurve); return new ROCResult(roccurve, rocauc); }
private ROCResult computeROCResult(SetDBIDs positiveids, OutlierResult or) { XYCurve roccurve = ROCEvaluation.materializeROC(new DBIDsTest(positiveids), new OutlierScoreAdapter(or)); double rocauc = XYCurve.areaUnderCurve(roccurve); return new ROCResult(roccurve, rocauc); }
private ROCResult computeROCResult(int size, SetDBIDs positiveids, DBIDs order) { if(order.size() != size) { throw new IllegalStateException("Iterable result doesn't match database size - incomplete ordering?"); } XYCurve roccurve = ROCEvaluation.materializeROC(new DBIDsTest(positiveids), new SimpleAdapter(order.iter())); double rocauc = XYCurve.areaUnderCurve(roccurve); return new ROCResult(roccurve, rocauc); }
private ROCResult computeROCResult(int size, SetDBIDs positiveids, DBIDs order) { if(order.size() != size) { throw new IllegalStateException("Iterable result doesn't match database size - incomplete ordering?"); } XYCurve roccurve = ROCEvaluation.materializeROC(new DBIDsTest(positiveids), new SimpleAdapter(order.iter())); double rocauc = XYCurve.areaUnderCurve(roccurve); return new ROCResult(roccurve, rocauc); }
private ROCResult computeROCResult(SetDBIDs positiveids, DBIDs order) { XYCurve roccurve = ROCEvaluation.materializeROC(new DBIDsTest(positiveids), new SimpleAdapter(order.iter())); double rocauc = XYCurve.areaUnderCurve(roccurve); return new ROCResult(roccurve, rocauc); }
double rocauc = XYCurve.areaUnderCurve(curve) / (x * y); if(LOG.isVerbose()) { LOG.verbose(SMROCAUC_LABEL + ": " + rocauc);
double rocauc = XYCurve.areaUnderCurve(curve) / (x * y); if(LOG.isVerbose()) { LOG.verbose(SMROCAUC_LABEL + ": " + rocauc);
double rocauc = XYCurve.areaUnderCurve(curve) / (x * y); if(LOG.isVerbose()) { LOG.verbose(SMROCAUC_LABEL + ": " + rocauc);
double auc = XYCurve.areaUnderCurve(roccurve); assertEquals("ROC AUC (curve) not correct.", 0.6, auc, 1e-14); double auc2 = new ROCEvaluation().evaluate(positive, distances);