public class LossCurve extends Object
Modifier | Constructor and Description |
---|---|
|
LossCurve(double[] lossValues,
List<String> lossNames) |
protected |
LossCurve(INDArray lossValues,
List<String> lossNames) |
|
LossCurve(List<Loss> losses) |
Modifier and Type | Method and Description |
---|---|
LossCurve |
addLossAndCopy(double[] values,
List<String> lossNames)
Return a new LossCurve with the given losses added on as the most recent epoch
|
LossCurve |
addLossAndCopy(Loss loss)
Return a new LossCurve with the given losses added on as the most recent epoch
|
Loss |
lastMeanDelta()
Return the loss delta between the last epoch and the one before it.
|
double |
lastMeanDelta(SDVariable loss)
Return the loss delta between the last epoch and the one before it, for a given variable.
|
double |
lastMeanDelta(String lossName)
Return the loss delta between the last epoch and the one before it, for a given variable.
|
Loss |
lastMeanLoss()
Get the mean loss for the last epoch.
|
float |
lastMeanLoss(@NonNull SDVariable loss)
Return the mean loss value for a given variable on the last epoch.
|
float |
lastMeanLoss(@NonNull String lossName)
Return the mean loss value for a given variable on the last epoch.
|
List<Loss> |
losses() |
Loss |
meanLoss(int epoch)
Get the mean loss for a given epoch
If epoch is negative, counts backwards from the end.
|
float[] |
meanLoss(@NonNull SDVariable loss)
Return all mean loss values for a given variable
|
float |
meanLoss(@NonNull SDVariable loss,
int epoch)
Return the mean loss value for a given variable on a given epoch.
|
float[] |
meanLoss(@NonNull String lossName)
Return all mean loss values for a given variable
|
float |
meanLoss(@NonNull String lossName,
int epoch)
Return the mean loss value for a given variable on a given epoch.
|
public Loss meanLoss(int epoch)
epoch
- The epoch to get. If negative, returns results for the epoch that many epochs from the endpublic Loss lastMeanLoss()
public float[] meanLoss(@NonNull @NonNull String lossName)
public float[] meanLoss(@NonNull @NonNull SDVariable loss)
public float meanLoss(@NonNull @NonNull String lossName, int epoch)
meanLoss(int)
public float meanLoss(@NonNull @NonNull SDVariable loss, int epoch)
meanLoss(int)
public float lastMeanLoss(@NonNull @NonNull String lossName)
public float lastMeanLoss(@NonNull @NonNull SDVariable loss)
public Loss lastMeanDelta()
public double lastMeanDelta(String lossName)
public double lastMeanDelta(SDVariable loss)
public LossCurve addLossAndCopy(Loss loss)
Copyright © 2020. All rights reserved.