1 package libsvm;
2 public class svm_parameter implements Cloneable,java.io.Serializable
3 {
4 	/* svm_type */
5 	public static final int C_SVC = 0;
6 	public static final int NU_SVC = 1;
7 	public static final int ONE_CLASS = 2;
8 	public static final int EPSILON_SVR = 3;
9 	public static final int NU_SVR = 4;
10 
11 	/* kernel_type */
12 	public static final int LINEAR = 0;
13 	public static final int POLY = 1;
14 	public static final int RBF = 2;
15 	public static final int SIGMOID = 3;
16 	public static final int PRECOMPUTED = 4;
17 
18 	public int svm_type;
19 	public int kernel_type;
20 	public int degree;	// for poly
21 	public double gamma;	// for poly/rbf/sigmoid
22 	public double coef0;	// for poly/sigmoid
23 
24 	// these are for training only
25 	public double cache_size; // in MB
26 	public double eps;	// stopping criteria
27 	public double C;	// for C_SVC, EPSILON_SVR and NU_SVR
28 	public int nr_weight;		// for C_SVC
29 	public int[] weight_label;	// for C_SVC
30 	public double[] weight;		// for C_SVC
31 	public double nu;	// for NU_SVC, ONE_CLASS, and NU_SVR
32 	public double p;	// for EPSILON_SVR
33 	public int shrinking;	// use the shrinking heuristics
34 	public int probability; // do probability estimates
35 
clone()36 	public Object clone()
37 	{
38 		try
39 		{
40 			return super.clone();
41 		} catch (CloneNotSupportedException e)
42 		{
43 			return null;
44 		}
45 	}
46 
47 }
48