public class SimilarityListener<T extends SequenceElement> extends Object implements VectorsListener<T>
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
SimilarityListener(ListenerEvent targetEvent,
int frequency,
String label1,
String label2) |
Modifier and Type | Method and Description |
---|---|
void |
processEvent(ListenerEvent event,
SequenceVectors<T> sequenceVectors,
long argument)
This method is called at each epoch end
|
boolean |
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
|
public SimilarityListener(ListenerEvent targetEvent, int frequency, String label1, String label2)
public boolean validateEvent(ListenerEvent event, long argument)
VectorsListener
validateEvent
in interface VectorsListener<T extends SequenceElement>
public void processEvent(ListenerEvent event, SequenceVectors<T> sequenceVectors, long argument)
VectorsListener
processEvent
in interface VectorsListener<T extends SequenceElement>
Copyright © 2020. All rights reserved.