From: <jen...@us...> - 2009-06-18 14:22:32
|
Revision: 1807 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1807&view=rev Author: jenslehmann Date: 2009-06-18 13:37:47 +0000 (Thu, 18 Jun 2009) Log Message: ----------- small bug fixes in evaluation Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java trunk/src/dl-learner/org/dllearner/utilities/statistics/Stat.java Modified: trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java =================================================================== --- trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java 2009-06-18 12:02:16 UTC (rev 1806) +++ trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java 2009-06-18 13:37:47 UTC (rev 1807) @@ -243,7 +243,10 @@ double approx = lp.getAccuracyOrTooWeakApprox(d, noisePercent/(double)100); double exact = lp.getAccuracyOrTooWeakExact(d, noisePercent/(double)100); double diff = Math.abs(approx-exact); - approxDiffStat.addNumber(diff); + // do not count "too weak" + if(approx > -0.01 && exact > -0.01) { + approxDiffStat.addNumber(diff); + } // if(diff>0.1) { // System.out.println("description: " + d); // System.out.println("approx: " + approx); Modified: trunk/src/dl-learner/org/dllearner/utilities/statistics/Stat.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/statistics/Stat.java 2009-06-18 12:02:16 UTC (rev 1806) +++ trunk/src/dl-learner/org/dllearner/utilities/statistics/Stat.java 2009-06-18 13:37:47 UTC (rev 1807) @@ -132,7 +132,7 @@ } public String prettyPrint(String unit) { - if(sum > 0) { + if(count > 0) { DecimalFormat df = new DecimalFormat(); String str = "av. " + df.format(getMean()) + unit; str += " (deviation " + df.format(getStandardDeviation()) + unit + "; "; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |