public class PsiUp extends RefinementOperatorAdapter
Constructor and Description |
---|
PsiUp(PosNegLP learningProblem,
AbstractReasonerComponent reasoningService) |
Modifier and Type | Method and Description |
---|---|
void |
init()
Method to be called after the component has been configured.
|
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
refine(org.semanticweb.owlapi.model.OWLClassExpression concept)
Standard refinement operation.
|
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
refine(org.semanticweb.owlapi.model.OWLClassExpression concept,
int maxLength,
List<org.semanticweb.owlapi.model.OWLClassExpression> knownRefinements)
Optional refinement operation, where the learning algorithm can
specify an additional bound on the length of descriptions and
a list of known refinements, which do not need to be returned.
|
getLengthMetric, refine, setLengthMetric
isInitialized
public PsiUp(PosNegLP learningProblem, AbstractReasonerComponent reasoningService)
public Set<org.semanticweb.owlapi.model.OWLClassExpression> refine(org.semanticweb.owlapi.model.OWLClassExpression concept)
RefinementOperator
refine
in interface RefinementOperator
refine
in class RefinementOperatorAdapter
concept
- The description, which will be refined.public Set<org.semanticweb.owlapi.model.OWLClassExpression> refine(org.semanticweb.owlapi.model.OWLClassExpression concept, int maxLength, List<org.semanticweb.owlapi.model.OWLClassExpression> knownRefinements)
LengthLimitedRefinementOperator
refine
in interface LengthLimitedRefinementOperator
refine
in class RefinementOperatorAdapter
concept
- The description, which will be refined.maxLength
- The maximum length of returned description, where length is defined by OWLClassExpressionUtils.getLength(OWLClassExpression)
.knownRefinements
- A collection of known refinements, which do not need to be returned.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)
. DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann