mmlspark.image package¶
Submodules¶
mmlspark.image.ImageFeaturizer module¶
-
class
mmlspark.image.ImageFeaturizer.
ImageFeaturizer
(cntkModel=None, cutOutputLayers=1, dropNa=True, inputCol=None, layerNames=None, outputCol=None)[source]¶ Bases:
mmlspark.image._ImageFeaturizer._ImageFeaturizer
- Parameters
SparkSession (SparkSession) – The SparkSession that will be used to find the model
ocation (str) – The location of the model, either on local or HDFS
mmlspark.image.ImageSetAugmenter module¶
-
class
mmlspark.image.ImageSetAugmenter.
ImageSetAugmenter
(flipLeftRight=True, flipUpDown=False, inputCol='image', outputCol=None)[source]¶ Bases:
mmlspark.core.schema.Utils.ComplexParamsMixin
,pyspark.ml.util.JavaMLReadable
,pyspark.ml.util.JavaMLWritable
,pyspark.ml.wrapper.JavaTransformer
- Parameters
-
getOutputCol
()[source]¶ - Returns
The name of the output column (default: [self.uid]_output)
- Return type
-
setFlipLeftRight
(value)[source]¶ - Parameters
flipLeftRight (bool) – Symmetric Left-Right (default: true)
-
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)
mmlspark.image.UnrollBinaryImage module¶
-
class
mmlspark.image.UnrollBinaryImage.
UnrollBinaryImage
(height=None, inputCol='image', nChannels=None, outputCol=None, width=None)[source]¶ Bases:
mmlspark.core.schema.Utils.ComplexParamsMixin
,pyspark.ml.util.JavaMLReadable
,pyspark.ml.util.JavaMLWritable
,pyspark.ml.wrapper.JavaTransformer
- Parameters
-
getOutputCol
()[source]¶ - Returns
The name of the output column (default: [self.uid]_output)
- Return type
-
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)
mmlspark.image.UnrollImage module¶
-
class
mmlspark.image.UnrollImage.
UnrollImage
(inputCol='image', outputCol=None)[source]¶ Bases:
mmlspark.core.schema.Utils.ComplexParamsMixin
,pyspark.ml.util.JavaMLReadable
,pyspark.ml.util.JavaMLWritable
,pyspark.ml.wrapper.JavaTransformer
- Parameters
-
getOutputCol
()[source]¶ - Returns
The name of the output column (default: [self.uid]_output)
- Return type
-
setInputCol
(value)[source]¶ - Parameters
inputCol (str) – The name of the input column (default: image)
Module contents¶
MicrosoftML is a library of Python classes to interface with the Microsoft scala APIs to utilize Apache Spark to create distibuted machine learning models.
MicrosoftML simplifies training and scoring classifiers and regressors, as well as facilitating the creation of models using the CNTK library, images, and text.