public class ClassificationModelStatistics<U extends Bin> extends AbstractModelStatistics<U>
IModelStatistics.ModelStatus
Modifier and Type | Field and Description |
---|---|
protected static int |
ACCURACY |
protected static int |
ALL |
protected boolean |
classUnknown |
protected static int |
CORRECT |
protected static int |
ERROR |
protected String[] |
headings |
protected Hashtable<Comparable,Histogram<SelfBin<ValuePair>>> |
histogram |
protected static int |
LAST |
double_nf, integer_nf, stats
b
distance_histogram, status, title
Constructor and Description |
---|
ClassificationModelStatistics(String title) |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(Comparable dataset,
Double observed,
Double predicted) |
void |
clear() |
void |
clear(Comparable dataset) |
protected double[] |
createStats() |
Histogram<U> |
getHistogram(Comparable dataset,
int mode) |
boolean |
isClassUnknown() |
void |
setClassUnknown(boolean classUnknown) |
String |
toStatus(boolean verbose) |
getStats
createBin
addValue, getDatasets, getStatus, getTitle, isPredicting, setStatus, setTitle, toString
protected static final int ACCURACY
protected static final int CORRECT
protected static final int ERROR
protected static final int ALL
protected static final int LAST
protected String[] headings
protected Hashtable<Comparable,Histogram<SelfBin<ValuePair>>> histogram
protected boolean classUnknown
public ClassificationModelStatistics(String title)
public void clear(Comparable dataset)
clear
in interface IModelStatistics<Double>
clear
in class AbstractModelStatistics<U extends Bin>
public void clear()
clear
in interface IModelStatistics<Double>
clear
in class AbstractModelStatistics<U extends Bin>
protected double[] createStats()
createStats
in class AbstractModelStatistics<U extends Bin>
public void addPoint(Comparable dataset, Double observed, Double predicted)
addPoint
in interface IModelStatistics<Double>
addPoint
in class ModelValuesHistogram<Double,U extends Bin>
public String toStatus(boolean verbose)
toStatus
in interface IModelStatistics<Double>
toStatus
in class ModelValuesHistogram<Double,U extends Bin>
public boolean isClassUnknown()
public void setClassUnknown(boolean classUnknown)
public Histogram<U> getHistogram(Comparable dataset, int mode)
getHistogram
in interface IModelHistogram<U extends Bin>
getHistogram
in class ModelValuesHistogram<Double,U extends Bin>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.