MultiColumnAdapter

class MultiColumnAdapter.MultiColumnAdapter(baseStage=None, inputCols=None, outputCols=None)[source]

Bases: mmlspark.Utils.ComplexParamsMixin, pyspark.ml.util.JavaMLReadable, pyspark.ml.util.JavaMLWritable, pyspark.ml.wrapper.JavaEstimator

Takes a unary pipeline stage and a list of input/output column pairs and applies the pipeline stage to each column after a fit

Parameters:
  • baseStage (object) – base pipeline stage to apply to every column
  • inputCols (list) – list of column names encoded as a string
  • outputCols (list) – list of column names encoded as a string
getBaseStage()[source]
Returns:base pipeline stage to apply to every column
Return type:object
getInputCols()[source]
Returns:list of column names encoded as a string
Return type:list
static getJavaPackage()[source]

Returns package name String.

getOutputCols()[source]
Returns:list of column names encoded as a string
Return type:list
classmethod read()[source]

Returns an MLReader instance for this class.

setBaseStage(value)[source]
Parameters:baseStage (object) – base pipeline stage to apply to every column
setInputCols(value)[source]
Parameters:inputCols (list) – list of column names encoded as a string
setOutputCols(value)[source]
Parameters:outputCols (list) – list of column names encoded as a string
setParams(baseStage=None, inputCols=None, outputCols=None)[source]

Set the (keyword only) parameters

Parameters:
  • baseStage (object) – base pipeline stage to apply to every column
  • inputCols (list) – list of column names encoded as a string
  • outputCols (list) – list of column names encoded as a string
class MultiColumnAdapter.PipelineModel(java_model=None)[source]

Bases: mmlspark.Utils.ComplexParamsMixin, pyspark.ml.wrapper.JavaModel, pyspark.ml.util.JavaMLWritable, pyspark.ml.util.JavaMLReadable

Model fitted by MultiColumnAdapter.

This class is left empty on purpose. All necessary methods are exposed through inheritance.

static getJavaPackage()[source]

Returns package name String.

classmethod read()[source]

Returns an MLReader instance for this class.