public class History extends Object
Constructor and Description |
---|
History(List<EvaluationRecord> training,
List<EvaluationRecord> validation,
LossCurve loss,
long trainingTimeMillis,
List<Long> validationTimesMillis) |
Modifier and Type | Method and Description |
---|---|
EvaluationRecord |
finalTrainingEvaluations()
Gets the training evaluations ran during the last epoch
|
EvaluationRecord |
finalValidationEvaluations()
Gets the validation evaluations ran during the last epoch
|
LossCurve |
lossCurve()
Get the loss curve
|
int |
trainingEpochs()
Get the number of epochs trained for
|
List<EvaluationRecord> |
trainingEval()
Get the training evaluations
|
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
|
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.
|
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
|
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<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<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
|
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.
|
EvaluationRecord |
trainingEvaluations(int epoch)
Gets the evaluation record for a given epoch.
|
long |
trainingTimeMillis()
Get the total training time, in milliseconds
|
int |
validationEpochs()
Get the number of epochs validation was ran on
|
List<EvaluationRecord> |
validationEval()
Get the validation evaluations
|
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
|
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.
|
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
|
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<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<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
|
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.
|
EvaluationRecord |
validationEvaluations(int epoch)
Gets the evaluation record for a given epoch.
|
List<Long> |
validationTimesMillis()
Get the total validation time, in milliseconds
|
public History(List<EvaluationRecord> training, List<EvaluationRecord> validation, LossCurve loss, long trainingTimeMillis, List<Long> validationTimesMillis)
public List<EvaluationRecord> trainingEval()
public List<EvaluationRecord> validationEval()
public LossCurve lossCurve()
public long trainingTimeMillis()
public List<Long> validationTimesMillis()
public int trainingEpochs()
public int validationEpochs()
public List<Double> trainingEval(String param, IMetric metric)
public List<Double> trainingEval(SDVariable param, IMetric metric)
public List<Double> trainingEval(String param, int index, IMetric metric)
public List<Double> trainingEval(SDVariable param, int index, IMetric metric)
public List<Double> trainingEval(IMetric metric)
public List<IEvaluation> trainingEval(String param)
public List<IEvaluation> trainingEval(SDVariable param)
public List<IEvaluation> trainingEval(String param, int index)
public List<IEvaluation> trainingEval(SDVariable param, int index)
public List<Double> validationEval(String param, IMetric metric)
public List<Double> validationEval(SDVariable param, IMetric metric)
public List<Double> validationEval(String param, int index, IMetric metric)
public List<Double> validationEval(SDVariable param, int index, IMetric metric)
public List<Double> validationEval(IMetric metric)
public List<IEvaluation> validationEval(String param)
public List<IEvaluation> validationEval(SDVariable param)
public List<IEvaluation> validationEval(String param, int index)
public List<IEvaluation> validationEval(SDVariable param, int index)
public EvaluationRecord finalTrainingEvaluations()
public EvaluationRecord finalValidationEvaluations()
public EvaluationRecord trainingEvaluations(int epoch)
epoch
- The epoch to get results for. If negative, returns results for the epoch that many epochs from the end.public EvaluationRecord validationEvaluations(int epoch)
epoch
- The epoch to get results for. If negative, returns results for the epoch that many epochs from the end.Copyright © 2021. All rights reserved.