serialize_class_knnT_serialize_class_knnSerializeClassKnnSerializeClassKnn (Operator)

Name

serialize_class_knnT_serialize_class_knnSerializeClassKnnSerializeClassKnn — Serialize a k-NN classifier.

Signature

serialize_class_knn( : : KNNHandle : SerializedItemHandle)

Herror T_serialize_class_knn(const Htuple KNNHandle, Htuple* SerializedItemHandle)

void SerializeClassKnn(const HTuple& KNNHandle, HTuple* SerializedItemHandle)

HSerializedItem HClassKnn::SerializeClassKnn() const

static void HOperatorSet.SerializeClassKnn(HTuple KNNHandle, out HTuple serializedItemHandle)

HSerializedItem HClassKnn.SerializeClassKnn()

Description

serialize_class_knnserialize_class_knnSerializeClassKnnSerializeClassKnnSerializeClassKnn serializes a k-NN classifier (k-NN) and its stored training samples (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem for an introduction of the basic principle of serialization). The same data that is written in a file by write_class_knnwrite_class_knnWriteClassKnnWriteClassKnnWriteClassKnn is converted to a serialized item. The k-NN classifier is defined by the handle KNNHandleKNNHandleKNNHandleKNNHandleKNNHandle. The serialized k-NN classifier is returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle and can be deserialized by deserialize_class_knndeserialize_class_knnDeserializeClassKnnDeserializeClassKnnDeserializeClassKnn.

Execution Information

Parameters

KNNHandleKNNHandleKNNHandleKNNHandleKNNHandle (input_control)  class_knn HClassKnn, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the k-NN classifier.

SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle (output_control)  serialized_item HSerializedItem, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the serialized item.

Result

If the parameters are valid, the operator serialize_class_knnserialize_class_knnSerializeClassKnnSerializeClassKnnSerializeClassKnn returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

train_class_knntrain_class_knnTrainClassKnnTrainClassKnnTrainClassKnn, read_class_knnread_class_knnReadClassKnnReadClassKnnReadClassKnn

Possible Successors

fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItem, deserialize_class_knndeserialize_class_knnDeserializeClassKnnDeserializeClassKnnDeserializeClassKnn

See also

create_class_knncreate_class_knnCreateClassKnnCreateClassKnnCreateClassKnn, read_class_knnread_class_knnReadClassKnnReadClassKnnReadClassKnn, deserialize_class_knndeserialize_class_knnDeserializeClassKnnDeserializeClassKnnDeserializeClassKnn

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