Class SimilarityListener<T extends SequenceElement>
- java.lang.Object
-
- org.deeplearning4j.models.sequencevectors.listeners.SimilarityListener<T>
-
- All Implemented Interfaces:
VectorsListener<T>
public class SimilarityListener<T extends SequenceElement> extends Object implements VectorsListener<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description SimilarityListener(ListenerEvent targetEvent, int frequency, String label1, String label2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processEvent(ListenerEvent event, SequenceVectors<T> sequenceVectors, long argument)
This method is called at each epoch endboolean
validateEvent(ListenerEvent event, long argument)
This method is called prior each processEvent call, to check if this specific VectorsListener implementation is viable for specific event
-
-
-
Constructor Detail
-
SimilarityListener
public SimilarityListener(ListenerEvent targetEvent, int frequency, String label1, String label2)
-
-
Method Detail
-
validateEvent
public boolean validateEvent(ListenerEvent event, long argument)
Description copied from interface:VectorsListener
This method is called prior each processEvent call, to check if this specific VectorsListener implementation is viable for specific event- Specified by:
validateEvent
in interfaceVectorsListener<T extends SequenceElement>
- Returns:
- TRUE, if this event can and should be processed with this listener, FALSE otherwise
-
processEvent
public void processEvent(ListenerEvent event, SequenceVectors<T> sequenceVectors, long argument)
Description copied from interface:VectorsListener
This method is called at each epoch end- Specified by:
processEvent
in interfaceVectorsListener<T extends SequenceElement>
-
-