From: <lor...@us...> - 2012-05-04 01:01:01
|
Revision: 3692 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3692&view=rev Author: lorenz_b Date: 2012-05-04 01:00:54 +0000 (Fri, 04 May 2012) Log Message: ----------- Reduced delay time. Modified Paths: -------------- trunk/scripts/src/main/java/org/dllearner/scripts/evaluation/EnrichmentEvaluation.java Modified: trunk/scripts/src/main/java/org/dllearner/scripts/evaluation/EnrichmentEvaluation.java =================================================================== --- trunk/scripts/src/main/java/org/dllearner/scripts/evaluation/EnrichmentEvaluation.java 2012-05-03 21:29:31 UTC (rev 3691) +++ trunk/scripts/src/main/java/org/dllearner/scripts/evaluation/EnrichmentEvaluation.java 2012-05-04 01:00:54 UTC (rev 3692) @@ -187,7 +187,7 @@ private final int nrOfAttemptsBeforeForceToSPARQL1_0_Mode = 2; //delay between 2 attempts - private final int delayInMilliseconds = 15000; + private final int delayInMilliseconds = 5000; // max. execution time for each learner for each entity private int maxExecutionTimeInSeconds = 10; @@ -403,7 +403,7 @@ try { ((AbstractAxiomLearningAlgorithm)learner).setForceSPARQL_1_0_Mode(attempt > nrOfAttemptsBeforeForceToSPARQL1_0_Mode); learner.start(); - timeout = false; + timeout = ((AbstractAxiomLearningAlgorithm)learner).isTimeout(); } catch (Exception e) { if(e.getCause() instanceof SocketTimeoutException){ @@ -491,7 +491,7 @@ try { ((AbstractAxiomLearningAlgorithm)learner).setForceSPARQL_1_0_Mode(attempt > nrOfAttemptsBeforeForceToSPARQL1_0_Mode); learner.start(); - timeout = false; + timeout = ((AbstractAxiomLearningAlgorithm)learner).isTimeout(); } catch (Exception e) { if(e.getCause() instanceof SocketTimeoutException){ @@ -589,7 +589,7 @@ try { ((AbstractAxiomLearningAlgorithm)learner).setForceSPARQL_1_0_Mode(attempt > nrOfAttemptsBeforeForceToSPARQL1_0_Mode); learner.start(); - timeout = false; + timeout = ((AbstractAxiomLearningAlgorithm)learner).isTimeout(); } catch (Exception e) { e.printStackTrace(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |