You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

svm_parameter.java 1.3 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. /* kernel_type */
  11. public static final int LINEAR = 0;
  12. public static final int POLY = 1;
  13. public static final int RBF = 2;
  14. public static final int SIGMOID = 3;
  15. public static final int PRECOMPUTED = 4;
  16. public int svm_type;
  17. public int kernel_type;
  18. public int degree; // for poly
  19. public double gamma; // for poly/rbf/sigmoid
  20. public double coef0; // for poly/sigmoid
  21. // these are for training only
  22. public double cache_size; // in MB
  23. public double eps; // stopping criteria
  24. public double C; // for C_SVC, EPSILON_SVR and NU_SVR
  25. public int nr_weight; // for C_SVC
  26. public int[] weight_label; // for C_SVC
  27. public double[] weight; // for C_SVC
  28. public double nu; // for NU_SVC, ONE_CLASS, and NU_SVR
  29. public double p; // for EPSILON_SVR
  30. public int shrinking; // use the shrinking heuristics
  31. public int probability; // do probability estimates
  32. public Object clone()
  33. {
  34. try
  35. {
  36. return super.clone();
  37. } catch (CloneNotSupportedException e)
  38. {
  39. return null;
  40. }
  41. }
  42. }

A Python package for graph kernels, graph edit distances and graph pre-image problem.