org.encog.persist.persistors
Class SVMNetworkPersistor

java.lang.Object
  extended by org.encog.persist.persistors.SVMNetworkPersistor
All Implemented Interfaces:
Persistor

public class SVMNetworkPersistor
extends Object
implements Persistor

Persist a SVM network.


Field Summary
static String[] kernel_type_table
          Constants for the kernel types.
static String[] svm_type_table
          Constants for the SVM types.
static String TAG_COEF0
          The coefficient.
static String TAG_DATA
          The data tag.
static String TAG_DEGREE
          The degree to use.
static String TAG_GAMMA
          The gamma to use.
static String TAG_INPUT
          The input tag.
static String TAG_LABEL
          The labels.
static String TAG_MODEL
          The model tag.
static String TAG_MODELS
          The models tag.
static String TAG_NSV
          The number of support vectors.
static String TAG_NUMCLASS
          The number of classes.
static String TAG_OUTPUT
          The output tag.
static String TAG_PROB_A
          The A-probability.
static String TAG_PROB_B
          The B-probability.
static String TAG_RHO
          The rho to use.
static String TAG_ROW
          The row tag.
static String TAG_TOTALSV
          The total number of cases.
static String TAG_TYPE_KERNEL
          The type of kernel to use.
static String TAG_TYPE_SVM
          The type of SVM this is.
 
Constructor Summary
SVMNetworkPersistor()
           
 
Method Summary
 EncogPersistedObject load(ReadXML in)
          Load the SVM network.
 void save(EncogPersistedObject obj, WriteXML out)
          Save a SVMNetwork.
static void saveModel(WriteXML out, svm_model model)
          Save a model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

svm_type_table

public static final String[] svm_type_table
Constants for the SVM types.


kernel_type_table

public static final String[] kernel_type_table
Constants for the kernel types.


TAG_INPUT

public static final String TAG_INPUT
The input tag.

See Also:
Constant Field Values

TAG_OUTPUT

public static final String TAG_OUTPUT
The output tag.

See Also:
Constant Field Values

TAG_MODELS

public static final String TAG_MODELS
The models tag.

See Also:
Constant Field Values

TAG_DATA

public static final String TAG_DATA
The data tag.

See Also:
Constant Field Values

TAG_ROW

public static final String TAG_ROW
The row tag.

See Also:
Constant Field Values

TAG_MODEL

public static final String TAG_MODEL
The model tag.

See Also:
Constant Field Values

TAG_TYPE_SVM

public static final String TAG_TYPE_SVM
The type of SVM this is.

See Also:
Constant Field Values

TAG_TYPE_KERNEL

public static final String TAG_TYPE_KERNEL
The type of kernel to use.

See Also:
Constant Field Values

TAG_DEGREE

public static final String TAG_DEGREE
The degree to use.

See Also:
Constant Field Values

TAG_GAMMA

public static final String TAG_GAMMA
The gamma to use.

See Also:
Constant Field Values

TAG_COEF0

public static final String TAG_COEF0
The coefficient.

See Also:
Constant Field Values

TAG_NUMCLASS

public static final String TAG_NUMCLASS
The number of classes.

See Also:
Constant Field Values

TAG_TOTALSV

public static final String TAG_TOTALSV
The total number of cases.

See Also:
Constant Field Values

TAG_RHO

public static final String TAG_RHO
The rho to use.

See Also:
Constant Field Values

TAG_LABEL

public static final String TAG_LABEL
The labels.

See Also:
Constant Field Values

TAG_PROB_A

public static final String TAG_PROB_A
The A-probability.

See Also:
Constant Field Values

TAG_PROB_B

public static final String TAG_PROB_B
The B-probability.

See Also:
Constant Field Values

TAG_NSV

public static final String TAG_NSV
The number of support vectors.

See Also:
Constant Field Values
Constructor Detail

SVMNetworkPersistor

public SVMNetworkPersistor()
Method Detail

load

public EncogPersistedObject load(ReadXML in)
Load the SVM network.

Specified by:
load in interface Persistor
Parameters:
in - Where to read it from.
Returns:
The loaded object.

saveModel

public static void saveModel(WriteXML out,
                             svm_model model)
Save a model.

Parameters:
out - Where to save a model to.
model - The model to save to.

save

public void save(EncogPersistedObject obj,
                 WriteXML out)
Save a SVMNetwork.

Specified by:
save in interface Persistor
Parameters:
obj - The object to save.
out - Where to save it to.


Copyright © 2011. All Rights Reserved.