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
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_svmGetParamsClassSvmGetParamsClassSvmGetParamsClassSvmget_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_svmCreateClassSvmCreateClassSvmCreateClassSvmcreate_class_svm
. This is particularly useful if the
SVM was read from a file with read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvmread_class_svm
. The output of
get_params_class_svmget_params_class_svmGetParamsClassSvmGetParamsClassSvmGetParamsClassSvmget_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_svmCreateClassSvmCreateClassSvmCreateClassSvmcreate_class_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
SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle
(input_control) class_svm →
HClassSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
SVM handle.
NumFeaturesNumFeaturesNumFeaturesNumFeaturesnumFeaturesnum_features
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of input variables (features) of the SVM.
KernelTypeKernelTypeKernelTypeKernelTypekernelTypekernel_type
(output_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
The kernel type.
KernelParamKernelParamKernelParamKernelParamkernelParamkernel_param
(output_control) real →
HTuplefloatHTupleHtuple (real) (double) (double) (double)
Additional parameter for the kernel.
NuNuNuNununu
(output_control) real →
HTuplefloatHTupleHtuple (real) (double) (double) (double)
Regularization constant of the SVM.
NumClassesNumClassesNumClassesNumClassesnumClassesnum_classes
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of classes of the test data.
ModeModeModeModemodemode
(output_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
The mode of the SVM.
PreprocessingPreprocessingPreprocessingPreprocessingpreprocessingpreprocessing
(output_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Type of preprocessing used to transform the
feature vectors.
Result
If the parameters are valid the operator
get_params_class_svmget_params_class_svmGetParamsClassSvmGetParamsClassSvmGetParamsClassSvmget_params_class_svm
returns the value 2 (
H_MSG_TRUE)
. If necessary,
an exception is raised.
Possible Predecessors
create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvmcreate_class_svm
,
read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvmread_class_svm
Possible Successors
add_sample_class_svmadd_sample_class_svmAddSampleClassSvmAddSampleClassSvmAddSampleClassSvmadd_sample_class_svm
,
train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmTrainClassSvmtrain_class_svm
See also
classify_class_svmclassify_class_svmClassifyClassSvmClassifyClassSvmClassifyClassSvmclassify_class_svm
Module
Foundation