|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.myRVM.Model
public class Model
The lerned model.
| Field Summary | |
|---|---|
private boolean |
bias
|
private KernelBasisFunction[] |
kernels
|
private int |
numVectors
|
private boolean |
regression
|
private double[] |
weights
|
| Constructor Summary | |
|---|---|
private |
Model()
Constructors |
|
Model(double[] weights,
KernelBasisFunction[] kernels,
boolean bias,
boolean regression)
|
| Method Summary | |
|---|---|
double[] |
apply(double[][] inputVectors)
|
double |
applyToVector(double[] vector)
Model application. |
double |
calculate(double[] att)
|
void |
dumpToFile()
|
int |
getNumberOfRelevanceVectors()
|
double |
getWeight(int index)
|
double |
norm_l2(double[] vector)
Create and save data that ist used in our 2d-matlab visualisations. |
static Model |
readModel(java.io.ObjectInputStream in)
Reads the model data from the input stream. |
void |
writeModel(java.io.ObjectOutputStream out)
Writes the model data into the output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private KernelBasisFunction[] kernels
private double[] weights
private int numVectors
private boolean bias
private boolean regression
| Constructor Detail |
|---|
private Model()
public Model(double[] weights,
KernelBasisFunction[] kernels,
boolean bias,
boolean regression)
| Method Detail |
|---|
public int getNumberOfRelevanceVectors()
public double getWeight(int index)
public double applyToVector(double[] vector)
public double[] apply(double[][] inputVectors)
public static Model readModel(java.io.ObjectInputStream in)
throws java.io.IOException
java.io.IOException
public void writeModel(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic double norm_l2(double[] vector)
public double calculate(double[] att)
public void dumpToFile()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||