public class DataSetLossCalculator extends java.lang.Object implements ScoreCalculator<MultiLayerNetwork>
ComputationGraph
use DataSetLossCalculatorCG
Constructor and Description |
---|
DataSetLossCalculator(org.nd4j.linalg.dataset.api.iterator.DataSetIterator dataSetIterator,
boolean average)
Calculate the score (loss function value) on a given data set (usually a test set)
|
Modifier and Type | Method and Description |
---|---|
double |
calculateScore(MultiLayerNetwork network)
Calculate the score for the given MultiLayerNetwork
|
java.lang.String |
toString() |
public DataSetLossCalculator(org.nd4j.linalg.dataset.api.iterator.DataSetIterator dataSetIterator, boolean average)
dataSetIterator
- Data set to calculate the score foraverage
- Whether to return the average (sum of loss / N) or just (sum of loss)public double calculateScore(MultiLayerNetwork network)
ScoreCalculator
calculateScore
in interface ScoreCalculator<MultiLayerNetwork>
public java.lang.String toString()
toString
in class java.lang.Object