public class DefaultBinaryConfusionMatrixConfidenceInterval
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DefaultBinaryConfusionMatrixConfidenceInterval.Summary
An implementation of the
Summarizer interface for creating a
ConfusionMatrixInterval |
Constructor and Description |
---|
DefaultBinaryConfusionMatrixConfidenceInterval(double confidence,
ConfidenceInterval falsePositivesRate,
ConfidenceInterval falseNegativesRate,
ConfidenceInterval truePositivesRate,
ConfidenceInterval trueNegativesRate)
Creates a new instance of ConfusionMatrixConfidenceInterval
|
Modifier and Type | Method and Description |
---|---|
protected static void |
checkConfidence(double confidence)
Checks to make sure that confidence is between 0.0 and 1.0.
|
static DefaultBinaryConfusionMatrixConfidenceInterval |
compute(java.util.Collection<? extends DefaultBinaryConfusionMatrix> data,
double confidence)
Computes the ConfidenceIntervals for the given Collection of
ConfusionMatrices
|
double |
getConfidence()
Getter for confidence
|
ConfidenceInterval |
getFalseNegativesRate()
Getter for falseNegativesRate
|
ConfidenceInterval |
getFalsePositivesRate()
Getter for falsePositivesRate
|
ConfidenceInterval |
getTrueNegativesRate()
Getter for trueNegativesRate
|
ConfidenceInterval |
getTruePositivesRate()
Getter for truePositivesRate
|
protected void |
setConfidence(double confidence)
Setter for confidence
|
protected void |
setFalseNegativesRate(ConfidenceInterval falseNegativesRate)
Setter for falseNegativesRate
|
protected void |
setFalsePositivesRate(ConfidenceInterval falsePositivesRate)
Setter for falsePositivesRate
|
protected void |
setTrueNegativesRate(ConfidenceInterval trueNegativesRate)
Setter for trueNegativesRate
|
protected void |
setTruePositivesRate(ConfidenceInterval truePositivesRate)
Setter for truePositivesRate
|
java.lang.String |
toString() |
public DefaultBinaryConfusionMatrixConfidenceInterval(double confidence, ConfidenceInterval falsePositivesRate, ConfidenceInterval falseNegativesRate, ConfidenceInterval truePositivesRate, ConfidenceInterval trueNegativesRate)
confidence
- Confidence that the statistic is within the bound, or 1-alpha, on the
interval [0,1], where confidence=0 means definitely not within the bound
and confidence=1 means definitely within the bound.falsePositivesRate
- The fraction of target falses incorrectly classified as true,
FalsePositives / TotalNegatives = 1 - TrueNegativesRatefalseNegativesRate
- The fraction of target falses incorrectly classified as false,
FalseNegatives / TotalPositives = 1 - TruePositivesRatetruePositivesRate
- The fraction of target trues that were correctly classified as true,
TruePositives / TotalPositives = TruePositives / (TruePositives + FalseNegatives)trueNegativesRate
- The fraction of negative targets correctly classified as false,
TrueNegatives / TotalNegatives = TrueNegatives / (TrueNegatives + FalsePositives)public ConfidenceInterval getFalsePositivesRate()
protected void setFalsePositivesRate(ConfidenceInterval falsePositivesRate)
falsePositivesRate
- The fraction of target falses incorrectly classified as true,
FalsePositives / TotalNegatives = 1 - TrueNegativesRatepublic ConfidenceInterval getFalseNegativesRate()
protected void setFalseNegativesRate(ConfidenceInterval falseNegativesRate)
falseNegativesRate
- The fraction of target falses incorrectly classified as false,
FalseNegatives / TotalPositives = 1 - TruePositivesRatepublic ConfidenceInterval getTruePositivesRate()
protected void setTruePositivesRate(ConfidenceInterval truePositivesRate)
truePositivesRate
- The fraction of target trues that were correctly classified as true,
TruePositives / TotalPositives = TruePositives / (TruePositives + FalseNegatives)public ConfidenceInterval getTrueNegativesRate()
protected void setTrueNegativesRate(ConfidenceInterval trueNegativesRate)
trueNegativesRate
- The fraction of negative targets correctly classified as false,
TrueNegatives / TotalNegatives = TrueNegatives / (TrueNegatives + FalsePositives)public double getConfidence()
protected void setConfidence(double confidence)
confidence
- Confidence that the statistic is within the bound, or 1-alpha, on the
interval [0,1], where confidence=0 means definitely not within the bound
and confidence=1 means definitely within the bound.protected static void checkConfidence(double confidence)
confidence
- The confidence.public java.lang.String toString()
toString
in class java.lang.Object
public static DefaultBinaryConfusionMatrixConfidenceInterval compute(java.util.Collection<? extends DefaultBinaryConfusionMatrix> data, double confidence)
data
- Collection of ConfusionMatrices from which to compute the
ConfidenceIntervalsconfidence
- Confidence that the statistic is within the bound, or 1-alpha, on the
interval [0,1], where confidence=0 means definitely not within the bound
and confidence=1 means definitely within the bound.