public abstract class AbstractEDGE extends AbstractParameterLearningAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
AbstractEDGE.PossibleOutputFormat |
Constructor and Description |
---|
AbstractEDGE() |
AbstractEDGE(ClassLearningProblem lp,
Set<org.semanticweb.owlapi.model.OWLAxiom> targetAxioms) |
Modifier and Type | Method and Description |
---|---|
void |
changeSourcesOntology(org.semanticweb.owlapi.model.OWLOntology ontology) |
int |
getAccuracy() |
double |
getDifferenceLL() |
org.semanticweb.owlapi.model.OWLOntology |
getLearnedOntology() |
BigDecimal |
getLL()
Get the Log-Likelihood of all the examples/queries.
|
BigDecimal |
getLOGZERO() |
int |
getMaxExplanations() |
long |
getMaxIterations() |
int |
getMaxNegativeExamples() |
int |
getMaxPositiveExamples() |
Set<org.semanticweb.owlapi.model.OWLAxiom> |
getNegativeExampleAxioms() |
AbstractEDGE.PossibleOutputFormat |
getOutputformat() |
BigDecimal |
getParameter(org.semanticweb.owlapi.model.OWLAxiom ax)
Gets the probabilistic parameter of an axiom
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
getPositiveExampleAxioms() |
double |
getRatioLL() |
int |
getSeed() |
org.semanticweb.owlapi.model.OWLOntology |
getSourcesOntology() |
Map<String,Long> |
getTimeMap()
Gets the map of the time in milliseconds spent by various algorithms.
|
String |
getTimeout() |
void |
init()
Method to be called after the component has been configured.
|
boolean |
isRandomize() |
boolean |
isRandomizeAll() |
boolean |
isShowAll() |
void |
reset() |
void |
setAccuracy(int accuracy) |
void |
setDifferenceLL(double differenceLL) |
void |
setMaxExplanations(int maxExplanations) |
void |
setMaxIterations(long maxIterations) |
void |
setMaxNegativeExamples(int maxNegativeExamples) |
void |
setMaxPositiveExamples(int maxPositiveExamples) |
void |
setNegativeExampleAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> negativeExampleAxioms) |
void |
setOutputformat(AbstractEDGE.PossibleOutputFormat outputformat) |
void |
setPositiveExampleAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> positiveExampleAxioms) |
void |
setProbabilizeAll(boolean probabilizeAll) |
void |
setRandomize(boolean randomize) |
void |
setRatioLL(double ratioLL) |
void |
setSeed(int seed) |
void |
setShowAll(boolean showAll) |
void |
setTimeout(String timeout) |
getLearningProblem, getTargetAxioms, isRunning, setLearningProblem, setTargetAxioms, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start
public AbstractEDGE()
public AbstractEDGE(ClassLearningProblem lp, Set<org.semanticweb.owlapi.model.OWLAxiom> targetAxioms)
public BigDecimal getLL()
public Map<String,Long> getTimeMap()
AbstractParameterLearningAlgorithm
getTimeMap
in class AbstractParameterLearningAlgorithm
public void init() throws ComponentInitException
Component
ComponentInitException
- 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 BigDecimal getParameter(org.semanticweb.owlapi.model.OWLAxiom ax) throws ParameterLearningException
AbstractParameterLearningAlgorithm
getParameter
in class AbstractParameterLearningAlgorithm
ParameterLearningException
public int getSeed()
public void setSeed(int seed)
seed
- the seed to setpublic boolean isRandomize()
public void setRandomize(boolean randomize)
randomize
- the randomize to setpublic boolean isRandomizeAll()
public void setProbabilizeAll(boolean probabilizeAll)
probabilizeAll
- the randomizeAll to setpublic double getDifferenceLL()
public void setDifferenceLL(double differenceLL)
differenceLL
- the differenceLL to setpublic double getRatioLL()
public void setRatioLL(double ratioLL)
ratioLL
- the ratioLL to setpublic long getMaxIterations()
public void setMaxIterations(long maxIterations)
maxIterations
- the maxIterations to setpublic int getMaxExplanations()
public void setMaxExplanations(int maxExplanations)
maxExplanations
- the maxExplanations to setpublic String getTimeout()
public void setTimeout(String timeout)
timeout
- the timeout to setpublic boolean isShowAll()
public void setShowAll(boolean showAll)
showAll
- the showAll to setpublic AbstractEDGE.PossibleOutputFormat getOutputformat()
public void setOutputformat(AbstractEDGE.PossibleOutputFormat outputformat)
outputformat
- the outputformat to setpublic int getMaxPositiveExamples()
public void setMaxPositiveExamples(int maxPositiveExamples)
maxPositiveExamples
- the maxPositiveExamples to setpublic int getMaxNegativeExamples()
public void setMaxNegativeExamples(int maxNegativeExamples)
maxNegativeExamples
- the maxNegativeExamples to setpublic Set<org.semanticweb.owlapi.model.OWLAxiom> getPositiveExampleAxioms()
public void setPositiveExampleAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> positiveExampleAxioms)
positiveExampleAxioms
- the positiveExamples to setpublic Set<org.semanticweb.owlapi.model.OWLAxiom> getNegativeExampleAxioms()
public void setNegativeExampleAxioms(Set<org.semanticweb.owlapi.model.OWLAxiom> negativeExampleAxioms)
negativeExampleAxioms
- the negativeExamples to setpublic int getAccuracy()
public void setAccuracy(int accuracy)
accuracy
- the accuracy to setpublic org.semanticweb.owlapi.model.OWLOntology getLearnedOntology()
public org.semanticweb.owlapi.model.OWLOntology getSourcesOntology()
public void changeSourcesOntology(org.semanticweb.owlapi.model.OWLOntology ontology)
public void reset()
public BigDecimal getLOGZERO()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann