public interface ElementsLearningAlgorithm<T extends SequenceElement>
Modifier and Type | Method and Description |
---|---|
void |
configure(VocabCache<T> vocabCache,
WeightLookupTable<T> lookupTable,
VectorsConfiguration configuration) |
void |
finish() |
java.lang.String |
getCodeName() |
boolean |
isEarlyTerminationHit() |
double |
learnSequence(Sequence<T> sequence,
java.util.concurrent.atomic.AtomicLong nextRandom,
double learningRate)
This method does training over the sequence of elements passed into it
|
void |
pretrain(SequenceIterator<T> iterator) |
java.lang.String getCodeName()
void configure(VocabCache<T> vocabCache, WeightLookupTable<T> lookupTable, VectorsConfiguration configuration)
void pretrain(SequenceIterator<T> iterator)
double learnSequence(Sequence<T> sequence, java.util.concurrent.atomic.AtomicLong nextRandom, double learningRate)
sequence
- nextRandom
- learningRate
- boolean isEarlyTerminationHit()
void finish()