public interface SequenceLearningAlgorithm<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() |
ElementsLearningAlgorithm<T> |
getElementsLearningAlgorithm() |
org.nd4j.linalg.api.ndarray.INDArray |
inferSequence(Sequence<T> sequence,
long nextRandom,
double learningRate,
double minLearningRate,
int iterations)
This method does training on previously unseen paragraph, and returns inferred vector
|
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()
org.nd4j.linalg.api.ndarray.INDArray inferSequence(Sequence<T> sequence, long nextRandom, double learningRate, double minLearningRate, int iterations)
sequence
- nextRandom
- learningRate
- ElementsLearningAlgorithm<T> getElementsLearningAlgorithm()
void finish()