You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Trait for shared param blockSizeInMB (default: 0.0). This trait may be changed or
567
+
* Trait for shared param maxBlockSizeInMB (default: 0.0). This trait may be changed or
568
568
* removed between minor versions.
569
569
*/
570
-
traitHasBlockSizeInMBextendsParams {
570
+
traitHasMaxBlockSizeInMBextendsParams {
571
571
572
572
/**
573
-
* Param for Maximum memory in MB for stacking input data in blocks. Data is stacked within partitions. If more than remaining data size in a partition then it is adjusted to the data size. If 0, try to infer an appropriate value based on the statistics of dataset. Must be >= 0..
573
+
* Param for Maximum memory in MB for stacking input data into blocks. Data is stacked within partitions. If more than remaining data size in a partition then it is adjusted to the data size. If 0, try to infer an appropriate value. Must be >= 0..
574
574
* @group expertParam
575
575
*/
576
-
finalvalblockSizeInMB:DoubleParam=newDoubleParam(this, "blockSizeInMB", "Maximum memory in MB for stacking input data in blocks. Data is stacked within partitions. If more than remaining data size in a partition then it is adjusted to the data size. If 0, try to infer an appropriate value based on the statistics of dataset. Must be >= 0.", ParamValidators.gtEq(0.0))
576
+
finalvalmaxBlockSizeInMB:DoubleParam=newDoubleParam(this, "maxBlockSizeInMB", "Maximum memory in MB for stacking input data into blocks. Data is stacked within partitions. If more than remaining data size in a partition then it is adjusted to the data size. If 0, try to infer an appropriate value. Must be >= 0.", ParamValidators.gtEq(0.0))
Copy file name to clipboardExpand all lines: python/pyspark/ml/param/shared.py
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -599,19 +599,19 @@ def getBlockSize(self):
599
599
returnself.getOrDefault(self.blockSize)
600
600
601
601
602
-
classHasBlockSizeInMB(Params):
602
+
classHasMaxBlockSizeInMB(Params):
603
603
"""
604
-
Mixin for param blockSizeInMB: maximum memory in MB for stacking input data in blocks. Data is stacked within partitions. If more than remaining data size in a partition then it is adjusted to the data size. If 0, try to infer an appropriate value based on the statistics of dataset. Must be >= 0.
604
+
Mixin for param maxBlockSizeInMB: maximum memory in MB for stacking input data into blocks. Data is stacked within partitions. If more than remaining data size in a partition then it is adjusted to the data size. If 0, try to infer an appropriate value. Must be >= 0.
605
605
"""
606
606
607
-
blockSizeInMB=Param(Params._dummy(), "blockSizeInMB", "maximum memory in MB for stacking input data in blocks. Data is stacked within partitions. If more than remaining data size in a partition then it is adjusted to the data size. If 0, try to infer an appropriate value based on the statistics of dataset. Must be >= 0.", typeConverter=TypeConverters.toFloat)
607
+
maxBlockSizeInMB=Param(Params._dummy(), "maxBlockSizeInMB", "maximum memory in MB for stacking input data into blocks. Data is stacked within partitions. If more than remaining data size in a partition then it is adjusted to the data size. If 0, try to infer an appropriate value. Must be >= 0.", typeConverter=TypeConverters.toFloat)
608
608
609
609
def__init__(self):
610
-
super(HasBlockSizeInMB, self).__init__()
611
-
self._setDefault(blockSizeInMB=0.0)
610
+
super(HasMaxBlockSizeInMB, self).__init__()
611
+
self._setDefault(maxBlockSizeInMB=0.0)
612
612
613
-
defgetBlockSizeInMB(self):
613
+
defgetMaxBlockSizeInMB(self):
614
614
"""
615
-
Gets the value of blockSizeInMB or its default value.
615
+
Gets the value of maxBlockSizeInMB or its default value.
0 commit comments