get_params_class_svmT_get_params_class_svmGetParamsClassSvmGetParamsClassSvmget_params_class_svm (Operator)

Name

get_params_class_svmT_get_params_class_svmGetParamsClassSvmGetParamsClassSvmget_params_class_svm — 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)

def get_params_class_svm(svmhandle: HHandle) -> Tuple[int, str, float, float, int, str, str, int]

Description

get_params_class_svmget_params_class_svmGetParamsClassSvmGetParamsClassSvmget_params_class_svm returns the parameters of a support vector machine (SVM) that were specified when the SVM was created with create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmcreate_class_svm. This is particularly useful if the SVM was read from a file with read_class_svmread_class_svmReadClassSvmReadClassSvmread_class_svm. The output of get_params_class_svmget_params_class_svmGetParamsClassSvmGetParamsClassSvmget_params_class_svm 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_svmCreateClassSvmCreateClassSvmcreate_class_svm.

Execution Information

Parameters

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

SVM handle.

NumFeaturesNumFeaturesNumFeaturesnumFeaturesnum_features (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of input variables (features) of the SVM.

KernelTypeKernelTypeKernelTypekernelTypekernel_type (output_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

The kernel type.

KernelParamKernelParamKernelParamkernelParamkernel_param (output_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Additional parameter for the kernel.

NuNuNununu (output_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Regularization constant of the SVM.

NumClassesNumClassesNumClassesnumClassesnum_classes (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of classes of the test data.

ModeModeModemodemode (output_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

The mode of the SVM.

PreprocessingPreprocessingPreprocessingpreprocessingpreprocessing (output_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Type of preprocessing used to transform the feature vectors.

NumComponentsNumComponentsNumComponentsnumComponentsnum_components (output_control)  integer HTupleintHTupleHtuple (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_svmGetParamsClassSvmGetParamsClassSvmget_params_class_svm returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Possible Predecessors

create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmcreate_class_svm, read_class_svmread_class_svmReadClassSvmReadClassSvmread_class_svm

Possible Successors

add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmadd_sample_class_svm, train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmtrain_class_svm

See also

classify_class_svmclassify_class_svmClassifyClassSvmClassifyClassSvmclassify_class_svm

Module

Foundation