public static class Word2VecModel.Word2VecModelWriter$
extends Object
| Modifier and Type | Field and Description |
|---|---|
static Word2VecModel.Word2VecModelWriter$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
| Constructor and Description |
|---|
Word2VecModelWriter$() |
| Modifier and Type | Method and Description |
|---|---|
int |
calculateNumberOfPartitions(long bufferSizeInBytes,
int numWords,
int vectorSize)
Calculate the number of partitions to use in saving the model.
|
public static final Word2VecModel.Word2VecModelWriter$ MODULE$
public int calculateNumberOfPartitions(long bufferSizeInBytes,
int numWords,
int vectorSize)
bufferSizeInBytes - Set to spark.kryoserializer.buffer.maxnumWords - Vocab sizevectorSize - Vector length for each word