get_support_vector_num_class_svmT_get_support_vector_num_class_svmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvm (Operator)
Name
get_support_vector_num_class_svmT_get_support_vector_num_class_svmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvm
— Return the number of support vectors of a support vector machine.
Signature
Description
get_support_vector_num_class_svmget_support_vector_num_class_svmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvm
returns in
NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectors
the number of support vectors that are
stored in the support vector machine (SVM) given by
SVMHandleSVMHandleSVMHandleSVMHandleSVMHandle
. get_support_vector_num_class_svmget_support_vector_num_class_svmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvm
should
be called before the labels of individual support vectors are read
out with get_support_vector_class_svmget_support_vector_class_svmGetSupportVectorClassSvmGetSupportVectorClassSvmGetSupportVectorClassSvm
, e.g., for visualizing
which the training data become a SV (see
get_support_vector_class_svmget_support_vector_class_svmGetSupportVectorClassSvmGetSupportVectorClassSvmGetSupportVectorClassSvm
). The number of SVs in each
classifier is listed in NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVM
. The reason that its
sum differs from the Number obtained in NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectors
is that SV evaluations are reused throughout different
sub-classifiers. NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVM
provides the possibility for
controlling the process of speeding up SVM classification time with
the operator reduce_class_svmreduce_class_svmReduceClassSvmReduceClassSvmReduceClassSvm
.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
SVMHandleSVMHandleSVMHandleSVMHandleSVMHandle
(input_control) class_svm →
HClassSvm, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
SVM handle.
NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectors
(output_control) integer →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Total number of support vectors.
NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVM
(output_control) integer-array →
HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of SV of each sub-SVM.
Result
If SVMHandleSVMHandleSVMHandleSVMHandleSVMHandle
is valid the operator
get_sample_num_class_svmget_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmGetSampleNumClassSvm
returns the value 2 (H_MSG_TRUE). If
necessary, an exception is raised.
Possible Predecessors
train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmTrainClassSvm
Possible Successors
get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmGetSampleClassSvm
See also
create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvm
Module
Foundation