Operator Reference

serialize_class_svmT_serialize_class_svmSerializeClassSvmSerializeClassSvmserialize_class_svm (Operator)

serialize_class_svmT_serialize_class_svmSerializeClassSvmSerializeClassSvmserialize_class_svm — Serialize a support vector machine (SVM).

Signature

serialize_class_svm( : : SVMHandle : SerializedItemHandle)

Herror T_serialize_class_svm(const Htuple SVMHandle, Htuple* SerializedItemHandle)

void SerializeClassSvm(const HTuple& SVMHandle, HTuple* SerializedItemHandle)

HSerializedItem HClassSvm::SerializeClassSvm() const

static void HOperatorSet.SerializeClassSvm(HTuple SVMHandle, out HTuple serializedItemHandle)

HSerializedItem HClassSvm.SerializeClassSvm()

def serialize_class_svm(svmhandle: HHandle) -> HHandle

Description

serialize_class_svmserialize_class_svmSerializeClassSvmSerializeClassSvmserialize_class_svm serializes a support vector machine (SVM) and its stored training samples (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item for an introduction of the basic principle of serialization). The same data that is written in a file by write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmwrite_class_svm and write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm is converted to a serialized item. The support vector machine is defined by the handle SVMHandleSVMHandleSVMHandleSVMHandlesvmhandle. The serialized support vector machine is returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle and can be deserialized by deserialize_class_svmdeserialize_class_svmDeserializeClassSvmDeserializeClassSvmdeserialize_class_svm.

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

SVMHandleSVMHandleSVMHandleSVMHandlesvmhandle (input_control)  class_svm HClassSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

SVM handle.

SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_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_svmserialize_class_svmSerializeClassSvmSerializeClassSvmserialize_class_svm returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Possible Predecessors

train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmtrain_class_svm

Possible Successors

clear_class_svmclear_class_svmClearClassSvmClearClassSvmclear_class_svm, fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemsend_serialized_item, deserialize_class_svmdeserialize_class_svmDeserializeClassSvmDeserializeClassSvmdeserialize_class_svm

See also

create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmcreate_class_svm, read_class_svmread_class_svmReadClassSvmReadClassSvmread_class_svm, write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm, deserialize_class_svmdeserialize_class_svmDeserializeClassSvmDeserializeClassSvmdeserialize_class_svm

Module

Foundation