write_samples_class_svmT_write_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm (Operator)

Name

write_samples_class_svmT_write_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm — Write the training data of a support vector machine to a file.

Signature

write_samples_class_svm( : : SVMHandle, FileName : )

Herror T_write_samples_class_svm(const Htuple SVMHandle, const Htuple FileName)

void WriteSamplesClassSvm(const HTuple& SVMHandle, const HTuple& FileName)

void HClassSvm::WriteSamplesClassSvm(const HString& FileName) const

void HClassSvm::WriteSamplesClassSvm(const char* FileName) const

void HClassSvm::WriteSamplesClassSvm(const wchar_t* FileName) const   ( Windows only)

static void HOperatorSet.WriteSamplesClassSvm(HTuple SVMHandle, HTuple fileName)

void HClassSvm.WriteSamplesClassSvm(string fileName)

def write_samples_class_svm(svmhandle: HHandle, file_name: str) -> None

Description

write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm writes the training samples currently stored in the support vector machine (SVM) SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle to the file given by FileNameFileNameFileNameFileNamefileNamefile_name. write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm 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_svmTrainClassSvmTrainClassSvmTrainClassSvmtrain_class_svm). The file FileNameFileNameFileNameFileNamefileNamefile_name is overwritten by write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm. Nevertheless, extending the database of training samples is easy to do because read_samples_class_svmread_samples_class_svmReadSamplesClassSvmReadSamplesClassSvmReadSamplesClassSvmread_samples_class_svm and add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmAddSampleClassSvmadd_sample_class_svm add the training samples to the training samples that are already stored in memory with the SVM.

Execution Information

Parameters

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

SVM handle.

FileNameFileNameFileNameFileNamefileNamefile_name (input_control)  filename.write HTuplestrHTupleHtuple (string) (string) (HString) (char*)

File name.

Result

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

Possible Predecessors

add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmAddSampleClassSvmadd_sample_class_svm

Possible Successors

clear_samples_class_svmclear_samples_class_svmClearSamplesClassSvmClearSamplesClassSvmClearSamplesClassSvmclear_samples_class_svm

See also

create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvmcreate_class_svm, get_prep_info_class_svmget_prep_info_class_svmGetPrepInfoClassSvmGetPrepInfoClassSvmGetPrepInfoClassSvmget_prep_info_class_svm, read_samples_class_svmread_samples_class_svmReadSamplesClassSvmReadSamplesClassSvmReadSamplesClassSvmread_samples_class_svm

Module

Foundation