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 ListenerResponseepochEndEvaluations(SameDiff sd, At at, LossCurve lossCurve, long epochTimeMillis, EvaluationRecord evaluations)SeeListener.epochEnd(SameDiff, At, LossCurve, long), also provided the requested evaluationsListenerEvaluationsevaluations()Return the requested evaluations.HistorygetReport()booleanisActive(Operation operation)Returns whether this listener is active during the given operation.HistoryListenernewInstance()voidoperationEnd(SameDiff sd, Operation op)Called at the end of an operation, e.g.voidoperationStart(SameDiff sd, Operation op)Called at the start of an operation, e.g.ListenerResponsevalidationDoneEvaluations(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:BaseEvaluationListenerReturn the requested evaluations. New instances of these evaluations will be made each time they are used- Specified by:
evaluationsin classBaseEvaluationListener
-
isActive
public boolean isActive(Operation operation)
Description copied from interface:ListenerReturns 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:BaseEvaluationListenerSeeListener.epochEnd(SameDiff, At, LossCurve, long), also provided the requested evaluations- Overrides:
epochEndEvaluationsin classBaseEvaluationListener
-
validationDoneEvaluations
public ListenerResponse validationDoneEvaluations(SameDiff sd, At at, long validationTimeMillis, EvaluationRecord evaluations)
Description copied from class:BaseEvaluationListenerSeeListener.validationDone(SameDiff, At, long), also provided the requested evaluations- Overrides:
validationDoneEvaluationsin classBaseEvaluationListener
-
operationStart
public void operationStart(SameDiff sd, Operation op)
Description copied from interface:ListenerCalled at the start of an operation, e.g. training or validation- Specified by:
operationStartin interfaceListener- Overrides:
operationStartin classBaseListener- Parameters:
sd- The SameDiff instanceop- The operation being started
-
operationEnd
public void operationEnd(SameDiff sd, Operation op)
Description copied from interface:ListenerCalled at the end of an operation, e.g. training or validation- Specified by:
operationEndin interfaceListener- Overrides:
operationEndin classBaseListener- Parameters:
sd- The SameDiff instanceop- The operation being started
-
getReport
public History getReport()
-
-