public void copy(SVC rhs) { _param = rhs._param == null ? null : (SVMParam)rhs._param.Clone(); _crossValidation = rhs._crossValidation; model = rhs.model == null ? null : (SVMModel)rhs.model.Clone(); quiet = rhs.quiet; }
public void Copy(SVR rhs) { _param = rhs._param == null ? null : (SVMParam)rhs._param.Clone(); _crossValidation = rhs._crossValidation; _model = rhs._model == null ? null : (SVMModel)rhs._model.Clone(); if (_model != null) { _model.Param = _param; } _isQuiet = rhs._isQuiet; }
public void copy(OneClassSVM rhs2) { param = rhs2.param == null ? null : (SVMParam)rhs2.param.Clone(); cross_validation = rhs2.cross_validation; quiet = rhs2.quiet; _threshold = rhs2._threshold; model = rhs2.model == null ? null : (SVMModel)rhs2.model.Clone(); if (model != null) { model.Param = param; } }
public OneClassSVM() { param = new SVMParam(); // default values param.SVMType = SVMParam.SVM_TYPE_ONE_CLASS; param.KernelType = SVMParam.KERNEL_TYPE_RBF; param.Degree = 3; param.Gamma = 0; // 1/num_features param.Coef0 = 0; param.nu = 0.5; param.CacheSizeInMB = 100; param.C = 1; param.Epsilon = 1e-3; param.p = 0.1; param.UseShrinkingHeuristic = true; param.DoProbabilityEstimate = false; param.NumberWeight = 0; param.WeightLabel = new int[0]; param.Weight = new double[0]; cross_validation = 0; libsvm.SVM.svm_set_print_string_function(new svm_print_null()); quiet = true; }
private void init() { _param = new SVMParam(); // default values _param.SVMType = SVMParam.SVM_TYPE_C_SVC; _param.KernelType = SVMParam.KERNEL_TYPE_RBF; _param.Degree = 3; _param.Gamma = 0; // 1/num_features _param.Coef0 = 0; _param.nu = 0.5; _param.CacheSizeInMB = 100; _param.C = 1; _param.Epsilon = 1e-3; _param.p = 0.1; _param.UseShrinkingHeuristic = true; _param.DoProbabilityEstimate = false; _param.NumberWeight = 0; _param.WeightLabel = new int[0]; _param.Weight = new double[0]; _crossValidation = false; libsvm.SVM.svm_set_print_string_function(null); quiet = false; }
public void SetConfig(SVMParam parameters) { this._param = parameters; }
public void setParameters(SVMParam parameters) { this._param = parameters; }