URI: http://www.qualityml.org/1.0/metrics/RelativeConfusionMatrix
Name: Relative confusion matrix
Alternative names: Relative misclassification matrix
Definition:

Matrix that indicates the number of items of class (i) classified as class (j) divided by the number of items of class (i). The confusion matrix is a NxN matrix with N columns and N rows. N denotes the number of classes under consideration.


RMCM (i,j) = [ # items of class (i) classified as class (j)] / (# items of class (i)] x 100%

Parameters: max value
Source: ISO 19157
Categories: Thematic accuracy
Further information: http://www.uncertml.org/metrics/confusion-matrix
XML schema:
<schema xmlns:qml="http://www.qualityml.org/1.0" 
xmlns:un="http://www.uncertml.org/2.0" 
xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.qualityml.org/1.0" 
elementFormDefault="qualified" attributeFormDefault="unqualified">
<import namespace="http://www.uncertml.org/2.0" schemaLocation="../../uncertml/2.0/uncertml.xsd"/>

<element name="RelativeConfusionMatrix" type="qml:RelativeConfusionMatrixType" substitutionGroup="qml:ConfusionMatrix"/>
<complexType name="RelativeConfusionMatrixType">
<complexContent>
<extension base="qml:ConfusionMatrixType">
<attribute name="category">
<simpleType>
<restriction base="string">
<enumeration value="actual" />
<enumeration value="predicted" />
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>

XML example:
<un:StatisticsCollection xmlns:qml="http://www.qualityml.org/1.0" 

   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

   xsi:schemaLocation="http://www.qualitymlorg/schemas/qualityml/1.0/qualityml.xsd">

<qml:RelativeConfusionMatrix max="100">
<qml:actualCategories>Red Green Blue</qml:actualCategories>
<qml:predictedCategories>Red Green Blue</qml:predictedCategories>
<qml:values>1.57 3.14 6.28 1.57 3.14 6.28 1.57 3.14 6.28</qml:values>
</qml:RelativeConfusionMatrix>

JSON example:
N/A
API example:
N/A
Value constraints: categories: any string
counts: any positive natural number