Package deepnetts.net.train
Class TrainingEvent
java.lang.Object
deepnetts.net.train.TrainingEvent
TrainingEvent is used to notify interested parties that training event has happened.
It contains a type and a source of the event.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic TrainingEvent.Type
Specifies that training epoch has finished.static TrainingEvent.Type
Specifies that training epoch has started.static TrainingEvent.Type
Specifies that training iteration has finished.static TrainingEvent.Type
Specifies mini batch event.static TrainingEvent.Type
Specifies that training has started.static TrainingEvent.Type
Specifies that training has stopped. -
Constructor Summary
ConstructorsConstructorDescriptionTrainingEvent
(BackpropagationTrainer source, TrainingEvent.Type type) Constructs a new TrainingEvent with specified source and type. -
Method Summary
Modifier and TypeMethodDescriptionGets the source of the event.getType()
Gets the type of the event.
-
Field Details
-
STARTED
Specifies that training has started. -
STOPPED
Specifies that training has stopped. -
EPOCH_STARTED
Specifies that training epoch has started. -
EPOCH_FINISHED
Specifies that training epoch has finished. -
MINI_BATCH
Specifies mini batch event. -
ITERATION_FINISHED
Specifies that training iteration has finished.
-
-
Constructor Details
-
TrainingEvent
Constructs a new TrainingEvent with specified source and type.- Parameters:
source
- source of the event, typically some training algorithmtype
- type of the event
-
-
Method Details
-
getSource
Gets the source of the event. Usually the source of the event is some training algorithm.- Returns:
- the source of the event.
-
getType
-