serialize_class_svmT_serialize_class_svmSerializeClassSvmSerializeClassSvmserialize_class_svm (Operator)
Name
serialize_class_svmT_serialize_class_svmSerializeClassSvmSerializeClassSvmserialize_class_svm
— Serialize a support vector machine (SVM).
Signature
def serialize_class_svm(svmhandle: HHandle) -> HHandle
Description
serialize_class_svmserialize_class_svmSerializeClassSvmSerializeClassSvmSerializeClassSvmserialize_class_svm
serializes a support vector machine (SVM) 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_svmwrite_class_svmWriteClassSvmWriteClassSvmWriteClassSvmwrite_class_svm
and
write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm
is converted to a serialized item.
The support vector machine is defined by the handle SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle
.
The serialized support vector machine is returned by the handle
SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
and can be deserialized by
deserialize_class_svmdeserialize_class_svmDeserializeClassSvmDeserializeClassSvmDeserializeClassSvmdeserialize_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
SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle
(input_control) class_svm →
HClassSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
SVM handle.
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_svmserialize_class_svmSerializeClassSvmSerializeClassSvmSerializeClassSvmserialize_class_svm
returns the value TRUE. If
necessary, an exception is raised.
Possible Predecessors
train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmTrainClassSvmtrain_class_svm
Possible Successors
clear_class_svmclear_class_svmClearClassSvmClearClassSvmClearClassSvmclear_class_svm
,
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
,
send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItemsend_serialized_item
,
deserialize_class_svmdeserialize_class_svmDeserializeClassSvmDeserializeClassSvmDeserializeClassSvmdeserialize_class_svm
See also
create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvmcreate_class_svm
,
read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvmread_class_svm
,
write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm
,
deserialize_class_svmdeserialize_class_svmDeserializeClassSvmDeserializeClassSvmDeserializeClassSvmdeserialize_class_svm
Module
Foundation