public static void main(String[] args) throws Exception { KnowledgeSource ks = new OWLFile("../examples/swore/swore.rdf"); AbstractReasonerComponent rc = new ClosedWorldReasoner(ks); rc.init(); ClassLearningProblem lp = new ClassLearningProblem(rc); lp.setClassToDescribe(new OWLClassImpl(IRI.create("http://ns.softwiki.de/req/CustomerRequirement"))); lp.init(); CELOE celoe = new CELOE(lp, rc); celoe.setNoisePercentage(1.0); celoe.setMaxExecutionTimeInSeconds(3); celoe.init(); celoe.start(); List<OWLClassExpression> descriptions = new ArrayList<>(); for (EvaluatedDescription<? extends Score> ed : celoe.getCurrentlyBestEvaluatedDescriptions(100)) { if(((EvaluatedDescriptionClass)ed).getAdditionalInstances().size() > 0){ System.out.println(ed); System.out.println(((EvaluatedDescriptionClass)ed).getAdditionalInstances()); descriptions.add(ed.getDescription()); } if(descriptions.size() == 3) break; } // descriptions.addAll(celoe.getCurrentlyBestDescriptions(2)); // descriptions.add(new NamedClass("http://ns.softwiki.de/req/Requirement")); // descriptions.add(new NamedClass("http://ns.softwiki.de/req/Customer")); DescriptionLinearClassifier dlc = new DescriptionLinearClassifier(lp, rc); dlc.getLinearCombination(descriptions); }
setMaxClassExpressionTestsAfterImprovement(celoe.maxClassExpressionTestsAfterImprovement); setMaxDepth(celoe.maxDepth); setMaxExecutionTimeInSeconds(celoe.getMaxExecutionTimeInSeconds()); setMaxExecutionTimeInSecondsAfterImprovement(celoe.maxExecutionTimeInSecondsAfterImprovement); setMaxNrOfResults(celoe.maxNrOfResults);
la.setMaxExecutionTimeInSeconds(10); la.setNoisePercentage(25); la.setMaxNrOfResults(100);
celoe.setMaxExecutionTimeInSeconds(60*60*12); celoe.setNoisePercentage(80); celoe.setMaxNrOfResults(50);
la = new CELOE(lp, rc); ((CELOE) la).setHeuristic(heuristic); ((CELOE) la).setMaxExecutionTimeInSeconds(1800); ((CELOE) la).setNoisePercentage(80); ((CELOE) la).setMaxNrOfResults(50);
celoe.setMaxExecutionTimeInSeconds(300); celoe.setNoisePercentage(50); celoe.setMaxNrOfResults(10);
CELOE celoe = new CELOE(lp, rc); celoe.setHeuristic(heuristic); celoe.setMaxExecutionTimeInSeconds(1800); celoe.setNoisePercentage(80); celoe.setMaxNrOfResults(50);
la.setMaxExecutionTimeInSeconds(10); la.setNoisePercentage(25); la.init();
la.setMaxExecutionTimeInSeconds(36000); la.setMaxDepth(30); la.setNoisePercentage(20);
alg.setMaxExecutionTimeInSeconds(0); alg.setOperator(op); alg.init();
la.setMaxExecutionTimeInSeconds(maxExecutionTimeInSeconds); la.init();
alg.setMaxExecutionTimeInSeconds(10); alg.setWriteSearchTree(true); alg.setSearchTreeFile("log/search-tree.log");
celoe.setMaxExecutionTimeInSeconds(algorithmRuntimeInSeconds); celoe.setNoisePercentage(noisePercent); celoe.setMaxNrOfResults(10);
la.setReplaceSearchTree(true); la.setMaxNrOfResults(50); la.setMaxExecutionTimeInSeconds(20); la.setExpandAccuracy100Nodes(true); OEHeuristicRuntime heuristic = new OEHeuristicRuntime();
la.setMaxExecutionTimeInSeconds(10); la.init(); RhoDRDown op = (RhoDRDown) la.getOperator();
alg.setMaxExecutionTimeInSeconds(10); alg.setOperator(op); alg.setWriteSearchTree(true);
alg.setMaxExecutionTimeInSeconds(10); alg.setWriteSearchTree(true); alg.setSearchTreeFile("/tmp/dllearner/search-tree.log");
alg.setMaxExecutionTimeInSeconds(0); alg.setOperator(op); alg.init();
alg.setMaxExecutionTimeInSeconds(60); alg.setWriteSearchTree(true); alg.setSearchTreeFile("log/search-tree.log");