public class QTL2DisjunctiveMultiThreaded extends AbstractCELA implements Cloneable
MAX_NR_OF_RESULTS| Constructor and Description |
|---|
QTL2DisjunctiveMultiThreaded() |
QTL2DisjunctiveMultiThreaded(PosNegLP learningProblem,
AbstractReasonerComponent reasoner) |
QTL2DisjunctiveMultiThreaded(PosNegLP lp,
org.aksw.jena_sparql_api.core.QueryExecutionFactory qef) |
QTL2DisjunctiveMultiThreaded(PosNegLP lp,
SparqlEndpointKS ks) |
QTL2DisjunctiveMultiThreaded(QTL2DisjunctiveMultiThreaded qtl)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
EvaluatedRDFResourceTree |
getBestSolution() |
org.semanticweb.owlapi.model.OWLClassExpression |
getCurrentlyBestDescription() |
EvaluatedDescription |
getCurrentlyBestEvaluatedDescription()
Returns the best descriptions obtained so far.
|
QueryTreeHeuristic |
getHeuristic() |
SortedSet<EvaluatedRDFResourceTree> |
getSolutions() |
List<EvaluatedRDFResourceTree> |
getSolutionsAsList() |
long |
getTimeBestSolutionFound() |
void |
init()
Method to be called after the component has been configured.
|
boolean |
isRunning()
Returns whether the learning algorithm is running.
|
void |
setBeta(double beta)
Default value is 1.
|
void |
setEntailment(Entailment entailment) |
void |
setHeuristic(QueryTreeHeuristic heuristic) |
void |
setKs(SparqlEndpointKS ks) |
void |
setMaxTreeComputationTimeInSeconds(double maxTreeComputationTimeInSeconds)
Set the max.
|
void |
setMaxTreeDepth(int maxTreeDepth) |
void |
setNegativeExampleTrees(Map<org.semanticweb.owlapi.model.OWLIndividual,RDFResourceTree> negativeExampleTrees) |
void |
setNoise(double noise) |
void |
setNoisePercentage(double noisePercentage) |
void |
setNrOfThreads(int nrOfThreads) |
void |
setPositiveExampleTrees(Map<org.semanticweb.owlapi.model.OWLIndividual,RDFResourceTree> positiveExampleTrees) |
void |
setReasoner(AbstractReasonerComponent reasoner) |
void |
setTreeFactory(QueryTreeFactory treeFactory) |
void |
start()
Starts the algorithm.
|
void |
stop()
Stops the algorithm gracefully.
|
changeLearningProblem, changeReasonerComponent, getAllowedConcepts, getAllowedDataProperties, getAllowedObjectProperties, getCurrentlyBestDescriptions, getCurrentlyBestDescriptions, getCurrentlyBestDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestMostGeneralEvaluatedDescriptions, getIgnoredConcepts, getIgnoredDataProperties, getIgnoredObjectProperties, getLearningProblem, getMaxExecutionTimeInSeconds, getReasoner, isUseMinimizer, setAllowedConcepts, setAllowedDataProperties, setAllowedObjectProperties, setIgnoredConcepts, setIgnoredDataProperties, setIgnoredObjectProperties, setLearningProblem, setMaxExecutionTime, setMaxExecutionTimeInSeconds, setRenderer, setUseMinimizer, supportedLearningProblemsisInitializedpublic QTL2DisjunctiveMultiThreaded()
public QTL2DisjunctiveMultiThreaded(PosNegLP learningProblem, AbstractReasonerComponent reasoner)
public QTL2DisjunctiveMultiThreaded(PosNegLP lp, org.aksw.jena_sparql_api.core.QueryExecutionFactory qef)
public QTL2DisjunctiveMultiThreaded(PosNegLP lp, SparqlEndpointKS ks)
public QTL2DisjunctiveMultiThreaded(QTL2DisjunctiveMultiThreaded qtl)
qtl - the QTL2Disjunctive instancepublic void init() throws ComponentInitException
Componentinit in interface ComponentComponentInitException - This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
re-throw occurring exception as ComponentInitException and
giving an error message as well as the actually exception by
using the constructor ComponentInitException(String, Throwable).public void setEntailment(Entailment entailment)
entailment - the entailment to setpublic void setNrOfThreads(int nrOfThreads)
public void start()
LearningAlgorithmstart in interface LearningAlgorithmpublic void stop()
StoppableLearningAlgorithmstop in interface StoppableLearningAlgorithmstop in class AbstractCELApublic org.semanticweb.owlapi.model.OWLClassExpression getCurrentlyBestDescription()
getCurrentlyBestDescription in class AbstractCELAAbstractCELA.getCurrentlyBestEvaluatedDescription()public EvaluatedDescription getCurrentlyBestEvaluatedDescription()
AbstractCELAgetCurrentlyBestEvaluatedDescription in class AbstractCELApublic boolean isRunning()
StoppableLearningAlgorithmisRunning in interface StoppableLearningAlgorithmisRunning in class AbstractCELApublic void setReasoner(AbstractReasonerComponent reasoner)
setReasoner in class AbstractCELApublic void setNoisePercentage(double noisePercentage)
noisePercentage - the noisePercentage to setpublic void setNoise(double noise)
noise - the noise to setpublic void setBeta(double beta)
beta - the beta to setpublic void setMaxTreeComputationTimeInSeconds(double maxTreeComputationTimeInSeconds)
maxTreeComputationTimeInSeconds - the max. computation for a partial solution treepublic QueryTreeHeuristic getHeuristic()
public void setHeuristic(QueryTreeHeuristic heuristic)
heuristic - the heuristic to setpublic void setTreeFactory(QueryTreeFactory treeFactory)
treeFactory - the treeFactory to setpublic EvaluatedRDFResourceTree getBestSolution()
public SortedSet<EvaluatedRDFResourceTree> getSolutions()
public List<EvaluatedRDFResourceTree> getSolutionsAsList()
public void setPositiveExampleTrees(Map<org.semanticweb.owlapi.model.OWLIndividual,RDFResourceTree> positiveExampleTrees)
positiveExampleTrees - the positive example trees to setpublic void setNegativeExampleTrees(Map<org.semanticweb.owlapi.model.OWLIndividual,RDFResourceTree> negativeExampleTrees)
negativeExampleTrees - the negative example trees to set@Autowired public void setKs(SparqlEndpointKS ks)
ks - the ks to setpublic void setMaxTreeDepth(int maxTreeDepth)
maxTreeDepth - the maximum depth of the trees, if those have to be generated
first. The default depth is 2.public long getTimeBestSolutionFound()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann