Class History
- java.lang.Object
-
- org.nd4j.autodiff.listeners.records.History
-
public class History extends Object
-
-
Constructor Summary
Constructors Constructor Description History(List<EvaluationRecord> training, List<EvaluationRecord> validation, LossCurve loss, long trainingTimeMillis, List<Long> validationTimesMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationRecordfinalTrainingEvaluations()Gets the training evaluations ran during the last epochEvaluationRecordfinalValidationEvaluations()Gets the validation evaluations ran during the last epochLossCurvelossCurve()Get the loss curveinttrainingEpochs()Get the number of epochs trained forList<EvaluationRecord>trainingEval()Get the training evaluationsList<IEvaluation>trainingEval(String param)Get the results of a training evaluation on a given parameter Only works if there is only one evaluation for param.List<IEvaluation>trainingEval(String param, int index)Get the results of a training evaluation on a given parameter at a given index Note that it returns all recorded evaluations.List<Double>trainingEval(String param, int index, IMetric metric)Get the results of a training evaluation on a given parameter at a given index, for a given metric Note that it returns all recorded evaluations.List<Double>trainingEval(String param, IMetric metric)Get the results of a training evaluation on a given parameter for a given metric Only works if there is only one evaluation with the given metric for paramList<IEvaluation>trainingEval(SDVariable param)Get the results of a training evaluation on a given parameter Only works if there is only one evaluation for param.List<IEvaluation>trainingEval(SDVariable param, int index)Get the results of a training evaluation on a given parameter at a given index Note that it returns all recorded evaluations.List<Double>trainingEval(SDVariable param, int index, IMetric metric)Get the results of a training evaluation on a given parameter at a given index, for a given metric Note that it returns all recorded evaluations.List<Double>trainingEval(SDVariable param, IMetric metric)Get the results of a training evaluation on a given parameter for a given metric Only works if there is only one evaluation with the given metric for paramList<Double>trainingEval(IMetric metric)Get the results of a training evaluation for a given metric Only works if there is only one evaluation with the given metricEvaluationRecordtrainingEvaluations(int epoch)Gets the evaluation record for a given epoch.longtrainingTimeMillis()Get the total training time, in millisecondsintvalidationEpochs()Get the number of epochs validation was ran onList<EvaluationRecord>validationEval()Get the validation evaluationsList<IEvaluation>validationEval(String param)Get the results of a validation evaluation on a given parameter Only works if there is only one evaluation for param.List<IEvaluation>validationEval(String param, int index)Get the results of a validation evaluation on a given parameter at a given index Note that it returns all recorded evaluations.List<Double>validationEval(String param, int index, IMetric metric)Get the results of a validation evaluation on a given parameter at a given index, for a given metric Note that it returns all recorded evaluations.List<Double>validationEval(String param, IMetric metric)Get the results of a validation evaluation on a given parameter for a given metric Only works if there is only one evaluation with the given metric for paramList<IEvaluation>validationEval(SDVariable param)Get the results of a validation evaluation on a given parameter Only works if there is only one evaluation for param.List<IEvaluation>validationEval(SDVariable param, int index)Get the results of a validation evaluation on a given parameter at a given index Note that it returns all recorded evaluations.List<Double>validationEval(SDVariable param, int index, IMetric metric)Get the results of a validation evaluation on a given parameter at a given index, for a given metric Note that it returns all recorded evaluations.List<Double>validationEval(SDVariable param, IMetric metric)Get the results of a validation evaluation on a given parameter for a given metric Only works if there is only one evaluation with the given metric for paramList<Double>validationEval(IMetric metric)Get the results of a validation evaluation for a given metric Only works if there is only one evaluation with the given metricEvaluationRecordvalidationEvaluations(int epoch)Gets the evaluation record for a given epoch.List<Long>validationTimesMillis()Get the total validation time, in milliseconds
-
-
-
Constructor Detail
-
History
public History(List<EvaluationRecord> training, List<EvaluationRecord> validation, LossCurve loss, long trainingTimeMillis, List<Long> validationTimesMillis)
-
-
Method Detail
-
trainingEval
public List<EvaluationRecord> trainingEval()
Get the training evaluations
-
validationEval
public List<EvaluationRecord> validationEval()
Get the validation evaluations
-
lossCurve
public LossCurve lossCurve()
Get the loss curve
-
trainingTimeMillis
public long trainingTimeMillis()
Get the total training time, in milliseconds
-
validationTimesMillis
public List<Long> validationTimesMillis()
Get the total validation time, in milliseconds
-
trainingEpochs
public int trainingEpochs()
Get the number of epochs trained for
-
validationEpochs
public int validationEpochs()
Get the number of epochs validation was ran on
-
trainingEval
public List<Double> trainingEval(String param, IMetric metric)
Get the results of a training evaluation on a given parameter for a given metric Only works if there is only one evaluation with the given metric for param
-
trainingEval
public List<Double> trainingEval(SDVariable param, IMetric metric)
Get the results of a training evaluation on a given parameter for a given metric Only works if there is only one evaluation with the given metric for param
-
trainingEval
public List<Double> trainingEval(String param, int index, IMetric metric)
Get the results of a training evaluation on a given parameter at a given index, for a given metric Note that it returns all recorded evaluations. Index determines the evaluation used not the epoch's results to return.
-
trainingEval
public List<Double> trainingEval(SDVariable param, int index, IMetric metric)
Get the results of a training evaluation on a given parameter at a given index, for a given metric Note that it returns all recorded evaluations. Index determines the evaluation used not the epoch's results to return.
-
trainingEval
public List<Double> trainingEval(IMetric metric)
Get the results of a training evaluation for a given metric Only works if there is only one evaluation with the given metric
-
trainingEval
public List<IEvaluation> trainingEval(String param)
Get the results of a training evaluation on a given parameter Only works if there is only one evaluation for param.
-
trainingEval
public List<IEvaluation> trainingEval(SDVariable param)
Get the results of a training evaluation on a given parameter Only works if there is only one evaluation for param.
-
trainingEval
public List<IEvaluation> trainingEval(String param, int index)
Get the results of a training evaluation on a given parameter at a given index Note that it returns all recorded evaluations. Index determines the evaluation used not the epoch's results to return.
-
trainingEval
public List<IEvaluation> trainingEval(SDVariable param, int index)
Get the results of a training evaluation on a given parameter at a given index Note that it returns all recorded evaluations. Index determines the evaluation used not the epoch's results to return.
-
validationEval
public List<Double> validationEval(String param, IMetric metric)
Get the results of a validation evaluation on a given parameter for a given metric Only works if there is only one evaluation with the given metric for param
-
validationEval
public List<Double> validationEval(SDVariable param, IMetric metric)
Get the results of a validation evaluation on a given parameter for a given metric Only works if there is only one evaluation with the given metric for param
-
validationEval
public List<Double> validationEval(String param, int index, IMetric metric)
Get the results of a validation evaluation on a given parameter at a given index, for a given metric Note that it returns all recorded evaluations. Index determines the evaluation used not the epoch's results to return.
-
validationEval
public List<Double> validationEval(SDVariable param, int index, IMetric metric)
Get the results of a validation evaluation on a given parameter at a given index, for a given metric Note that it returns all recorded evaluations. Index determines the evaluation used not the epoch's results to return.
-
validationEval
public List<Double> validationEval(IMetric metric)
Get the results of a validation evaluation for a given metric Only works if there is only one evaluation with the given metric
-
validationEval
public List<IEvaluation> validationEval(String param)
Get the results of a validation evaluation on a given parameter Only works if there is only one evaluation for param.
-
validationEval
public List<IEvaluation> validationEval(SDVariable param)
Get the results of a validation evaluation on a given parameter Only works if there is only one evaluation for param.
-
validationEval
public List<IEvaluation> validationEval(String param, int index)
Get the results of a validation evaluation on a given parameter at a given index Note that it returns all recorded evaluations. Index determines the evaluation used not the epoch's results to return.
-
validationEval
public List<IEvaluation> validationEval(SDVariable param, int index)
Get the results of a validation evaluation on a given parameter at a given index Note that it returns all recorded evaluations. Index determines the evaluation used not the epoch's results to return.
-
finalTrainingEvaluations
public EvaluationRecord finalTrainingEvaluations()
Gets the training evaluations ran during the last epoch
-
finalValidationEvaluations
public EvaluationRecord finalValidationEvaluations()
Gets the validation evaluations ran during the last epoch
-
trainingEvaluations
public EvaluationRecord trainingEvaluations(int epoch)
Gets the evaluation record for a given epoch.- Parameters:
epoch- The epoch to get results for. If negative, returns results for the epoch that many epochs from the end.
-
validationEvaluations
public EvaluationRecord validationEvaluations(int epoch)
Gets the evaluation record for a given epoch.- Parameters:
epoch- The epoch to get results for. If negative, returns results for the epoch that many epochs from the end.
-
-