|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.operator.AbstractModel
edu.udo.cs.yale.operator.IOModel
edu.udo.cs.yale.operator.learner.PredictionModel
edu.udo.cs.yale.operator.learner.kernel.KernelModel
edu.udo.cs.yale.operator.learner.kernel.evosvm.EvoSVMModel
public class EvoSVMModel
The model for the evolutionary SVM. Basically the same as other SVM models.
Field Summary | |
---|---|
private double |
bias
The bias. |
private Kernel |
kernel
The used kernel function. |
private int |
numberOfAttributes
The number of attributes. |
private java.util.List<SupportVector> |
supportVectors
The list of all support vectors. |
Constructor Summary | |
---|---|
EvoSVMModel()
Creates a new EvoSVMModel (after loading). |
|
EvoSVMModel(Attribute label)
Creates a new EvoSVMModel (after loading). |
|
EvoSVMModel(Attribute label,
java.util.List<SupportVector> supportVectors,
Kernel kernel,
double bias)
Creates a new EvoSVMModel after training. |
Method Summary | |
---|---|
double |
getAlpha(int index)
|
double |
getAttributeValue(int exampleIndex,
int attributeIndex)
|
java.lang.String |
getClassificationLabel(int index)
|
double |
getFunctionValue(int index)
|
java.lang.String |
getId(int index)
|
java.lang.String |
getModelInfo()
|
int |
getNumberOfAttributes()
|
int |
getNumberOfExamples()
|
double |
getRegressionLabel(int index)
|
boolean |
isClassificationModel()
|
void |
performPrediction(ExampleSet exampleSet,
Attribute predictedLabelAttribute)
Applies the model to each example of the example set. |
void |
readPredictionModelData(java.io.ObjectInputStream in)
Reads the data for this model. |
java.lang.String |
toString()
Returns a string representation of this model. |
void |
writePredictionModelData(java.io.ObjectOutputStream out)
Writes the data for this model. |
Methods inherited from class edu.udo.cs.yale.operator.learner.kernel.KernelModel |
---|
getVisualisationComponent |
Methods inherited from class edu.udo.cs.yale.operator.learner.PredictionModel |
---|
apply, createPredictedLabel, getLabel, readData, removePredictedLabel, setLabel, writeData |
Methods inherited from class edu.udo.cs.yale.operator.AbstractModel |
---|
equals, getExtension, getFileDescription, readModel, readModel, save, setParameter, writeModel, writeModel |
Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter |
---|
addAction, getActions, getName, toHTML, toResultString |
Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject |
---|
copy, read, read, read, write, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.udo.cs.yale.operator.ResultObject |
---|
getActions, getName, toResultString |
Methods inherited from interface edu.udo.cs.yale.operator.IOObject |
---|
copy, write, write |
Field Detail |
---|
private Kernel kernel
private java.util.List<SupportVector> supportVectors
private double bias
private int numberOfAttributes
Constructor Detail |
---|
public EvoSVMModel()
public EvoSVMModel(Attribute label)
public EvoSVMModel(Attribute label, java.util.List<SupportVector> supportVectors, Kernel kernel, double bias)
Method Detail |
---|
public java.lang.String getModelInfo()
getModelInfo
in class KernelModel
public boolean isClassificationModel()
isClassificationModel
in class KernelModel
public double getAlpha(int index)
getAlpha
in class KernelModel
public java.lang.String getId(int index)
getId
in class KernelModel
public int getNumberOfExamples()
getNumberOfExamples
in class KernelModel
public int getNumberOfAttributes()
getNumberOfAttributes
in class KernelModel
public double getAttributeValue(int exampleIndex, int attributeIndex)
getAttributeValue
in class KernelModel
public java.lang.String getClassificationLabel(int index)
getClassificationLabel
in class KernelModel
public double getRegressionLabel(int index)
getRegressionLabel
in class KernelModel
public double getFunctionValue(int index)
getFunctionValue
in class KernelModel
public void performPrediction(ExampleSet exampleSet, Attribute predictedLabelAttribute)
performPrediction
in class PredictionModel
public void readPredictionModelData(java.io.ObjectInputStream in) throws java.io.IOException
readPredictionModelData
in class PredictionModel
java.io.IOException
public void writePredictionModelData(java.io.ObjectOutputStream out) throws java.io.IOException
writePredictionModelData
in class PredictionModel
java.io.IOException
public java.lang.String toString()
toString
in class PredictionModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |