serialize_class_knnT_serialize_class_knnSerializeClassKnnSerializeClassKnnserialize_class_knn (Operator)
Name
serialize_class_knnT_serialize_class_knnSerializeClassKnnSerializeClassKnnserialize_class_knn
— Serialize a k-NN classifier.
Signature
def serialize_class_knn(knnhandle: HHandle) -> HHandle
Description
serialize_class_knnserialize_class_knnSerializeClassKnnSerializeClassKnnSerializeClassKnnserialize_class_knn
serializes a k-NN classifier (k-NN) and
its stored training samples (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
for an
introduction of the basic principle of serialization). The same data that
is written in a file by write_class_knnwrite_class_knnWriteClassKnnWriteClassKnnWriteClassKnnwrite_class_knn
is converted to a
serialized item. The k-NN classifier is defined by the handle
KNNHandleKNNHandleKNNHandleKNNHandleKNNHandleknnhandle
. The serialized k-NN classifier is returned by the
handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
and can be deserialized by
deserialize_class_knndeserialize_class_knnDeserializeClassKnnDeserializeClassKnnDeserializeClassKnndeserialize_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.
SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
(output_control) serialized_item →
HSerializedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the serialized item.
Result
If the parameters are valid, the operator
serialize_class_knnserialize_class_knnSerializeClassKnnSerializeClassKnnSerializeClassKnnserialize_class_knn
returns the value TRUE. If
necessary, an exception is raised.
Possible Predecessors
train_class_knntrain_class_knnTrainClassKnnTrainClassKnnTrainClassKnntrain_class_knn
,
read_class_knnread_class_knnReadClassKnnReadClassKnnReadClassKnnread_class_knn
Possible Successors
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
,
send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItemsend_serialized_item
,
deserialize_class_knndeserialize_class_knnDeserializeClassKnnDeserializeClassKnnDeserializeClassKnndeserialize_class_knn
See also
create_class_knncreate_class_knnCreateClassKnnCreateClassKnnCreateClassKnncreate_class_knn
,
read_class_knnread_class_knnReadClassKnnReadClassKnnReadClassKnnread_class_knn
,
deserialize_class_knndeserialize_class_knnDeserializeClassKnnDeserializeClassKnnDeserializeClassKnndeserialize_class_knn
References
Marius Muja, David G. Lowe: “Fast Approximate Nearest Neighbors with
Automatic Algorithm Configuration”;
International Conference on Computer Vision Theory
and Applications (VISAPP 09); 2009.
Module
Foundation