Skip to content

get_params_class_svmGetParamsClassSvmGetParamsClassSvmget_params_class_svmT_get_params_class_svm🔗

Short description🔗

get_params_class_svmGetParamsClassSvmGetParamsClassSvmget_params_class_svmT_get_params_class_svm — Return the parameters of a support vector machine.

Signature🔗

get_params_class_svm( class_svm SVMHandle, out integer NumFeatures, out string KernelType, out real KernelParam, out real Nu, out integer NumClasses, out string Mode, out string Preprocessing, out integer NumComponents )void GetParamsClassSvm( const HTuple& SVMHandle, HTuple* NumFeatures, HTuple* KernelType, HTuple* KernelParam, HTuple* Nu, HTuple* NumClasses, HTuple* Mode, HTuple* Preprocessing, HTuple* NumComponents )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 )def get_params_class_svm( svmhandle: HHandle ) -> Tuple[int, str, float, float, int, str, str, int]

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 )

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

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

Execution information🔗

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🔗

SVMHandleSVMHandlesvmhandle (input_control) class_svm → (handle)HTuple (HHandle)HClassSvm, HTuple (IntPtr)HHandleHtuple (handle)

SVM handle.

NumFeaturesnumFeaturesnum_features (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Number of input variables (features) of the SVM.

KernelTypekernelTypekernel_type (output_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

The kernel type.

KernelParamkernelParamkernel_param (output_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

Additional parameter for the kernel.

Nununu (output_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

Regularization constant of the SVM.

NumClassesnumClassesnum_classes (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Number of classes of the test data.

Modemodemode (output_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

The mode of the SVM.

Preprocessingpreprocessingpreprocessing (output_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

Type of preprocessing used to transform the feature vectors.

NumComponentsnumComponentsnum_components (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

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

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

create_class_svmCreateClassSvm, read_class_svmReadClassSvm

Possible successors

add_sample_class_svmAddSampleClassSvm, train_class_svmTrainClassSvm

See also

classify_class_svmClassifyClassSvm

Module🔗

Foundation