public final class RBMCostFunction extends AbstractMiniBatchCostFunction
Fmincg, GradientDescent is
doing a great job though as it doesn't care if you're moving into the right
direction down hill.| Constructor and Description |
|---|
RBMCostFunction(de.jungblut.math.DoubleVector[] currentTrainingSet,
int batchSize,
int numThreads,
int numHiddenUnits,
ActivationFunction activationFunction,
TrainingType type,
double lambda,
long seed,
boolean stochastic) |
| Modifier and Type | Method and Description |
|---|---|
protected CostGradientTuple |
evaluateBatch(de.jungblut.math.DoubleVector input,
de.jungblut.math.DoubleMatrix data,
de.jungblut.math.DoubleMatrix outcomeBatch)
Evaluate the batch.
|
evaluateCostpublic RBMCostFunction(de.jungblut.math.DoubleVector[] currentTrainingSet,
int batchSize,
int numThreads,
int numHiddenUnits,
ActivationFunction activationFunction,
TrainingType type,
double lambda,
long seed,
boolean stochastic)
protected CostGradientTuple evaluateBatch(de.jungblut.math.DoubleVector input, de.jungblut.math.DoubleMatrix data, de.jungblut.math.DoubleMatrix outcomeBatch)
AbstractMiniBatchCostFunctionevaluateBatch in class AbstractMiniBatchCostFunctioninput - the parameters to use.data - the batch matrix as input (already contains a bias!).outcomeBatch - the batch matrix denoting the output.AbstractMiniBatchCostFunction.evaluateCost(DoubleVector).Copyright © 2016. All rights reserved.