Package si.ijs.kt.clus.error.mlc
Class MLPrecision
java.lang.Object
si.ijs.kt.clus.error.common.ClusError
si.ijs.kt.clus.error.common.ClusNominalError
si.ijs.kt.clus.error.mlc.MLPrecision
- All Implemented Interfaces:
Serializable
- Author:
- matejp MLPrecision is used in multi-label classification scenario.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected double
static final long
Fields inherited from class si.ijs.kt.clus.error.common.ClusNominalError
m_Attrs, m_Default
Fields inherited from class si.ijs.kt.clus.error.common.ClusError
DEFAULT_ERROR, DEFAULT_POSTFIX, DETAIL_ALWAYS_VISIBLE, DETAIL_NEVER_VISIBLE, DETAIL_SMALL, DETAIL_VERY_SMALL, m_Dim, m_Parent, RELATIVE_ERROR, RELATIVE_POSTFIX, TREE_ERROR, TREE_POSTFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addExample
(DataTuple tuple, DataTuple pred) void
addExample
(DataTuple tuple, ClusStatistic pred) void
addInvalid
(DataTuple tuple) double
getName()
Informationvoid
reset()
Operationsboolean
Should this error be minimized (e.g.void
showModelError
(PrintWriter out, int detail) void
showSummaryError
(PrintWriter out, boolean detail) Methods inherited from class si.ijs.kt.clus.error.common.ClusNominalError
getAttr, setDefault, setDefault
Methods inherited from class si.ijs.kt.clus.error.common.ClusError
compute, computeLeafError, computeTreeErrorClusteringAbsolute, get_accuracy, get_auc, get_error_classif, get_precision, get_recall, getAdditionalInfo, getAdditionalInfoFormatted, getCoverage, getDetailLevel, getDimension, getErrorClone, getFormat, getModelErrorAdditive, getModelErrorComponent, getModelErrorStandardError, getNbCover, getNbExamples, getNbTotal, getParent, getPrefix, isComputeForModel, isMultiLine, normalize, setAdditionalInfo, setWeights, showDoubleArray, showDoubleArray, showDoubleArray, showModelError, showRelativeModelError, updateFromGlobalMeasure
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
m_PrecisionSum
protected double m_PrecisionSum -
m_NbKnown
protected int m_NbKnown
-
-
Constructor Details
-
MLPrecision
-
-
Method Details
-
shouldBeLow
public boolean shouldBeLow()Description copied from class:ClusError
Should this error be minimized (e.g. RRSE) or maximized (e.g. accuracy)? True by default.- Specified by:
shouldBeLow
in classClusError
-
reset
public void reset()Description copied from class:ClusError
Operations -
add
-
showSummaryError
-
getModelError
public double getModelError()- Overrides:
getModelError
in classClusError
- Returns:
- the error averaged over all targets
-
showModelError
- Overrides:
showModelError
in classClusError
-
getName
Description copied from class:ClusError
Information -
getErrorClone
- Specified by:
getErrorClone
in classClusError
-
addExample
- Overrides:
addExample
in classClusError
-
addExample
- Overrides:
addExample
in classClusError
-
addInvalid
- Overrides:
addInvalid
in classClusError
-