get_sample_num_class_knnT_get_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnnget_sample_num_class_knn (Operator)
Name
get_sample_num_class_knnT_get_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnnget_sample_num_class_knn
— Return the number of training samples stored in the training data of
a k-nearest neighbors (k-NN) classifier.
Signature
def get_sample_num_class_knn(knnhandle: HHandle) -> int
Description
get_sample_num_class_knnget_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnnGetSampleNumClassKnnget_sample_num_class_knn
returns in NumSamplesNumSamplesNumSamplesNumSamplesnumSamplesnum_samples
the
number of training samples that are stored in the k-nearest neighbors
(k-NN) classifier given by KNNHandleKNNHandleKNNHandleKNNHandleKNNHandleknnhandle
.
get_sample_num_class_knnget_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnnGetSampleNumClassKnnget_sample_num_class_knn
should be called before the
individual training samples are accessed with
get_sample_class_knnget_sample_class_knnGetSampleClassKnnGetSampleClassKnnGetSampleClassKnnget_sample_class_knn
.
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
KNNHandleKNNHandleKNNHandleKNNHandleKNNHandleknnhandle
(input_control) class_knn →
HClassKnn, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the k-NN classifier.
NumSamplesNumSamplesNumSamplesNumSamplesnumSamplesnum_samples
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of stored training samples.
Result
If KNNHandleKNNHandleKNNHandleKNNHandleKNNHandleknnhandle
is valid, the operator
get_sample_num_class_knnget_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnnGetSampleNumClassKnnget_sample_num_class_knn
returns the value TRUE. If
necessary, an exception is raised.
Possible Predecessors
add_sample_class_knnadd_sample_class_knnAddSampleClassKnnAddSampleClassKnnAddSampleClassKnnadd_sample_class_knn
Possible Successors
get_sample_class_knnget_sample_class_knnGetSampleClassKnnGetSampleClassKnnGetSampleClassKnnget_sample_class_knn
See also
create_class_knncreate_class_knnCreateClassKnnCreateClassKnnCreateClassKnncreate_class_knn
Module
Foundation