get_sample_num_class_mlpT_get_sample_num_class_mlpGetSampleNumClassMlpGetSampleNumClassMlpget_sample_num_class_mlp (Operator)
Name
get_sample_num_class_mlpT_get_sample_num_class_mlpGetSampleNumClassMlpGetSampleNumClassMlpget_sample_num_class_mlp
— Return the number of training samples stored in the training data of
a multilayer perceptron.
Signature
def get_sample_num_class_mlp(mlphandle: HHandle) -> int
Description
get_sample_num_class_mlpget_sample_num_class_mlpGetSampleNumClassMlpGetSampleNumClassMlpget_sample_num_class_mlp
returns in NumSamplesNumSamplesNumSamplesnumSamplesnum_samples
the
number of training samples that are stored in the multilayer
perceptron (MLP) given by MLPHandleMLPHandleMLPHandleMLPHandlemlphandle
.
get_sample_num_class_mlpget_sample_num_class_mlpGetSampleNumClassMlpGetSampleNumClassMlpget_sample_num_class_mlp
should be called before the
individual training samples are accessed with
get_sample_class_mlpget_sample_class_mlpGetSampleClassMlpGetSampleClassMlpget_sample_class_mlp
, e.g., for the purpose of reclassifying
the training data (see get_sample_class_mlpget_sample_class_mlpGetSampleClassMlpGetSampleClassMlpget_sample_class_mlp
).
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
MLPHandleMLPHandleMLPHandleMLPHandlemlphandle
(input_control) class_mlp →
HClassMlp, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
MLP handle.
NumSamplesNumSamplesNumSamplesnumSamplesnum_samples
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of stored training samples.
Result
If MLPHandleMLPHandleMLPHandleMLPHandlemlphandle
is valid, the operator
get_sample_num_class_mlpget_sample_num_class_mlpGetSampleNumClassMlpGetSampleNumClassMlpget_sample_num_class_mlp
returns the value 2 (
H_MSG_TRUE)
. If
necessary an exception is raised.
Possible Predecessors
add_sample_class_mlpadd_sample_class_mlpAddSampleClassMlpAddSampleClassMlpadd_sample_class_mlp
,
read_samples_class_mlpread_samples_class_mlpReadSamplesClassMlpReadSamplesClassMlpread_samples_class_mlp
Possible Successors
get_sample_class_mlpget_sample_class_mlpGetSampleClassMlpGetSampleClassMlpget_sample_class_mlp
See also
create_class_mlpcreate_class_mlpCreateClassMlpCreateClassMlpcreate_class_mlp
Module
Foundation