public abstract class ErrorDistribution extends Object implements Plottable
PrecisionRecall
and Roc
.Modifier and Type | Field and Description |
---|---|
protected RealArray[] |
datasets
The datasets.
|
protected DataStyle[] |
dataStyles
The
DataStyle s. |
protected String[] |
dataTitles
The data titles.
|
Constructor and Description |
---|
ErrorDistribution(double[][] confidencesArray,
boolean[][] outcomesArray)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getAucs()
Gets the AUCs (area under curves).
|
double[] |
getAxisRange(Plot.AxisType axisType)
Gets the axis range.
|
String |
getAxisTitle(Plot.AxisType axisType)
Gets the axis title.
|
RealArray[] |
getDatasets()
Gets the datasets.
|
DataStyle[] |
getDataStyles()
Gets the
DataStyle s. |
String[] |
getDataTitles()
Gets the data titles.
|
protected abstract double[] |
getXAxisRange()
Gets the
x -axis range. |
protected abstract String |
getXAxisTitle()
Gets the
x -axis title. |
protected abstract double[] |
getYAxisRange()
Gets the
y -axis range. |
protected abstract String |
getYAxisTitle()
Gets the
y -axis title. |
protected abstract void |
initDataset(RealArray dataset,
boolean[] outcomes)
Initializes the given dataset.
|
boolean |
isPropertyEnabled(String property)
Gets whether the given property is enabled.
|
protected final RealArray[] datasets
protected final String[] dataTitles
public ErrorDistribution(double[][] confidencesArray, boolean[][] outcomesArray)
confidencesArray
- the array of prediction confidences.outcomesArray
- the array of prediction outcomes.public double[] getAucs()
public RealArray[] getDatasets()
Plottable
getDatasets
in interface Plottable
public String[] getDataTitles()
Plottable
getDataTitles
in interface Plottable
public DataStyle[] getDataStyles()
Plottable
DataStyle
s.getDataStyles
in interface Plottable
public boolean isPropertyEnabled(String property)
Plottable
isPropertyEnabled
in interface Plottable
property
- the given property.true
if and only if the given property is enabled.public String getAxisTitle(Plot.AxisType axisType)
Plottable
getAxisTitle
in interface Plottable
axisType
- the Plot.AxisType
.public double[] getAxisRange(Plot.AxisType axisType)
Plottable
getAxisRange
in interface Plottable
axisType
- the Plot.AxisType
.protected abstract void initDataset(RealArray dataset, boolean[] outcomes)
dataset
- the dataset.outcomes
- the prediction outcomes.protected abstract String getXAxisTitle()
x
-axis title.protected abstract String getYAxisTitle()
y
-axis title.protected abstract double[] getXAxisRange()
x
-axis range.protected abstract double[] getYAxisRange()
y
-axis range.