ClassesClasses | | Operators

get_sample_num_class_svmget_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvm (Operator)

Name

get_sample_num_class_svmget_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvm — Return the number of training samples stored in the training data of a support vector machine.

Signature

get_sample_num_class_svm( : : SVMHandle : NumSamples)

Herror get_sample_num_class_svm(const Hlong SVMHandle, Hlong* NumSamples)

Herror T_get_sample_num_class_svm(const Htuple SVMHandle, Htuple* NumSamples)

void GetSampleNumClassSvm(const HTuple& SVMHandle, HTuple* NumSamples)

Hlong HClassSvm::GetSampleNumClassSvm() const

static void HOperatorSet.GetSampleNumClassSvm(HTuple SVMHandle, out HTuple numSamples)

int HClassSvm.GetSampleNumClassSvm()

Description

get_sample_num_class_svmget_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmGetSampleNumClassSvm returns in NumSamplesNumSamplesNumSamplesNumSamplesnumSamples the number of training samples that are stored in the support vector machine (SVM) given by SVMHandleSVMHandleSVMHandleSVMHandleSVMHandle. get_sample_num_class_svmget_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmGetSampleNumClassSvm should be called before the individual training samples are accessed with get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmGetSampleClassSvm, e.g., for the purpose of reclassifying the training data (see get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmGetSampleClassSvm).

Execution Information

Parameters

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

SVM handle.

NumSamplesNumSamplesNumSamplesNumSamplesnumSamples (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of stored training samples.

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

add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmAddSampleClassSvm, read_samples_class_svmread_samples_class_svmReadSamplesClassSvmReadSamplesClassSvmReadSamplesClassSvm

Possible Successors

get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmGetSampleClassSvm

See also

create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvm

Module

Foundation


ClassesClasses | | Operators