edu.udo.cs.yale.tools.math
Class WeightedConfidenceAndLabel

java.lang.Object
  extended by edu.udo.cs.yale.tools.math.WeightedConfidenceAndLabel
All Implemented Interfaces:
java.lang.Comparable

public class WeightedConfidenceAndLabel
extends java.lang.Object
implements java.lang.Comparable

Helper class for finding thresholds for cost sensitive learning or calculating the AUC performance criterion.

Version:
$Id: WeightedConfidenceAndLabel.java,v 1.1 2006/04/13 15:52:03 ingomierswa Exp $
Author:
Martin Scholz, Ingo Mierswa

Field Summary
private  double confidence
           
private  double label
           
private  double prediction
           
private  double weight
           
 
Constructor Summary
WeightedConfidenceAndLabel(double confidence, double label, double prediction)
           
WeightedConfidenceAndLabel(double confidence, double label, double prediction, double weight)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 double getConfidence()
           
 double getLabel()
           
 double getPrediction()
           
 double getWeight()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

confidence

private double confidence

label

private double label

prediction

private double prediction

weight

private double weight
Constructor Detail

WeightedConfidenceAndLabel

public WeightedConfidenceAndLabel(double confidence,
                                  double label,
                                  double prediction)

WeightedConfidenceAndLabel

public WeightedConfidenceAndLabel(double confidence,
                                  double label,
                                  double prediction,
                                  double weight)
Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

getLabel

public double getLabel()

getPrediction

public double getPrediction()

getConfidence

public double getConfidence()

getWeight

public double getWeight()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2006