org.encog.ml.svm
Class PersistSVM
- java.lang.Object
-
- org.encog.ml.svm.PersistSVM
-
- All Implemented Interfaces:
- EncogPersistor
public class PersistSVM extends java.lang.Object implements EncogPersistor
Persist a SVM.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringPARAM_CThe parameter to hold the const C.static java.lang.StringPARAM_CACHE_SIZEThe parameter to hold the cache size.static java.lang.StringPARAM_COEF0The parameter to hold the coef0.static java.lang.StringPARAM_DEGREEThe parameter to hold the degree.static java.lang.StringPARAM_EPSThe parameter to hold the eps.static java.lang.StringPARAM_GAMMAThe parameter to hold the gamma.static java.lang.StringPARAM_KERNEL_TYPEThe parameter to hold the kernel type.static java.lang.StringPARAM_NUThe parameter to hold the nu.static java.lang.StringPARAM_NUM_WEIGHTThe parameter to hold the number of weights.static java.lang.StringPARAM_PThe parameter to hold the p.static java.lang.StringPARAM_PROBABILITYThe parameter to hold the probability.static java.lang.StringPARAM_SHRINKINGThe parameter to hold the shrinking.static java.lang.StringPARAM_SVM_TYPEThe parameter to hold the SVM type.static java.lang.StringPARAM_WEIGHTThe paramater to hold the weight.static java.lang.StringPARAM_WEIGHT_LABELThe parameter to hold the weight label.
-
Constructor Summary
Constructors Constructor and Description PersistSVM()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetFileVersion()java.lang.StringgetPersistClassString()java.lang.Objectread(java.io.InputStream is)Read the object from an input stream.voidsave(java.io.OutputStream os, java.lang.Object obj)Save the object.
-
-
-
Field Detail
-
PARAM_C
public static final java.lang.String PARAM_C
The parameter to hold the const C.- See Also:
- Constant Field Values
-
PARAM_CACHE_SIZE
public static final java.lang.String PARAM_CACHE_SIZE
The parameter to hold the cache size.- See Also:
- Constant Field Values
-
PARAM_COEF0
public static final java.lang.String PARAM_COEF0
The parameter to hold the coef0.- See Also:
- Constant Field Values
-
PARAM_DEGREE
public static final java.lang.String PARAM_DEGREE
The parameter to hold the degree.- See Also:
- Constant Field Values
-
PARAM_EPS
public static final java.lang.String PARAM_EPS
The parameter to hold the eps.- See Also:
- Constant Field Values
-
PARAM_GAMMA
public static final java.lang.String PARAM_GAMMA
The parameter to hold the gamma.- See Also:
- Constant Field Values
-
PARAM_KERNEL_TYPE
public static final java.lang.String PARAM_KERNEL_TYPE
The parameter to hold the kernel type.- See Also:
- Constant Field Values
-
PARAM_NUM_WEIGHT
public static final java.lang.String PARAM_NUM_WEIGHT
The parameter to hold the number of weights.- See Also:
- Constant Field Values
-
PARAM_NU
public static final java.lang.String PARAM_NU
The parameter to hold the nu.- See Also:
- Constant Field Values
-
PARAM_P
public static final java.lang.String PARAM_P
The parameter to hold the p.- See Also:
- Constant Field Values
-
PARAM_PROBABILITY
public static final java.lang.String PARAM_PROBABILITY
The parameter to hold the probability.- See Also:
- Constant Field Values
-
PARAM_SHRINKING
public static final java.lang.String PARAM_SHRINKING
The parameter to hold the shrinking.- See Also:
- Constant Field Values
-
PARAM_SVM_TYPE
public static final java.lang.String PARAM_SVM_TYPE
The parameter to hold the SVM type.- See Also:
- Constant Field Values
-
PARAM_WEIGHT
public static final java.lang.String PARAM_WEIGHT
The paramater to hold the weight.- See Also:
- Constant Field Values
-
PARAM_WEIGHT_LABEL
public static final java.lang.String PARAM_WEIGHT_LABEL
The parameter to hold the weight label.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFileVersion
public int getFileVersion()
- Specified by:
getFileVersionin interfaceEncogPersistor- Returns:
- The file version.
-
getPersistClassString
public java.lang.String getPersistClassString()
- Specified by:
getPersistClassStringin interfaceEncogPersistor- Returns:
- Get the class string for the object.
-
read
public java.lang.Object read(java.io.InputStream is)
Read the object from an input stream.- Specified by:
readin interfaceEncogPersistor- Parameters:
is- The input stream.- Returns:
- The object.
-
save
public void save(java.io.OutputStream os, java.lang.Object obj)Save the object.- Specified by:
savein interfaceEncogPersistor- Parameters:
os- The output stream to save to.obj- The object to save.
-
-
DMelt 3.0 © DataMelt by jWork.ORG