From: <jen...@us...> - 2009-01-25 14:15:48
|
Revision: 1581 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1581&view=rev Author: jenslehmann Date: 2009-01-25 14:15:39 +0000 (Sun, 25 Jan 2009) Log Message: ----------- operator benchmark ctd. Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/refinementoperators/ELDown2.java trunk/src/dl-learner/org/dllearner/scripts/evaluation/ELOperatorBenchmark.java Modified: trunk/src/dl-learner/org/dllearner/refinementoperators/ELDown2.java =================================================================== --- trunk/src/dl-learner/org/dllearner/refinementoperators/ELDown2.java 2009-01-24 20:02:30 UTC (rev 1580) +++ trunk/src/dl-learner/org/dllearner/refinementoperators/ELDown2.java 2009-01-25 14:15:39 UTC (rev 1581) @@ -400,11 +400,14 @@ wPosition[position.length] = v.getEdges().size(); ELDescriptionNode w = tpp.getNode(wPosition); - if(tpp.isMinimal()) { + boolean minimal = tpp.isMinimal(); + MonitorFactory.add("as.minimal", "boolean", minimal ? 1 : 0); + if(minimal) { refinements.add(tpp); // logger.trace("tree is minimal; added to T"); } else { boolean check = asCheck(w); + MonitorFactory.add("as.check", "boolean", check ? 1 : 0); // logger.trace("tree is not minimal; result of complex check: " + check); if(check) { Modified: trunk/src/dl-learner/org/dllearner/scripts/evaluation/ELOperatorBenchmark.java =================================================================== --- trunk/src/dl-learner/org/dllearner/scripts/evaluation/ELOperatorBenchmark.java 2009-01-24 20:02:30 UTC (rev 1580) +++ trunk/src/dl-learner/org/dllearner/scripts/evaluation/ELOperatorBenchmark.java 2009-01-25 14:15:39 UTC (rev 1581) @@ -67,26 +67,47 @@ // create a directory for log files Date dt = new Date(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss"); - String dir = "log/el/" + df.format(dt) + "/"; - new File(dir).mkdir(); + String statDir = "log/el/" + df.format(dt) + "/"; + new File(statDir).mkdir(); - String example = "/home/jl/promotion/ontologien/galen2.owl"; -// example = "/home/jl/downloads/uni-leipzig/OTAGen-v1/generated/generatedOnt.owl"; + // single ontology test +// String example = "/home/jl/promotion/ontologien/galen2.owl"; +// for(int i=10; i<17; i++) { +// rand = new Random(1); +// testOntology(statDir, example, 100, i); +// } - for(int i=10; i<17; i++) { + // real world ontology tests // + String base = "/home/jl/promotion/ontologien/el_benchmark/"; + String[] onts = new String[] {"galen2", "cton", "earthrealm", "fma_owl_dl_component_1.4.0", + "iso_19115", "nci", "process", "pto", "tambis", "thesaurus", "transportation"}; + + for(String ont : onts) { + String file = base + ont + ".owl"; rand = new Random(1); - testOntology(dir, example, 100, i); + testOntology(statDir, file, 100, 10); } - System.exit(0); + // artificial ontology tests // - /* TEST ON ARTIFICIAL ONTOLOGIES - - // number of concepts and roles - int[] conceptCounts = new int[] { 5, 10 }; - int[] roleCounts = new int[] { 5, 10}; + int[] conceptCounts = new int[] { 5, 10, 50, 100 }; //, 500, 1000 }; + int[] roleCounts = new int[] { 5, 10, 50, 100, 500, 1000}; + base = "/home/jl/downloads/uni-leipzig/OTAGen-v1/generated/generated_"; + // loop through all artificial ontologies + for(int conceptCount : conceptCounts) { + for(int roleCount : roleCounts) { + String file = base + "c" + conceptCount + "_r" + roleCount + ".owl"; + rand = new Random(1); + testOntology(statDir, file, 100, 10); + } + } + + System.exit(0); + + /* + // number of applications of operator int opApplications = 10; @@ -218,7 +239,7 @@ statString += getMonitorData(MonitorFactory.getMonitor("attach tree", "ms.")); statString += getMonitorData(MonitorFactory.getMonitor("as.merge trees", "ms.")); statString += getMonitorData(MonitorFactory.getMonitor("as.complex check", "ms.")); - statString += getMonitorData(MonitorFactory.getMonitor("as.tmp", "ms.")); +// statString += getMonitorData(MonitorFactory.getMonitor("as.tmp", "ms.")); // statString += getMonitorData(MonitorFactory.getMonitor("el.tmp", "ms.")); statString += getMonitorDataBoolean(MonitorFactory.getMonitor("as.minimal", "boolean")); statString += getMonitorDataBoolean(MonitorFactory.getMonitor("as.check", "boolean")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |