get_params_class_svmT_get_params_class_svmGetParamsClassSvmGetParamsClassSvm (Operator)

Name

get_params_class_svmT_get_params_class_svmGetParamsClassSvmGetParamsClassSvm — Return the parameters of a support vector machine.

Signature

get_params_class_svm( : : SVMHandle : NumFeatures, KernelType, KernelParam, Nu, NumClasses, Mode, Preprocessing, NumComponents)

Herror T_get_params_class_svm(const Htuple SVMHandle, Htuple* NumFeatures, Htuple* KernelType, Htuple* KernelParam, Htuple* Nu, Htuple* NumClasses, Htuple* Mode, Htuple* Preprocessing, Htuple* NumComponents)

void GetParamsClassSvm(const HTuple& SVMHandle, HTuple* NumFeatures, HTuple* KernelType, HTuple* KernelParam, HTuple* Nu, HTuple* NumClasses, HTuple* Mode, HTuple* Preprocessing, HTuple* NumComponents)

Hlong HClassSvm::GetParamsClassSvm(HString* KernelType, double* KernelParam, double* Nu, Hlong* NumClasses, HString* Mode, HString* Preprocessing, Hlong* NumComponents) const

static void HOperatorSet.GetParamsClassSvm(HTuple SVMHandle, out HTuple numFeatures, out HTuple kernelType, out HTuple kernelParam, out HTuple nu, out HTuple numClasses, out HTuple mode, out HTuple preprocessing, out HTuple numComponents)

int HClassSvm.GetParamsClassSvm(out string kernelType, out double kernelParam, out double nu, out int numClasses, out string mode, out string preprocessing, out int numComponents)

Description

get_params_class_svmget_params_class_svmGetParamsClassSvmGetParamsClassSvmGetParamsClassSvm returns the parameters of a support vector machine (SVM) that were specified when the SVM was created with create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvm. This is particularly useful if the SVM was read from a file with read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvm. The output of get_params_class_svmget_params_class_svmGetParamsClassSvmGetParamsClassSvmGetParamsClassSvm can, for example, be used to check whether the feature vectors and, if necessary, the target data to be used with the SVM have the correct lengths. For a description of the parameters, see create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvm.

Execution Information

Parameters

SVMHandleSVMHandleSVMHandleSVMHandleSVMHandle (input_control)  class_svm HClassSvm, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

SVM handle.

NumFeaturesNumFeaturesNumFeaturesNumFeaturesnumFeatures (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of input variables (features) of the SVM.

KernelTypeKernelTypeKernelTypeKernelTypekernelType (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

The kernel type.

KernelParamKernelParamKernelParamKernelParamkernelParam (output_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Additional parameter for the kernel.

NuNuNuNunu (output_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Regularization constant of the SVM.

NumClassesNumClassesNumClassesNumClassesnumClasses (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of classes of the test data.

ModeModeModeModemode (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

The mode of the SVM.

PreprocessingPreprocessingPreprocessingPreprocessingpreprocessing (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Type of preprocessing used to transform the feature vectors.

NumComponentsNumComponentsNumComponentsNumComponentsnumComponents (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Preprocessing parameter: Number of transformed features (ignored for PreprocessingPreprocessingPreprocessingPreprocessingpreprocessing = 'none'"none""none""none""none" and PreprocessingPreprocessingPreprocessingPreprocessingpreprocessing = 'normalization'"normalization""normalization""normalization""normalization").

Result

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

Possible Predecessors

create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvm, read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvm

Possible Successors

add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmAddSampleClassSvm, train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmTrainClassSvm

See also

classify_class_svmclassify_class_svmClassifyClassSvmClassifyClassSvmClassifyClassSvm

Module

Foundation