org.dllearner.learningproblems
Class ScorePosOnly

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

public class ScorePosOnly
extends Score

Author:
Jens Lehmann
See Also:
Serialized Form

Constructor Summary
ScorePosOnly(Set<Individual> coveredInstances, Set<Individual> notCoveredPositives, double coverage, Set<Individual> additionalInstances, double protusion, double accuracy)
           
 
Method Summary
 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> getNotCoveredPositives()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScorePosOnly

public ScorePosOnly(Set<Individual> coveredInstances,
                    Set<Individual> notCoveredPositives,
                    double coverage,
                    Set<Individual> additionalInstances,
                    double protusion,
                    double accuracy)
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

getNotCoveredPositives

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

getAdditionalInstances

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


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