From: <jen...@us...> - 2009-06-11 14:57:35
|
Revision: 1794 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1794&view=rev Author: jenslehmann Date: 2009-06-11 14:57:29 +0000 (Thu, 11 Jun 2009) Log Message: ----------- small extension Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java Modified: trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java =================================================================== --- trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java 2009-06-11 14:55:10 UTC (rev 1793) +++ trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java 2009-06-11 14:57:29 UTC (rev 1794) @@ -225,8 +225,7 @@ // but there is one which was not found // - n ("none"): none of the axioms is appropriate and // there is probably no other appropriate axiom - System.out - .println("Type a number (\"0\"-\"" + System.out.println("Type a number (\"0\"-\"" + (suggestions.size() - 1) + "\") if any of the suggestions is appropriate (if several are possible choose the lowest number). Type \"n\" if there is no appropriate suggestion for this class in your opinion. Type \"m\" if there is an appropriate suggestion in your opinion, but the algorithm did not suggest it."); @@ -244,6 +243,8 @@ input = br.readLine(); } while (!allowedInputs.contains(input)); + userInputProtocol += input; + if (input.equals("m")) { if (i == 0) { missesCount++; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2009-06-15 05:48:58
|
Revision: 1796 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1796&view=rev Author: jenslehmann Date: 2009-06-15 05:47:44 +0000 (Mon, 15 Jun 2009) Log Message: ----------- reduced memory consumption of evaluation script Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java Modified: trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java =================================================================== --- trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java 2009-06-12 11:30:46 UTC (rev 1795) +++ trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java 2009-06-15 05:47:44 UTC (rev 1796) @@ -309,6 +309,10 @@ } } } + + // remove components to save memory + cm.freeComponent(celoe); + cm.freeComponent(lp); } } } @@ -354,9 +358,9 @@ } @SuppressWarnings("unused") - private static void shrinkSet(Set set, int nrOfElements) { + private static void shrinkSet(Set<?> set, int nrOfElements) { while (set.size() > nrOfElements) { - Iterator it = set.iterator(); + Iterator<?> it = set.iterator(); it.next(); it.remove(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2009-06-18 13:25:34
|
Revision: 1806 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1806&view=rev Author: jenslehmann Date: 2009-06-18 12:02:16 +0000 (Thu, 18 Jun 2009) Log Message: ----------- performance measurements Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.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 11:53:56 UTC (rev 1805) +++ trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java 2009-06-18 12:02:16 UTC (rev 1806) @@ -242,7 +242,15 @@ Description d = ed.getDescription(); double approx = lp.getAccuracyOrTooWeakApprox(d, noisePercent/(double)100); double exact = lp.getAccuracyOrTooWeakExact(d, noisePercent/(double)100); - approxDiffStat.addNumber(approx-exact); + double diff = Math.abs(approx-exact); + approxDiffStat.addNumber(diff); +// if(diff>0.1) { +// System.out.println("description: " + d); +// System.out.println("approx: " + approx); +// System.out.println("exact: " + exact); +// System.out.println("evaluated: " + lp.evaluate(d).getAccuracy()); +// System.exit(0); +// } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2010-07-08 16:03:34
|
Revision: 2190 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=2190&view=rev Author: jenslehmann Date: 2010-07-08 16:03:28 +0000 (Thu, 08 Jul 2010) Log Message: ----------- configured script for statistics generation Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java Modified: trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java =================================================================== --- trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java 2010-07-08 14:20:09 UTC (rev 2189) +++ trunk/src/dl-learner/org/dllearner/scripts/evaluation/OntologyEngineering.java 2010-07-08 16:03:28 UTC (rev 2190) @@ -78,10 +78,10 @@ private static DecimalFormat df = new DecimalFormat(); // for performance measurements and development - private static boolean autoMode = false; + private static boolean autoMode = true; private static boolean useFastInstanceChecker = true; private static boolean useApproximations = true; - private static boolean computeApproxDiff = false; + private static boolean computeApproxDiff = true; @SuppressWarnings("unchecked") public static void main(String[] args) throws ComponentInitException, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |