public static class GloVe.Builder<T extends SequenceElement>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
alpha |
protected int |
batchSize |
protected double |
learningRate |
protected int |
maxmemory |
protected boolean |
shuffle |
protected boolean |
symmetric |
protected double |
xMax |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GloVe.Builder<T> |
alpha(double alpha)
Parameter in exponent of weighting function; default 0.75
|
GloVe.Builder<T> |
batchSize(int batchSize)
This parameter specifies batch size for each thread.
|
GloVe<T> |
build() |
GloVe.Builder<T> |
learningRate(double eta)
Initial learning rate; default 0.05
|
GloVe.Builder<T> |
maxMemory(int gbytes)
This method allows you to specify maximum memory available for CoOccurrence map builder.
|
GloVe.Builder<T> |
shuffle(boolean reallyShuffle)
Parameter specifying, if cooccurrences list should be shuffled between training epochs
|
GloVe.Builder<T> |
symmetric(boolean reallySymmetric)
Parameters specifying, if cooccurrences list should be build into both directions from any current word.
|
GloVe.Builder<T> |
xMax(double xMax)
Parameter specifying cutoff in weighting function; default 100.0
|
protected double xMax
protected double alpha
protected double learningRate
protected boolean shuffle
protected boolean symmetric
protected int maxmemory
protected int batchSize
public GloVe.Builder<T> batchSize(int batchSize)
batchSize
- public GloVe.Builder<T> learningRate(double eta)
eta
- public GloVe.Builder<T> alpha(double alpha)
alpha
- public GloVe.Builder<T> maxMemory(int gbytes)
gbytes
- memory limit, in gigabytespublic GloVe.Builder<T> xMax(double xMax)
xMax
- public GloVe.Builder<T> shuffle(boolean reallyShuffle)
reallyShuffle
- public GloVe.Builder<T> symmetric(boolean reallySymmetric)
reallySymmetric
-