org.dllearner.learningproblems
Class ClassScore

java.lang.Object
  extended by org.dllearner.core.Score
      extended by org.dllearner.learningproblems.ClassScore
All Implemented Interfaces:
Serializable

public class ClassScore
extends Score
implements Serializable

The score of a class in ontology engineering.

Author:
Jens Lehmann
See Also:
Serialized Form

Constructor Summary
ClassScore(Set<Individual> coveredInstances, Set<Individual> notCoveredInstances, double coverage, Set<Individual> additionalInstances, double protusion, double accuracy)
           
ClassScore(Set<Individual> coveredInstances, Set<Individual> notCoveredInstances, double coverage, Set<Individual> additionalInstances, double protusion, double accuracy, boolean isConsistent, boolean followsFromKB)
           
 
Method Summary
 boolean followsFromKB()
           
 double getAccuracy()
          This method returns a value, which indicates how accurate a class description solves a learning problem.
 double getAddition()
          Let C be the considered class description and A the class to learn.
 Set<Individual> getAdditionalInstances()
           
 double getCoverage()
           
 Set<Individual> getCoveredInstances()
           
 Set<Individual> getNotCoveredInstances()
           
 boolean isConsistent()
           
 void setConsistent(boolean isConsistent)
           
 void setFollowsFromKB(boolean followsFromKB)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassScore

public ClassScore(Set<Individual> coveredInstances,
                  Set<Individual> notCoveredInstances,
                  double coverage,
                  Set<Individual> additionalInstances,
                  double protusion,
                  double accuracy)

ClassScore

public ClassScore(Set<Individual> coveredInstances,
                  Set<Individual> notCoveredInstances,
                  double coverage,
                  Set<Individual> additionalInstances,
                  double protusion,
                  double accuracy,
                  boolean isConsistent,
                  boolean followsFromKB)
Method Detail

getCoverage

public double getCoverage()
Returns:
Coverage of the class description.

getAddition

public double getAddition()
Let C be the considered class description and A the class to learn. The addition number is calculated as the number of instances of C which are also instances of A divided by the number of instances of C.

Returns:
Additional instances of the class description.

getAccuracy

public double getAccuracy()
Description copied from class: Score
This method returns a value, which indicates how accurate a class description solves a learning problem.

Specified by:
getAccuracy in class Score
Returns:
A value between 0 and 1 indicating the quality (of a class description).
See Also:
AbstractLearningProblem.getAccuracy(Description)

getCoveredInstances

public Set<Individual> getCoveredInstances()
Returns:
the coveredInstances

getNotCoveredInstances

public Set<Individual> getNotCoveredInstances()
Returns:
the notCoveredInstances

getAdditionalInstances

public Set<Individual> getAdditionalInstances()
Returns:
the additionalInstances

setConsistent

public void setConsistent(boolean isConsistent)

setFollowsFromKB

public void setFollowsFromKB(boolean followsFromKB)

isConsistent

public boolean isConsistent()
Returns:
the isConsistent

followsFromKB

public boolean followsFromKB()
Returns:
the followsFromKB


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann