|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.yale.operator.learner.igss.utility.AbstractUtility
public abstract class AbstractUtility
Abstract superclass for all utility functions.
Field Summary | |
---|---|
protected int |
large
The number of covered examples before normal approximation is used. |
protected double[] |
priors
The prior probability of the two classes of the label. |
Fields inherited from interface edu.udo.cs.yale.operator.learner.igss.utility.Utility |
---|
FIRST_TYPE_INDEX, LAST_TYPE_INDEX, TYPE_ACCURACY, TYPE_BINOMIAL, TYPE_LINEAR, TYPE_SQUARED, TYPE_WRACC, UTILITY_TYPES |
Constructor Summary | |
---|---|
AbstractUtility(double[] priors,
int large)
Constructor for all utilities. |
Method Summary | |
---|---|
double |
calculateM(double delta,
double epsilon)
Calculates the M-value needed for the GSS algorithm. |
abstract double |
conf(double totalWeight,
double delta)
Calculates the normal approximation of the confidence intervall. |
abstract double |
conf(double totalWeight,
double totalPositiveWeight,
Hypothesis hypo,
double delta)
Calculates the normal approximation of the confidence intervall for a specific hypothesis. |
double |
confidenceIntervall(double totalWeight,
double delta)
Calculates the the unspecific confidence intervall. |
double |
confidenceIntervall(double totalWeight,
double totalPositiveWeight,
Hypothesis hypo,
double delta)
Calculates the the confidence intervall for a specific hypothesis. |
abstract double |
confSmallM(double totalWeight,
double delta)
Calculates the confidence intervall for small numbers of examples. |
double |
inverseNormal(double p)
Calculates the inverse of the normal distribution, e.g.inverseNormal(0.95)==1.64. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.udo.cs.yale.operator.learner.igss.utility.Utility |
---|
getUpperBound, utility |
Field Detail |
---|
protected double[] priors
protected int large
Constructor Detail |
---|
public AbstractUtility(double[] priors, int large)
Method Detail |
---|
public double calculateM(double delta, double epsilon)
calculateM
in interface Utility
public double confidenceIntervall(double totalWeight, double delta)
confidenceIntervall
in interface Utility
public double confidenceIntervall(double totalWeight, double totalPositiveWeight, Hypothesis hypo, double delta)
confidenceIntervall
in interface Utility
public abstract double confSmallM(double totalWeight, double delta)
public abstract double conf(double totalWeight, double delta)
public abstract double conf(double totalWeight, double totalPositiveWeight, Hypothesis hypo, double delta)
public double inverseNormal(double p)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |