Package rst.classification

Not documented

Messages

digraph message_graph { fontname="Arial"; fontsize=11; stylesheet="../_static/graphs.css"; node [fontsize=11,fontname="Arial"] edge [fontsize=11,fontname="Arial"] "1" [label=<<TABLE BORDER="0"><TR><TD COLSPAN="2" HREF="../generated/stable/package-rst-classification.html#rst.classification.ClassificationResult" TITLE="Structure rst.classification.ClassificationResult" TARGET="_parent"><TABLE BORDER="0"><TR><TD ALIGN="right"><IMG SRC="../_static/message.svg"></IMG></TD><TD ALIGN="left">ClassificationResult</TD></TR></TABLE></TD></TR><TR><TD ALIGN="left" HREF="../generated/stable/package-__rosetta-OCTET-VECTOR.html#OCTET-VECTOR" TITLE="Fundamental OCTET-VECTOR" TARGET="_parent">OCTET-VECTOR</TD><TD ALIGN="left" HREF="../generated/stable/package-rst-classification.html#rst.classification.ClassificationResult.decided_class" TITLE="Field rst.classification.ClassificationResult.decided_class" TARGET="_parent" PORT="decided_class">decided_class</TD></TR><TR><TD ALIGN="left" HREF="../generated/stable/package-rst-classification.html#rst.classification.ClassificationResult.ClassWithProbability" TITLE="Structure rst.classification.ClassificationResult.ClassWithProbability" TARGET="_parent">ClassWithProbability</TD><TD ALIGN="left" HREF="../generated/stable/package-rst-classification.html#rst.classification.ClassificationResult.classes" TITLE="Field rst.classification.ClassificationResult.classes" TARGET="_parent" PORT="classes">classes</TD></TR></TABLE>>,shape=box,style=filled,fillcolor="white"]; "2" [label=<<TABLE BORDER="0"><TR><TD COLSPAN="2" HREF="../generated/stable/package-rst-classification.html#rst.classification.ClassificationResult.ClassWithProbability" TITLE="Structure rst.classification.ClassificationResult.ClassWithProbability" TARGET="_parent"><TABLE BORDER="0"><TR><TD ALIGN="right"><IMG SRC="../_static/message.svg"></IMG></TD><TD ALIGN="left">ClassWithProbability</TD></TR></TABLE></TD></TR><TR><TD ALIGN="left" HREF="../generated/stable/package-__rosetta-OCTET-VECTOR.html#OCTET-VECTOR" TITLE="Fundamental OCTET-VECTOR" TARGET="_parent">OCTET-VECTOR</TD><TD ALIGN="left" HREF="../generated/stable/package-rst-classification.html#rst.classification.ClassificationResult.ClassWithProbability.name" TITLE="Field rst.classification.ClassificationResult.ClassWithProbability.name" TARGET="_parent" PORT="name">name</TD></TR><TR><TD ALIGN="left" HREF="../generated/sandbox/package-__rosetta-FLOAT32.html#FLOAT32" TITLE="Fundamental FLOAT32" TARGET="_parent">FLOAT32</TD><TD ALIGN="left" HREF="../generated/stable/package-rst-classification.html#rst.classification.ClassificationResult.ClassWithProbability.confidence" TITLE="Field rst.classification.ClassificationResult.ClassWithProbability.confidence" TARGET="_parent" PORT="confidence">confidence</TD></TR></TABLE>>,shape=box,style=filled,fillcolor="white"]; "1" -> "2" []; "1":classes -> "2" []; }

clearer: should be made invisible via css

Message ClassificationResult

class rst.classification.ClassificationResult

A class representing the result of a classification process.

An example of such a result could be the output of an SVM-based classifier.

In the simplest form, only the name of a decided class is given. However, it is also possible to give the whole vector of possible classes with their probabilities.

Code author: Johannes Wienke <jwienke@techfak.uni-bielefeld.de>

decided_class
Type:OCTET-VECTOR

A shortcut to get the most likely class easily.

This needs to be an ASCII string.

classes
Type:array of rst.classification.ClassificationResult.ClassWithProbability

The complete vector of classes with their probabilities if suitable.

The results in this vector should of cause not contradict decided_class.

Download this file

message ClassificationResult {

    /**
     * A shortcut to get the most likely class easily.
     *
     * This needs to be an ASCII string.
     */
    required bytes decided_class = 1;

    /**
     * Represents a single class a classification process can return
     * with the probability that this class applies to the classified
     * aspect.
     */
    message ClassWithProbability {

        /**
         * Name of the class (ASCII string).
         */
        required bytes name = 1;

        /**
         * Some kind of confidence, values are application dependent.
         *
         * However, values summing up to 1 are preferred.
         */
        required float confidence = 2;

    }

    /**
     * The complete vector of classes with their probabilities if
     * suitable.
     *
     * The results in this vector should of cause not contradict
     * decided_class.
     */
    repeated ClassWithProbability classes = 2;

}

Message ClassWithProbability

class rst.classification.ClassificationResult.ClassWithProbability

Represents a single class a classification process can return with the probability that this class applies to the classified aspect.

name
Type:OCTET-VECTOR

Name of the class (ASCII string).

confidence
Type:FLOAT32

Some kind of confidence, values are application dependent.

However, values summing up to 1 are preferred.

Download this file

    message ClassWithProbability {

        /**
         * Name of the class (ASCII string).
         */
        required bytes name = 1;

        /**
         * Some kind of confidence, values are application dependent.
         *
         * However, values summing up to 1 are preferred.
         */
        required float confidence = 2;

    }