ClassesClasses | | Operators

classify_class_mlpT_classify_class_mlpClassifyClassMlpClassifyClassMlp (Operator)

Name

classify_class_mlpT_classify_class_mlpClassifyClassMlpClassifyClassMlp — Calculate the class of a feature vector by a multilayer perceptron.

Signature

classify_class_mlp( : : MLPHandle, Features, Num : Class, Confidence)

Herror T_classify_class_mlp(const Htuple MLPHandle, const Htuple Features, const Htuple Num, Htuple* Class, Htuple* Confidence)

void ClassifyClassMlp(const HTuple& MLPHandle, const HTuple& Features, const HTuple& Num, HTuple* Class, HTuple* Confidence)

HTuple HClassMlp::ClassifyClassMlp(const HTuple& Features, const HTuple& Num, HTuple* Confidence) const

Hlong HClassMlp::ClassifyClassMlp(const HTuple& Features, const HTuple& Num, double* Confidence) const

static void HOperatorSet.ClassifyClassMlp(HTuple MLPHandle, HTuple features, HTuple num, out HTuple classVal, out HTuple confidence)

HTuple HClassMlp.ClassifyClassMlp(HTuple features, HTuple num, out HTuple confidence)

int HClassMlp.ClassifyClassMlp(HTuple features, HTuple num, out double confidence)

Description

classify_class_mlpclassify_class_mlpClassifyClassMlpClassifyClassMlpClassifyClassMlp computes the best NumNumNumNumnum classes of the feature vector FeaturesFeaturesFeaturesFeaturesfeatures with the multilayer perceptron (MLP) MLPHandleMLPHandleMLPHandleMLPHandleMLPHandle and returns the classes in ClassClassClassClassclassVal and the corresponding confidences (probabilities) of the classes in ConfidenceConfidenceConfidenceConfidenceconfidence. Before calling classify_class_mlpclassify_class_mlpClassifyClassMlpClassifyClassMlpClassifyClassMlp, the MLP must be trained with train_class_mlptrain_class_mlpTrainClassMlpTrainClassMlpTrainClassMlp.

classify_class_mlpclassify_class_mlpClassifyClassMlpClassifyClassMlpClassifyClassMlp can only be called if the MLP is used as a classifier with OutputFunction = 'softmax'"softmax""softmax""softmax""softmax" (see create_class_mlpcreate_class_mlpCreateClassMlpCreateClassMlpCreateClassMlp). Otherwise, an error message is returned. classify_class_mlpclassify_class_mlpClassifyClassMlpClassifyClassMlpClassifyClassMlp corresponds to a call to evaluate_class_mlpevaluate_class_mlpEvaluateClassMlpEvaluateClassMlpEvaluateClassMlp and an additional step that extracts the best NumNumNumNumnum classes. As described with evaluate_class_mlpevaluate_class_mlpEvaluateClassMlpEvaluateClassMlpEvaluateClassMlp, the output values of the MLP can be interpreted as probabilities of the occurrence of the respective classes. In most cases it should be sufficient to use NumNumNumNumnum = 1 in order to decide whether the probability of the best class is high enough. In some applications it may be interesting to also take the second best class into account (NumNumNumNumnum = 2), particularly if it can be expected that the classes show a significant degree of overlap.

Execution Information

Parameters

MLPHandleMLPHandleMLPHandleMLPHandleMLPHandle (input_control)  class_mlp HClassMlp, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

MLP handle.

FeaturesFeaturesFeaturesFeaturesfeatures (input_control)  real-array HTupleHTupleHtuple (real) (double) (double) (double)

Feature vector.

NumNumNumNumnum (input_control)  integer-array HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of best classes to determine.

Default value: 1

Suggested values: 1, 2, 3, 4, 5

ClassClassClassClassclassVal (output_control)  integer(-array) HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Result of classifying the feature vector with the MLP.

ConfidenceConfidenceConfidenceConfidenceconfidence (output_control)  real(-array) HTupleHTupleHtuple (real) (double) (double) (double)

Confidence(s) of the class(es) of the feature vector.

Result

If the parameters are valid, the operator classify_class_mlpclassify_class_mlpClassifyClassMlpClassifyClassMlpClassifyClassMlp returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

train_class_mlptrain_class_mlpTrainClassMlpTrainClassMlpTrainClassMlp, read_class_mlpread_class_mlpReadClassMlpReadClassMlpReadClassMlp

Alternatives

apply_dl_classifierapply_dl_classifierApplyDlClassifierApplyDlClassifierApplyDlClassifier, evaluate_class_mlpevaluate_class_mlpEvaluateClassMlpEvaluateClassMlpEvaluateClassMlp

See also

create_class_mlpcreate_class_mlpCreateClassMlpCreateClassMlpCreateClassMlp

References

Christopher M. Bishop: “Neural Networks for Pattern Recognition”; Oxford University Press, Oxford; 1995.
Andrew Webb: “Statistical Pattern Recognition”; Arnold, London; 1999.

Module

Foundation


ClassesClasses | | Operators