Operator Reference
test_sampset_box (Operator)
test_sampset_box — Classify a set of arrays.
Warning
test_sampset_box is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
MLP, SVM, KNN or GMM operators instead. The operator will be removed with
HALCON 25.11.
Signature
test_sampset_box( : : ClassifHandle, SampKey : Error)
Description
In contrast to learn_sampset_box there is not a learning here.
Typically you use test_sampset_box to classify
independent test data.
Error gives you information about the applicability of the learned
training set on new examples.
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
ClassifHandle (input_control) class_box → (handle)
Handle of the classifier.
SampKey (input_control) feature_set → (handle)
Key of the test data.
Error (output_control) real → (real)
Error during the assignment.
Result
test_sampset_box returns 2 (
H_MSG_TRUE)
. An exception is raised,
if if key SampKey does not exist or problems occur while opening
the file.
Possible Predecessors
create_class_box,
learn_class_box,
set_class_box_param
Possible Successors
enquire_class_box,
learn_class_box,
write_class_box,
close_class_box,
clear_sampset
See also
enquire_class_box,
learn_class_box,
learn_sampset_box,
read_sampset
Module
Foundation