pub fn new(classes: usize) -> SvmParam {
        SvmParam {
            svm_type: SvmType::CSVC,
            kernel_type: KernelType::RBF,
            degree: 3,
            gamma: 1.0/classes as f64,
            coef0: 0.0,
            cache_size: 100.0,
            eps: 0.001,
            c: 1.0,
            weight_label: vec![1; classes],
            weight: vec![1.0; classes],
            nu: 0.5,
            p: 0.1,
            shrinking: true,
            probability: false
        }
    }
/// Create a new instance of SvmParam given the number of classes in the dataset, All of the
/// parameter values will be set to the libsvm defaults.
Create a new instance of SvmParam given the number of classes in the dataset, All of the
parameter values will be set to the libsvm defaults.
Create a new instance of SvmParam given the number of classes in the dataset All of the parameter values will be set to the libsvm defaults .
pub fn new(classes: usize) -> SvmParam {
        SvmParam {
            svm_type: SvmType::CSVC,
            kernel_type: KernelType::RBF,
            degree: 3,
            gamma: 1.0/classes as f64,
            coef0: 0.0,
            cache_size: 100.0,
            eps: 0.001,
            c: 1.0,
            weight_label: vec![1; classes],
            weight: vec![1.0; classes],
            nu: 0.5,
            p: 0.1,
            shrinking: true,
            probability: false
        }
    }
pub fn new ( classes : usize ) -> SvmParam { SvmParam { svm_type : SvmType :: CSVC , kernel_type : KernelType :: RBF , degree : 3 , gamma : 1.0 / classes as f64 , coef0 : 0.0 , cache_size : 100.0 , eps : 0.001 , c : 1.0 , weight_label : vec ! [ 1 classes ] , weight : vec ! [ 1.0 classes ] , nu : 0.5 , p : 0.1 , shrinking : true , probability : false } }
Create a new instance of SvmParam given the number of classes in the dataset, All of the
parameter values will be set to the libsvm defaults.
Create a new instance of SvmParam given the number of classes in the dataset All of the parameter values will be set to the libsvm defaults .
classes
usize
classes
usize