get_sample_num_class_svmT_get_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm (Operator)
Name
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
def get_sample_num_class_svm(svmhandle: HHandle) -> int
Description
get_sample_num_class_svmget_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm
returns in NumSamplesNumSamplesNumSamplesNumSamplesnumSamplesnum_samples
the
number of training samples that are stored in the support vector
machine (SVM) given by SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle
.
get_sample_num_class_svmget_sample_num_class_svmGetSampleNumClassSvmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm
should be called before the
individual training samples are accessed with
get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmGetSampleClassSvmget_sample_class_svm
, e.g., for the purpose of reclassifying
the training data (see get_sample_class_svmget_sample_class_svmGetSampleClassSvmGetSampleClassSvmGetSampleClassSvmget_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
SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle
(input_control) class_svm →
HClassSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
SVM handle.
NumSamplesNumSamplesNumSamplesNumSamplesnumSamplesnum_samples
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of stored training samples.
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
add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmAddSampleClassSvmadd_sample_class_svm
,
read_samples_class_svmread_samples_class_svmReadSamplesClassSvmReadSamplesClassSvmReadSamplesClassSvmread_samples_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