@Override public Object clone() throws CloneNotSupportedException { return new CELOE(this); }
lp.init(); CELOE la = new CELOE(lp, rc); la.init();
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); }
lp.init(); CELOE la = new CELOE(lp, rc); la.setMaxExecutionTimeInSeconds(10); la.setNoisePercentage(25);
heuristic.setExpansionPenaltyFactor(0.1); CELOE celoe = new CELOE(lp, rc); celoe.setHeuristic(heuristic); celoe.setMaxExecutionTimeInSeconds(60*60*12);
heuristic.setExpansionPenaltyFactor(0.1); CELOE celoe = new CELOE(lp, rc); celoe.setHeuristic(heuristic); celoe.setMaxExecutionTimeInSeconds(300);
lp.init(); CELOE la = new CELOE(lp, rc); la.setMaxExecutionTimeInSeconds(10); la.setNoisePercentage(25);
heuristic.setExpansionPenaltyFactor(0.01); la = new CELOE(lp, baseReasoner); la.setHeuristic(heuristic); la.setMaxExecutionTimeInSeconds(36000);
op.init(); CELOE alg = new CELOE(lp, rc); alg.setMaxClassExpressionTests(1000); alg.setMaxExecutionTimeInSeconds(0);
CELOE alg = new CELOE(); alg.setMaxExecutionTimeInSeconds(1);
lp.init(); CELOE la = new CELOE(lp, closedWorldReasoner); la.setMaxExecutionTimeInSeconds(maxExecutionTimeInSeconds); la.init();
final AbstractCELA la = new CELOE(lp, reasoner); la.init();
lp.init(); CELOE alg = new CELOE(lp, rc); alg.setMaxExecutionTimeInSeconds(10); alg.setWriteSearchTree(true);
lp.init(); CELOE la = new CELOE(lp, rc); la.setWriteSearchTree(true); la.setSearchTreeFile("log/punning_search_tree.txt");
lp.init(); CELOE la = new CELOE(lp, rc); la.setMaxExecutionTimeInSeconds(10); la.init();
System.out.println(ce); CELOE alg = new CELOE(lp, rc); alg.setMaxExecutionTimeInSeconds(10); alg.setOperator(op);
CELOE alg = new CELOE(lp, rc); alg.setMaxExecutionTimeInSeconds(10); alg.setWriteSearchTree(true);
op.init(); CELOE alg = new CELOE(lp, reasoner); alg.setMaxClassExpressionTests(1000); alg.setMaxExecutionTimeInSeconds(0);
CELOE la = new CELOE(lp, reasoner); la.setNoisePercentage(100.0); la.setOperator(op);
lp.init(); CELOE alg = new CELOE(lp, rc); alg.setOperator(op); alg.setMaxExecutionTimeInSeconds(60);