public abstract class AbstractParameterLearningAlgorithm extends Object implements ParameterLearningAlgorithm, StoppableLearningAlgorithm
| Constructor and Description |
|---|
AbstractParameterLearningAlgorithm() |
AbstractParameterLearningAlgorithm(AbstractLearningProblem learningProblem,
Set<org.semanticweb.owlapi.model.OWLAxiom> targetAxioms) |
| Modifier and Type | Method and Description |
|---|---|
AbstractLearningProblem |
getLearningProblem()
The learning problem variable, which must be used by all learning
algorithm implementations.
|
abstract BigDecimal |
getParameter(org.semanticweb.owlapi.model.OWLAxiom ax)
Gets the probabilistic parameter of an axiom
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
getTargetAxioms()
Gets the target axioms.
|
abstract Map<String,Long> |
getTimeMap()
Gets the map of the time in milliseconds spent by various algorithms.
|
boolean |
isRunning()
Returns whether the learning algorithm is running.
|
void |
setLearningProblem(LearningProblem learningProblem)
Set the learning problem, which the algorithm should solve.
|
void |
setTargetAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> targetAxioms)
Sets the target axioms of which want to learn the parameters.
|
void |
stop()
Stops the algorithm gracefully.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstartpublic AbstractParameterLearningAlgorithm()
public AbstractParameterLearningAlgorithm(AbstractLearningProblem learningProblem, Set<org.semanticweb.owlapi.model.OWLAxiom> targetAxioms)
learningProblem - targetAxioms - target axioms in manchester syntaxpublic void setTargetAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> targetAxioms)
targetAxioms - public Set<org.semanticweb.owlapi.model.OWLAxiom> getTargetAxioms()
public abstract BigDecimal getParameter(org.semanticweb.owlapi.model.OWLAxiom ax) throws ParameterLearningException
ax - ParameterLearningExceptionpublic abstract Map<String,Long> getTimeMap()
public AbstractLearningProblem getLearningProblem()
getLearningProblem in interface LearningAlgorithm@Autowired public void setLearningProblem(LearningProblem learningProblem)
LearningAlgorithmsetLearningProblem in interface LearningAlgorithmlearningProblem - The learning problem to solve.public boolean isRunning()
StoppableLearningAlgorithmisRunning in interface StoppableLearningAlgorithmpublic void stop()
StoppableLearningAlgorithmstop in interface StoppableLearningAlgorithm
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann