UnrollBinaryImage

class UnrollBinaryImage.UnrollBinaryImage(height=None, inputCol='image', nChannels=None, outputCol=None, width=None)[source]

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

Parameters:
  • height (int) – the width of the image
  • inputCol (str) – The name of the input column (default: image)
  • nChannels (int) – the number of channels of the target image
  • outputCol (str) – The name of the output column (default: [self.uid]_output)
  • width (int) – the width of the image
getHeight()[source]
Returns:the width of the image
Return type:int
getInputCol()[source]
Returns:The name of the input column (default: image)
Return type:str
static getJavaPackage()[source]

Returns package name String.

getNChannels()[source]
Returns:the number of channels of the target image
Return type:int
getOutputCol()[source]
Returns:The name of the output column (default: [self.uid]_output)
Return type:str
getWidth()[source]
Returns:the width of the image
Return type:int
classmethod read()[source]

Returns an MLReader instance for this class.

setHeight(value)[source]
Parameters:height (int) – the width of the image
setInputCol(value)[source]
Parameters:inputCol (str) – The name of the input column (default: image)
setNChannels(value)[source]
Parameters:nChannels (int) – the number of channels of the target image
setOutputCol(value)[source]
Parameters:outputCol (str) – The name of the output column (default: [self.uid]_output)
setParams(height=None, inputCol='image', nChannels=None, outputCol=None, width=None)[source]

Set the (keyword only) parameters

Parameters:
  • height (int) – the width of the image
  • inputCol (str) – The name of the input column (default: image)
  • nChannels (int) – the number of channels of the target image
  • outputCol (str) – The name of the output column (default: [self.uid]_output)
  • width (int) – the width of the image
setWidth(value)[source]
Parameters:width (int) – the width of the image