Operator Reference

get_sample_num_class_svmT_get_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm (Operator)

get_sample_num_class_svmT_get_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm — 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 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()

def get_sample_num_class_svm(svmhandle: HHandle) -> int

Description

get_sample_num_class_svmget_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm returns in NumSamplesNumSamplesNumSamplesnumSamplesnum_samples 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_svmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm should be called before the individual training samples are accessed with get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmget_sample_class_svm, e.g., for the purpose of reclassifying the training data (see get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmget_sample_class_svm).

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, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

SVM handle.

NumSamplesNumSamplesNumSamplesnumSamplesnum_samples (output_control)  integer HTupleintHTupleHtuple (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_svmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Possible Predecessors

add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmadd_sample_class_svm, read_samples_class_svmread_samples_class_svmReadSamplesClassSvmReadSamplesClassSvmread_samples_class_svm

Possible Successors

get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmget_sample_class_svm

See also

create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmcreate_class_svm

Module

Foundation