get_support_vector_num_class_svmT_get_support_vector_num_class_svmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvmget_support_vector_num_class_svm (Operator)

Name

get_support_vector_num_class_svmT_get_support_vector_num_class_svmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvmget_support_vector_num_class_svm — 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)

def get_support_vector_num_class_svm(svmhandle: HHandle) -> Tuple[int, Sequence[int]]

Description

get_support_vector_num_class_svmget_support_vector_num_class_svmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvmget_support_vector_num_class_svm returns in NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectorsnum_support_vectors the number of support vectors that are stored in the support vector machine (SVM) given by SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle. get_support_vector_num_class_svmget_support_vector_num_class_svmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvmGetSupportVectorNumClassSvmget_support_vector_num_class_svm should be called before the labels of individual support vectors are read out with get_support_vector_class_svmget_support_vector_class_svmGetSupportVectorClassSvmGetSupportVectorClassSvmGetSupportVectorClassSvmget_support_vector_class_svm, e.g., for visualizing which the training data become a SV (see get_support_vector_class_svmget_support_vector_class_svmGetSupportVectorClassSvmGetSupportVectorClassSvmGetSupportVectorClassSvmget_support_vector_class_svm). The number of SVs in each classifier is listed in NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVMnum_svper_svm. The reason that its sum differs from the Number obtained in NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectorsnum_support_vectors is that SV evaluations are reused throughout different sub-classifiers. NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVMnum_svper_svm provides the possibility for controlling the process of speeding up SVM classification time with the operator reduce_class_svmreduce_class_svmReduceClassSvmReduceClassSvmReduceClassSvmreduce_class_svm.

Execution Information

Parameters

SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle (input_control)  class_svm HClassSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

SVM handle.

NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectorsnum_support_vectors (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Total number of support vectors.

NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVMnum_svper_svm (output_control)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of SV of each sub-SVM.

Result

If SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle is valid the operator get_sample_num_class_svmget_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmTrainClassSvmtrain_class_svm

Possible Successors

get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmGetSampleClassSvmget_sample_class_svm

See also

create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvmcreate_class_svm

Module

Foundation