write_samples_class_svmT_write_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvm (Operator)
Name
write_samples_class_svmT_write_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvm
— Write the training data of a support vector machine to a file.
Signature
Description
write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvm
writes the training samples
currently stored in the support vector machine (SVM)
SVMHandleSVMHandleSVMHandleSVMHandleSVMHandle
to the file given by FileNameFileNameFileNameFileNamefileName
.
write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvm
can be used to build up a database
of training samples, and hence to improve the performance of the SVM
by training it with an extended data set (see
train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmTrainClassSvm
). The file FileNameFileNameFileNameFileNamefileName
is overwritten
by write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvm
. Nevertheless, extending the
database of training samples is easy to do because
read_samples_class_svmread_samples_class_svmReadSamplesClassSvmReadSamplesClassSvmReadSamplesClassSvm
and add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmAddSampleClassSvm
add
the training samples to the training samples that are already stored
in memory with the 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, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
SVM handle.
FileNameFileNameFileNameFileNamefileName
(input_control) filename.write →
HTupleHTupleHtuple (string) (string) (HString) (char*)
File name.
Result
If the parameters are valid the operator
write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvm
returns the value 2 (H_MSG_TRUE). If
necessary, an exception is raised.
Possible Predecessors
add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmAddSampleClassSvm
Possible Successors
clear_samples_class_svmclear_samples_class_svmClearSamplesClassSvmClearSamplesClassSvmClearSamplesClassSvm
See also
create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvm
,
get_prep_info_class_svmget_prep_info_class_svmGetPrepInfoClassSvmGetPrepInfoClassSvmGetPrepInfoClassSvm
,
read_samples_class_svmread_samples_class_svmReadSamplesClassSvmReadSamplesClassSvmReadSamplesClassSvm
Module
Foundation