public static class GloveWeightLookupTable.Builder<T extends SequenceElement> extends InMemoryLookupTable.Builder<T>
gen, lr, negative, seed, useAdaGrad, useHS, vectorLength, vocabCache
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GloveWeightLookupTable<T> |
build() |
GloveWeightLookupTable.Builder<T> |
cache(VocabCache<T> vocab) |
GloveWeightLookupTable.Builder<T> |
gen(org.nd4j.linalg.api.rng.Random gen) |
GloveWeightLookupTable.Builder<T> |
lr(double lr)
This method is deprecated, since all logic was pulled out from this class
|
GloveWeightLookupTable.Builder<T> |
maxCount(double maxCount) |
GloveWeightLookupTable.Builder<T> |
negative(double negative) |
GloveWeightLookupTable.Builder<T> |
seed(long seed) |
GloveWeightLookupTable.Builder<T> |
useAdaGrad(boolean useAdaGrad) |
GloveWeightLookupTable.Builder<T> |
vectorLength(int vectorLength) |
GloveWeightLookupTable.Builder<T> |
xMax(double xMax) |
useHierarchicSoftmax
public GloveWeightLookupTable.Builder<T> maxCount(double maxCount)
public GloveWeightLookupTable.Builder<T> xMax(double xMax)
public GloveWeightLookupTable.Builder<T> cache(VocabCache<T> vocab)
cache
in class InMemoryLookupTable.Builder<T extends SequenceElement>
public GloveWeightLookupTable.Builder<T> negative(double negative)
negative
in class InMemoryLookupTable.Builder<T extends SequenceElement>
public GloveWeightLookupTable.Builder<T> vectorLength(int vectorLength)
vectorLength
in class InMemoryLookupTable.Builder<T extends SequenceElement>
public GloveWeightLookupTable.Builder<T> useAdaGrad(boolean useAdaGrad)
useAdaGrad
in class InMemoryLookupTable.Builder<T extends SequenceElement>
public GloveWeightLookupTable.Builder<T> lr(double lr)
InMemoryLookupTable.Builder
lr
in class InMemoryLookupTable.Builder<T extends SequenceElement>
public GloveWeightLookupTable.Builder<T> gen(org.nd4j.linalg.api.rng.Random gen)
gen
in class InMemoryLookupTable.Builder<T extends SequenceElement>
public GloveWeightLookupTable.Builder<T> seed(long seed)
seed
in class InMemoryLookupTable.Builder<T extends SequenceElement>
public GloveWeightLookupTable<T> build()
build
in class InMemoryLookupTable.Builder<T extends SequenceElement>