public abstract class AbstractCostFunction extends java.lang.Object implements CostFunction
CostFunction
interface. Much like
the GradientDescent
class, this one provides the possibility of
performing operations in multiple threads and merge the results.Constructor and Description |
---|
AbstractCostFunction(SigmoidFunction sigmoidFunction) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
frees resources associated to this object
|
double |
evaluate(java.util.List<DataPoint> dataPoints,
java.util.List<Prototype> prototypes,
OmegaMatrix omegaMatrix)
computes the costs for the given configuration of data and prototypes
|
public AbstractCostFunction(SigmoidFunction sigmoidFunction)
public double evaluate(java.util.List<DataPoint> dataPoints, java.util.List<Prototype> prototypes, OmegaMatrix omegaMatrix) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
CostFunction
evaluate
in interface CostFunction
dataPoints
- prototypes
- omegaMatrix
- java.util.concurrent.ExecutionException
java.lang.InterruptedException
public void dispose() throws java.lang.InterruptedException
Disposable
dispose
in interface Disposable
java.lang.InterruptedException