public class CELOE extends AbstractCELA implements Cloneable
MAX_NR_OF_RESULTS| Constructor and Description |
|---|
CELOE() |
CELOE(AbstractClassExpressionLearningProblem problem,
AbstractReasonerComponent reasoner) |
CELOE(CELOE celoe) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
getClassExpressionTests() |
double |
getCurrentlyBestAccuracy() |
org.semanticweb.owlapi.model.OWLClassExpression |
getCurrentlyBestDescription() |
List<org.semanticweb.owlapi.model.OWLClassExpression> |
getCurrentlyBestDescriptions() |
EvaluatedDescription<? extends Score> |
getCurrentlyBestEvaluatedDescription()
Returns the best descriptions obtained so far.
|
NavigableSet<? extends EvaluatedDescription<? extends Score>> |
getCurrentlyBestEvaluatedDescriptions()
Returns a sorted set of the best descriptions found so far.
|
AbstractHeuristic |
getHeuristic() |
int |
getMaxClassExpressionTests() |
int |
getMaxClassExpressionTestsAfterImprovement() |
double |
getMaxDepth() |
int |
getMaxExecutionTimeInSecondsAfterImprovement() |
int |
getMaximumHorizontalExpansion() |
int |
getMaxNrOfResults() |
int |
getMinimumHorizontalExpansion() |
double |
getNoisePercentage() |
LengthLimitedRefinementOperator |
getOperator() |
SortedMap<Long,Double> |
getRuntimeVsBestScore() |
SortedMap<Long,Double> |
getRuntimeVsBestScore(long ticksIntervalTimeValue,
TimeUnit ticksIntervalTimeUnit)
Return a map that contains
entries with time points at which a hypothesis with a better score than before has been found
entries with the current best score for each defined interval time point
|
String |
getSearchTreeFile() |
org.semanticweb.owlapi.model.OWLClassExpression |
getStartClass() |
long |
getTotalRuntimeNs() |
void |
init()
Method to be called after the component has been configured.
|
boolean |
isExpandAccuracy100Nodes() |
boolean |
isFilterDescriptionsFollowingFromKB() |
boolean |
isReplaceSearchTree() |
boolean |
isReuseExistingDescription() |
boolean |
isRunning()
Returns whether the learning algorithm is running.
|
boolean |
isSingleSuggestionMode() |
boolean |
isStopOnFirstDefinition() |
boolean |
isTerminateOnNoiseReached() |
boolean |
isWriteSearchTree() |
static void |
main(String[] args) |
void |
setExpandAccuracy100Nodes(boolean expandAccuracy100Nodes) |
void |
setFilterDescriptionsFollowingFromKB(boolean filterDescriptionsFollowingFromKB) |
void |
setHeuristic(AbstractHeuristic heuristic) |
void |
setKeepTrackOfBestScore(boolean keepTrackOfBestScore)
Whether to keep track of the best score during the algorithm run.
|
void |
setMaxClassExpressionTests(int maxClassExpressionTests) |
void |
setMaxClassExpressionTestsAfterImprovement(int maxClassExpressionTestsAfterImprovement) |
void |
setMaxDepth(double maxDepth) |
void |
setMaxExecutionTimeInSecondsAfterImprovement(int maxExecutionTimeInSecondsAfterImprovement) |
void |
setMaxNrOfResults(int maxNrOfResults) |
void |
setNoisePercentage(double noisePercentage) |
void |
setOperator(LengthLimitedRefinementOperator operator) |
void |
setReplaceSearchTree(boolean replaceSearchTree) |
void |
setReuseExistingDescription(boolean reuseExistingDescription) |
void |
setSearchTreeFile(String searchTreeFile) |
void |
setSingleSuggestionMode(boolean singleSuggestionMode) |
void |
setStartClass(org.semanticweb.owlapi.model.OWLClassExpression startClass) |
void |
setStopOnFirstDefinition(boolean stopOnFirstDefinition) |
void |
setTerminateOnNoiseReached(boolean terminateOnNoiseReached) |
void |
setWriteSearchTree(boolean writeSearchTree) |
void |
start()
Starts the algorithm.
|
void |
stop()
Stops the algorithm gracefully.
|
static Collection<Class<? extends AbstractClassExpressionLearningProblem>> |
supportedLearningProblems() |
changeLearningProblem, changeReasonerComponent, getAllowedConcepts, getAllowedDataProperties, getAllowedObjectProperties, getCurrentlyBestDescriptions, getCurrentlyBestDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestEvaluatedDescriptions, getCurrentlyBestMostGeneralEvaluatedDescriptions, getIgnoredConcepts, getIgnoredDataProperties, getIgnoredObjectProperties, getLearningProblem, getMaxExecutionTimeInSeconds, getReasoner, isUseMinimizer, setAllowedConcepts, setAllowedDataProperties, setAllowedObjectProperties, setIgnoredConcepts, setIgnoredDataProperties, setIgnoredObjectProperties, setLearningProblem, setMaxExecutionTime, setMaxExecutionTimeInSeconds, setReasoner, setRenderer, setUseMinimizerisInitializedpublic CELOE()
public CELOE(AbstractClassExpressionLearningProblem problem, AbstractReasonerComponent reasoner)
public static Collection<Class<? extends AbstractClassExpressionLearningProblem>> supportedLearningProblems()
public 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 start()
LearningAlgorithmstart in interface LearningAlgorithmpublic org.semanticweb.owlapi.model.OWLClassExpression getCurrentlyBestDescription()
getCurrentlyBestDescription in class AbstractCELAAbstractCELA.getCurrentlyBestEvaluatedDescription()public List<org.semanticweb.owlapi.model.OWLClassExpression> getCurrentlyBestDescriptions()
getCurrentlyBestDescriptions in class AbstractCELAAbstractCELA.getCurrentlyBestEvaluatedDescriptions()public EvaluatedDescription<? extends Score> getCurrentlyBestEvaluatedDescription()
AbstractCELAgetCurrentlyBestEvaluatedDescription in class AbstractCELApublic NavigableSet<? extends EvaluatedDescription<? extends Score>> getCurrentlyBestEvaluatedDescriptions()
AbstractCELAgetCurrentlyBestEvaluatedDescriptions in class AbstractCELApublic double getCurrentlyBestAccuracy()
public boolean isRunning()
StoppableLearningAlgorithmisRunning in interface StoppableLearningAlgorithmisRunning in class AbstractCELApublic void stop()
StoppableLearningAlgorithmstop in interface StoppableLearningAlgorithmstop in class AbstractCELApublic int getMaximumHorizontalExpansion()
public int getMinimumHorizontalExpansion()
public int getClassExpressionTests()
public LengthLimitedRefinementOperator getOperator()
@Autowired(required=false) public void setOperator(LengthLimitedRefinementOperator operator)
public org.semanticweb.owlapi.model.OWLClassExpression getStartClass()
public void setStartClass(org.semanticweb.owlapi.model.OWLClassExpression startClass)
public boolean isWriteSearchTree()
public void setWriteSearchTree(boolean writeSearchTree)
public String getSearchTreeFile()
public void setSearchTreeFile(String searchTreeFile)
public int getMaxNrOfResults()
public void setMaxNrOfResults(int maxNrOfResults)
public double getNoisePercentage()
public void setNoisePercentage(double noisePercentage)
public boolean isFilterDescriptionsFollowingFromKB()
public void setFilterDescriptionsFollowingFromKB(boolean filterDescriptionsFollowingFromKB)
public boolean isReplaceSearchTree()
public void setReplaceSearchTree(boolean replaceSearchTree)
public boolean isTerminateOnNoiseReached()
public void setTerminateOnNoiseReached(boolean terminateOnNoiseReached)
public boolean isReuseExistingDescription()
public void setReuseExistingDescription(boolean reuseExistingDescription)
public AbstractHeuristic getHeuristic()
@Autowired(required=false) public void setHeuristic(AbstractHeuristic heuristic)
public int getMaxExecutionTimeInSecondsAfterImprovement()
public void setMaxExecutionTimeInSecondsAfterImprovement(int maxExecutionTimeInSecondsAfterImprovement)
public boolean isSingleSuggestionMode()
public void setSingleSuggestionMode(boolean singleSuggestionMode)
public int getMaxClassExpressionTests()
public void setMaxClassExpressionTests(int maxClassExpressionTests)
public int getMaxClassExpressionTestsAfterImprovement()
public void setMaxClassExpressionTestsAfterImprovement(int maxClassExpressionTestsAfterImprovement)
public double getMaxDepth()
public void setMaxDepth(double maxDepth)
public boolean isStopOnFirstDefinition()
public void setStopOnFirstDefinition(boolean stopOnFirstDefinition)
public long getTotalRuntimeNs()
public boolean isExpandAccuracy100Nodes()
public void setExpandAccuracy100Nodes(boolean expandAccuracy100Nodes)
expandAccuracy100Nodes - the expandAccuracy100Nodes to setpublic void setKeepTrackOfBestScore(boolean keepTrackOfBestScore)
keepTrackOfBestScore - public SortedMap<Long,Double> getRuntimeVsBestScore()
public SortedMap<Long,Double> getRuntimeVsBestScore(long ticksIntervalTimeValue, TimeUnit ticksIntervalTimeUnit)
ticksIntervalTimeValue - at which time point the current best score is tracked periodicallyticksIntervalTimeUnit - the time unit of the periodic time point valuespublic 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