public class GMLVQDefaultObserver extends java.lang.Object implements Observer
Observer
interface, so a Visualizer
can be available even
when GMLVQCore
was invoked from Tests or operated upon by
directly using its API.Constructor and Description |
---|
GMLVQDefaultObserver(GMLVQCore gmlvqCore,
Instances trainingData,
int numberOfPrototypes,
java.util.Map<CostFunctionValue,java.lang.Double> currentCostValues) |
Modifier and Type | Method and Description |
---|---|
void |
updateCostFunctions(java.util.Map<CostFunctionValue,java.lang.Double> currentCostValues)
hand over the current cost values to visualize
|
void |
updateLambdaMatrix(Matrix lambdaMatrix)
hand over the new lambda matrix to visualize
|
void |
updatePrototypes(java.util.List<Prototype> prototypes)
hand over the new prototypes to visualize
|
public GMLVQDefaultObserver(GMLVQCore gmlvqCore, Instances trainingData, int numberOfPrototypes, java.util.Map<CostFunctionValue,java.lang.Double> currentCostValues)
public void updateCostFunctions(java.util.Map<CostFunctionValue,java.lang.Double> currentCostValues)
Observer
updateCostFunctions
in interface Observer
public void updateLambdaMatrix(Matrix lambdaMatrix)
Observer
updateLambdaMatrix
in interface Observer
public void updatePrototypes(java.util.List<Prototype> prototypes)
Observer
updatePrototypes
in interface Observer