ClassesClasses | | Operators

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

get_support_vector_num_class_svm( : : SVMHandle : NumSupportVectors, NumSVPerSVM)

Herror T_get_support_vector_num_class_svm(const Htuple SVMHandle, Htuple* NumSupportVectors, Htuple* NumSVPerSVM)

void GetSupportVectorNumClassSvm(const HTuple& SVMHandle, HTuple* NumSupportVectors, HTuple* NumSVPerSVM)

Hlong HClassSvm::GetSupportVectorNumClassSvm(HTuple* NumSVPerSVM) const

static void HOperatorSet.GetSupportVectorNumClassSvm(HTuple SVMHandle, out HTuple numSupportVectors, out HTuple numSVPerSVM)

int HClassSvm.GetSupportVectorNumClassSvm(out HTuple numSVPerSVM)

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

Parameters

SVMHandleSVMHandleSVMHandleSVMHandleSVMHandle (input_control)  class_svm HClassSvm, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

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


ClassesClasses | | Operators