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 intprotected doublestatic final longFields inherited from class si.ijs.kt.clus.error.common.ClusNominalError
m_Attrs, m_DefaultFields 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 TypeMethodDescriptionvoidvoidaddExample(DataTuple tuple, DataTuple pred) voidaddExample(DataTuple tuple, ClusStatistic pred) voidaddInvalid(DataTuple tuple) doublegetName()Informationvoidreset()OperationsbooleanShould this error be minimized (e.g.voidshowModelError(PrintWriter out, int detail) voidshowSummaryError(PrintWriter out, boolean detail) Methods inherited from class si.ijs.kt.clus.error.common.ClusNominalError
getAttr, setDefault, setDefaultMethods 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:ClusErrorShould this error be minimized (e.g. RRSE) or maximized (e.g. accuracy)? True by default.- Specified by:
shouldBeLowin classClusError
-
reset
public void reset()Description copied from class:ClusErrorOperations -
add
-
showSummaryError
-
getModelError
public double getModelError()- Overrides:
getModelErrorin classClusError- Returns:
- the error averaged over all targets
-
showModelError
- Overrides:
showModelErrorin classClusError
-
getName
Description copied from class:ClusErrorInformation -
getErrorClone
- Specified by:
getErrorClonein classClusError
-
addExample
- Overrides:
addExamplein classClusError
-
addExample
- Overrides:
addExamplein classClusError
-
addInvalid
- Overrides:
addInvalidin classClusError
-