Interface ElementsLearningAlgorithm<T extends SequenceElement>
-
public interface ElementsLearningAlgorithm<T extends SequenceElement>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure(VocabCache<T> vocabCache, WeightLookupTable<T> lookupTable, VectorsConfiguration configuration)voidfinish()StringgetCodeName()booleanisEarlyTerminationHit()doublelearnSequence(Sequence<T> sequence, AtomicLong nextRandom, double learningRate)This method does training over the sequence of elements passed into itdoublelearnSequence(Sequence<T> sequence, AtomicLong nextRandom, double learningRate, BatchSequences<T> batchSequences)voidpretrain(SequenceIterator<T> iterator)
-
-
-
Method Detail
-
getCodeName
String getCodeName()
-
configure
void configure(VocabCache<T> vocabCache, WeightLookupTable<T> lookupTable, VectorsConfiguration configuration)
-
pretrain
void pretrain(SequenceIterator<T> iterator)
-
learnSequence
double learnSequence(Sequence<T> sequence, AtomicLong nextRandom, double learningRate)
This method does training over the sequence of elements passed into it- Parameters:
sequence-nextRandom-learningRate-- Returns:
- average score for this sequence
-
learnSequence
double learnSequence(Sequence<T> sequence, AtomicLong nextRandom, double learningRate, BatchSequences<T> batchSequences)
-
isEarlyTerminationHit
boolean isEarlyTerminationHit()
-
finish
void finish()
-
-