Package org.apache.spark.ml.feature
Class Word2VecModel.Word2VecModelWriter$
Object
org.apache.spark.ml.feature.Word2VecModel.Word2VecModelWriter$
- Enclosing class:
- Word2VecModel
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Word2VecModel.Word2VecModelWriter$Static reference to the singleton instance of this Scala object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcalculateNumberOfPartitions(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- 
calculateNumberOfPartitionspublic 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.max
- numWords- Vocab size
- vectorSize- Vector length for each word
- Returns:
- (undocumented)
 
 
-