Class DataSetLossCalculatorCG
- java.lang.Object
-
- org.deeplearning4j.earlystopping.scorecalc.DataSetLossCalculatorCG
-
- All Implemented Interfaces:
Serializable,ScoreCalculator<ComputationGraph>
@Deprecated public class DataSetLossCalculatorCG extends Object implements ScoreCalculator<ComputationGraph>
Deprecated.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataSetLossCalculatorCG(DataSetIterator dataSetIterator, boolean average)Deprecated.Calculate the score (loss function value) on a given data set (usually a test set)DataSetLossCalculatorCG(MultiDataSetIterator dataSetIterator, boolean average)Deprecated.Calculate the score (loss function value) on a given data set (usually a test set)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doublecalculateScore(ComputationGraph network)Deprecated.Calculate the score for the given MultiLayerNetworkbooleanminimizeScore()Deprecated.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
DataSetLossCalculatorCG
public DataSetLossCalculatorCG(DataSetIterator dataSetIterator, boolean average)
Deprecated.Calculate the score (loss function value) on a given data set (usually a test set)- Parameters:
dataSetIterator- Data set to calculate the score foraverage- Whether to return the average (sum of loss / N) or just (sum of loss)
-
DataSetLossCalculatorCG
public DataSetLossCalculatorCG(MultiDataSetIterator dataSetIterator, boolean average)
Deprecated.Calculate the score (loss function value) on a given data set (usually a test set)- Parameters:
dataSetIterator- Data set to calculate the score foraverage- Whether to return the average (sum of loss / N) or just (sum of loss)
-
-
Method Detail
-
calculateScore
public double calculateScore(ComputationGraph network)
Deprecated.Description copied from interface:ScoreCalculatorCalculate the score for the given MultiLayerNetwork- Specified by:
calculateScorein interfaceScoreCalculator<ComputationGraph>
-
minimizeScore
public boolean minimizeScore()
Deprecated.- Specified by:
minimizeScorein interfaceScoreCalculator<ComputationGraph>- Returns:
- If true: the score should be minimized. If false: the score should be maximized.
-
-