Package org.apache.spark.ml.feature
Class Word2VecModel.Word2VecModelWriter$
Object
org.apache.spark.ml.feature.Word2VecModel.Word2VecModelWriter$
- Enclosing class:
- Word2VecModel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Word2VecModel.Word2VecModelWriter$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
calculateNumberOfPartitions
(long bufferSizeInBytes, int numWords, int vectorSize) Calculate the number of partitions to use in saving the model.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Word2VecModelWriter$
public Word2VecModelWriter$()
-
-
Method Details
-
calculateNumberOfPartitions
public int calculateNumberOfPartitions(long bufferSizeInBytes, int numWords, int vectorSize) Calculate the number of partitions to use in saving the model. [SPARK-11994] - We want to partition the model in partitions smaller than spark.kryoserializer.buffer.max- Parameters:
bufferSizeInBytes
- Set to spark.kryoserializer.buffer.maxnumWords
- Vocab sizevectorSize
- Vector length for each word- Returns:
- (undocumented)
-