PRTools contents |
LABELD
LABELS = LABELD(Z)
LABELS = Z*LABELD
LABELS = LABELD(A,W)
LABELS = A*W*LABELD
LABELS = LABELD(Z,THRESH)
LABELS = Z*LABELD([],THRESH)
LABELS = LABELD(A,W,THRESH)
LABELS = A*W*LABELD([],THRESH)
Input | |
Z | Classification dataset, or |
A,W | Dataset and classifier mapping |
THRESH | Rejection threshold |
Output | |
LABELS | List of labels |
Returns the labels of the classification dataset Z (typically the result of a mapping or classification A*W). For each object in Z (i.e. each row) the feature label or class label (i.e. the column label) of the maximum column value is returned.
Effectively, this performs the classification. It can also be considered as a conversion from soft labels Z to crisp labels.
When the parameter THRESH is supplied, then all objects which classifier output falls below this value are rejected. The returned label is then NaN or a string with spaces (depending if the labels are numeric or string). Because the output of the classifier is used, it is recommended to convert the output to a posterior prob. output using
CLASSC. | (David Tax, 27-12-2004) |
PRTools contents |