|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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 KernelModelpublic boolean isClassificationModel()
isClassificationModel in class KernelModelpublic double getAlpha(int index)
getAlpha in class KernelModelpublic java.lang.String getId(int index)
getId in class KernelModelpublic int getNumberOfExamples()
getNumberOfExamples in class KernelModelpublic int getNumberOfAttributes()
getNumberOfAttributes in class KernelModel
public double getAttributeValue(int exampleIndex,
int attributeIndex)
getAttributeValue in class KernelModelpublic java.lang.String getClassificationLabel(int index)
getClassificationLabel in class KernelModelpublic double getRegressionLabel(int index)
getRegressionLabel in class KernelModelpublic 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 PredictionModeljava.io.IOException
public void writePredictionModelData(java.io.ObjectOutputStream out)
throws java.io.IOException
writePredictionModelData in class PredictionModeljava.io.IOExceptionpublic java.lang.String toString()
toString in class PredictionModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||