public class TrainingResult
extends java.lang.Object
Trainer
.Constructor and Description |
---|
TrainingResult() |
Modifier and Type | Method and Description |
---|---|
int |
getEpoch()
Returns the actual number of epoch.
|
java.util.Map<java.lang.String,java.lang.Float> |
getEvaluations()
Returns the raw evaluation metrics.
|
java.lang.Float |
getTrainEvaluation(java.lang.String key)
Returns the evaluation to which the specified key is mapped.
|
java.lang.Float |
getTrainLoss()
Returns the train loss.
|
java.lang.Float |
getValidateEvaluation(java.lang.String key)
Returns the evaluation to which the specified key is mapped.
|
java.lang.Float |
getValidateLoss()
Returns the validate loss.
|
void |
setEpoch(int epoch)
Sets the actual number of epoch.
|
void |
setEvaluations(java.util.Map<java.lang.String,java.lang.Float> evaluations)
Sets the raw evaluation metrics.
|
public java.lang.Float getTrainLoss()
public java.lang.Float getValidateLoss()
public java.lang.Float getTrainEvaluation(java.lang.String key)
key
- the key whose associated value is to be returnedpublic java.lang.Float getValidateEvaluation(java.lang.String key)
key
- the key whose associated value is to be returnedpublic int getEpoch()
public void setEpoch(int epoch)
epoch
- the actual number of epochpublic java.util.Map<java.lang.String,java.lang.Float> getEvaluations()
public void setEvaluations(java.util.Map<java.lang.String,java.lang.Float> evaluations)
evaluations
- the raw evaluation metrics