Package org.nd4j.autodiff.listeners.impl
Class HistoryListener
- java.lang.Object
-
- org.nd4j.autodiff.listeners.BaseListener
-
- org.nd4j.autodiff.listeners.BaseEvaluationListener
-
- org.nd4j.autodiff.listeners.impl.HistoryListener
-
- All Implemented Interfaces:
Listener
public class HistoryListener extends BaseEvaluationListener
-
-
Constructor Summary
Constructors Constructor Description HistoryListener(ListenerEvaluations evaluations)
HistoryListener(TrainingConfig tc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenerResponse
epochEndEvaluations(SameDiff sd, At at, LossCurve lossCurve, long epochTimeMillis, EvaluationRecord evaluations)
SeeListener.epochEnd(SameDiff, At, LossCurve, long)
, also provided the requested evaluationsListenerEvaluations
evaluations()
Return the requested evaluations.History
getReport()
boolean
isActive(Operation operation)
Returns whether this listener is active during the given operation.HistoryListener
newInstance()
void
operationEnd(SameDiff sd, Operation op)
Called at the end of an operation, e.g.void
operationStart(SameDiff sd, Operation op)
Called at the start of an operation, e.g.ListenerResponse
validationDoneEvaluations(SameDiff sd, At at, long validationTimeMillis, EvaluationRecord evaluations)
SeeListener.validationDone(SameDiff, At, long)
, also provided the requested evaluations-
Methods inherited from class org.nd4j.autodiff.listeners.BaseEvaluationListener
activationAvailable, activationAvailableEvaluations, epochEnd, epochStart, epochStartEvaluations, otherRequiredVariables, requiredVariables, validationDone
-
Methods inherited from class org.nd4j.autodiff.listeners.BaseListener
iterationDone, iterationStart, opExecution, preOpExecution, preUpdate
-
-
-
-
Constructor Detail
-
HistoryListener
public HistoryListener(TrainingConfig tc)
-
HistoryListener
public HistoryListener(ListenerEvaluations evaluations)
-
-
Method Detail
-
newInstance
public HistoryListener newInstance()
-
evaluations
public ListenerEvaluations evaluations()
Description copied from class:BaseEvaluationListener
Return the requested evaluations. New instances of these evaluations will be made each time they are used- Specified by:
evaluations
in classBaseEvaluationListener
-
isActive
public boolean isActive(Operation operation)
Description copied from interface:Listener
Returns whether this listener is active during the given operation. If this returns false for the given operation, those listener methods will not be called.
-
epochEndEvaluations
public ListenerResponse epochEndEvaluations(SameDiff sd, At at, LossCurve lossCurve, long epochTimeMillis, EvaluationRecord evaluations)
Description copied from class:BaseEvaluationListener
SeeListener.epochEnd(SameDiff, At, LossCurve, long)
, also provided the requested evaluations- Overrides:
epochEndEvaluations
in classBaseEvaluationListener
-
validationDoneEvaluations
public ListenerResponse validationDoneEvaluations(SameDiff sd, At at, long validationTimeMillis, EvaluationRecord evaluations)
Description copied from class:BaseEvaluationListener
SeeListener.validationDone(SameDiff, At, long)
, also provided the requested evaluations- Overrides:
validationDoneEvaluations
in classBaseEvaluationListener
-
operationStart
public void operationStart(SameDiff sd, Operation op)
Description copied from interface:Listener
Called at the start of an operation, e.g. training or validation- Specified by:
operationStart
in interfaceListener
- Overrides:
operationStart
in classBaseListener
- Parameters:
sd
- The SameDiff instanceop
- The operation being started
-
operationEnd
public void operationEnd(SameDiff sd, Operation op)
Description copied from interface:Listener
Called at the end of an operation, e.g. training or validation- Specified by:
operationEnd
in interfaceListener
- Overrides:
operationEnd
in classBaseListener
- Parameters:
sd
- The SameDiff instanceop
- The operation being started
-
getReport
public History getReport()
-
-