UnrollImage

class UnrollImage.UnrollImage(inputCol='image', outputCol=None)[source]

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

Converts the representation of an m * n pixel image to an m * n vector of double.

The parameter “inputCol” indicates the column containing the image; its default name is “image”. The default name for “outputCol”, which holds the resultant vector is “<uid>_output”.

Parameters:
  • inputCol (str) – The name of the input column (default: image)
  • outputCol (str) – The name of the output column (default: [self.uid]_output)
getInputCol()[source]
Returns:The name of the input column (default: image)
Return type:str
static getJavaPackage()[source]

Returns package name String.

getOutputCol()[source]
Returns:The name of the output column (default: [self.uid]_output)
Return type:str
classmethod read()[source]

Returns an MLReader instance for this class.

setInputCol(value)[source]
Parameters:inputCol (str) – The name of the input column (default: image)
setOutputCol(value)[source]
Parameters:outputCol (str) – The name of the output column (default: [self.uid]_output)
setParams(inputCol='image', outputCol=None)[source]

Set the (keyword only) parameters

Parameters:
  • inputCol (str) – The name of the input column (default: image)
  • outputCol (str) – The name of the output column (default: [self.uid]_output)