public class UIListener extends BaseListener
| Modifier and Type | Class and Description |
|---|---|
static class |
UIListener.Builder |
static class |
UIListener.FileMode
Default: FileMode.CREATE_OR_APPEND
The mode for handling behaviour when an existing UI file already exists CREATE: Only allow new file creation. |
static class |
UIListener.HistogramType
Used to specify which histograms should be collected.
|
static class |
UIListener.TestEvaluation |
static class |
UIListener.UpdateRatio
Used to specify how the Update:Parameter ratios are computed.
|
| Modifier and Type | Method and Description |
|---|---|
static UIListener.Builder |
builder(File logFile) |
protected void |
checkStructureForRestore(SameDiff sd) |
ListenerResponse |
epochEnd(SameDiff sd,
At at,
LossCurve lossCurve,
long epochTimeMillis)
Called at the end of every epoch, when fitting from an iterator
|
void |
epochStart(SameDiff sd,
At at)
Called at the start of every epoch, when fitting from an iterator
|
protected void |
initalizeWriter(SameDiff sd) |
protected void |
initializeHelper(SameDiff sd) |
boolean |
isActive(Operation operation)
Returns whether this listener is active during the given operation.
|
void |
iterationDone(SameDiff sd,
At at,
MultiDataSet dataSet,
Loss loss)
Called at the end of every iteration, after all operations (including updating parameters) has been completed
|
void |
iterationStart(SameDiff sd,
At at,
MultiDataSet data,
long etlMs)
Called at the start of every iteration (minibatch), before any operations have been executed
|
void |
opExecution(SameDiff sd,
At at,
MultiDataSet batch,
SameDiffOp op,
OpContext opContext,
INDArray[] outputs)
Called at the end of each operation execution
|
void |
preUpdate(SameDiff sd,
At at,
Variable v,
INDArray update)
Called just before each parameter is to be updated - i.e., just before each parameter is modified.
|
protected void |
restoreLogFile() |
activationAvailable, operationEnd, operationStart, preOpExecution, requiredVariables, validationDoneprotected void restoreLogFile()
protected void checkStructureForRestore(SameDiff sd)
protected void initalizeWriter(SameDiff sd)
protected void initializeHelper(SameDiff sd) throws IOException
IOExceptionpublic boolean isActive(Operation operation)
Listenerpublic void epochStart(SameDiff sd, At at)
ListenerepochStart in interface ListenerepochStart in class BaseListenersd - The SameDiff instanceat - Current iteration/epoch etcpublic ListenerResponse epochEnd(SameDiff sd, At at, LossCurve lossCurve, long epochTimeMillis)
ListenerepochEnd in interface ListenerepochEnd in class BaseListenersd - The SameDiff instanceat - Current iteration/epoch etclossCurve - The losses so farepochTimeMillis - How long this epoch tookpublic void iterationStart(SameDiff sd, At at, MultiDataSet data, long etlMs)
ListeneriterationStart in interface ListeneriterationStart in class BaseListenersd - The SameDiff instanceat - Current iteration/epoch etcpublic void iterationDone(SameDiff sd, At at, MultiDataSet dataSet, Loss loss)
ListeneriterationDone in interface ListeneriterationDone in class BaseListenersd - The SameDiff instanceat - Current iteration/epoch etcdataSet - The current dataset (minibatch) used for trainingloss - The loss value for the current minibatch. Will be null except for during trainingpublic void opExecution(SameDiff sd, At at, MultiDataSet batch, SameDiffOp op, OpContext opContext, INDArray[] outputs)
ListenerNote: Outputs will most likely be freed later, use detach() if you need to save it.
opExecution in interface ListeneropExecution in class BaseListenersd - The SameDiff instanceat - Current iteration/epoch etcbatch - The batch's input data. May be null if not called with a batchop - Operation that has just been executedoutputs - The output arrays for the just-executed operationpublic void preUpdate(SameDiff sd, At at, Variable v, INDArray update)
ListenerpreUpdate in interface ListenerpreUpdate in class BaseListenersd - SameDiff instanceat - The current iteration/epoch etcv - Variable about to be updated during backpropupdate - The array representing the update (i.e., the gradient after applying learning rate, momentum, etc)public static UIListener.Builder builder(File logFile)
Copyright © 2021. All rights reserved.