ClassBalancer¶
-
class
ClassBalancer.
ClassBalancer
(broadcastJoin=True, inputCol=None, outputCol='weight')[source]¶ Bases:
mmlspark.Utils.ComplexParamsMixin
,pyspark.ml.util.JavaMLReadable
,pyspark.ml.util.JavaMLWritable
,pyspark.ml.wrapper.JavaEstimator
Parameters: -
getBroadcastJoin
()[source]¶ Returns: Whether to broadcast the class to weight mapping to the worker (default: true) Return type: bool
-
setBroadcastJoin
(value)[source]¶ Parameters: broadcastJoin (bool) – Whether to broadcast the class to weight mapping to the worker (default: true)
-
setOutputCol
(value)[source]¶ Parameters: outputCol (str) – The name of the output column (default: weight)
-
-
class
ClassBalancer.
ClassBalancerModel
(java_model=None)[source]¶ Bases:
mmlspark.Utils.ComplexParamsMixin
,pyspark.ml.wrapper.JavaModel
,pyspark.ml.util.JavaMLWritable
,pyspark.ml.util.JavaMLReadable
Model fitted by
ClassBalancer
.This class is left empty on purpose. All necessary methods are exposed through inheritance.