public static class InMemoryLookupTable.Builder<T extends SequenceElement>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.nd4j.linalg.api.rng.Random |
gen |
protected double |
lr |
protected double |
negative |
protected long |
seed |
protected boolean |
useAdaGrad |
protected boolean |
useHS |
protected int |
vectorLength |
protected VocabCache<T> |
vocabCache |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InMemoryLookupTable<T> |
build() |
InMemoryLookupTable.Builder<T> |
cache(VocabCache<T> vocab) |
InMemoryLookupTable.Builder<T> |
gen(org.nd4j.linalg.api.rng.Random gen) |
InMemoryLookupTable.Builder<T> |
lr(double lr)
Deprecated.
|
InMemoryLookupTable.Builder<T> |
negative(double negative) |
InMemoryLookupTable.Builder<T> |
seed(long seed) |
InMemoryLookupTable.Builder<T> |
useAdaGrad(boolean useAdaGrad) |
InMemoryLookupTable.Builder<T> |
useHierarchicSoftmax(boolean reallyUse) |
InMemoryLookupTable.Builder<T> |
vectorLength(int vectorLength) |
protected int vectorLength
protected boolean useAdaGrad
protected double lr
protected org.nd4j.linalg.api.rng.Random gen
protected long seed
protected double negative
protected VocabCache<T extends SequenceElement> vocabCache
protected boolean useHS
public InMemoryLookupTable.Builder<T> useHierarchicSoftmax(boolean reallyUse)
public InMemoryLookupTable.Builder<T> cache(@NonNull VocabCache<T> vocab)
public InMemoryLookupTable.Builder<T> negative(double negative)
public InMemoryLookupTable.Builder<T> vectorLength(int vectorLength)
public InMemoryLookupTable.Builder<T> useAdaGrad(boolean useAdaGrad)
@Deprecated public InMemoryLookupTable.Builder<T> lr(double lr)
lr
- public InMemoryLookupTable.Builder<T> gen(org.nd4j.linalg.api.rng.Random gen)
public InMemoryLookupTable.Builder<T> seed(long seed)
public InMemoryLookupTable<T> build()