mmlspark.core.schema package

Submodules

mmlspark.core.schema.TypeConversionUtils module

mmlspark.core.schema.TypeConversionUtils.complexTypeConverter(name, value, cache)[source]

Type conversion for complex types

Parameters
  • name

  • value

  • cache

Returns

Return type

_java_obj

mmlspark.core.schema.TypeConversionUtils.generateTypeConverter(name, cache, typeConverter)[source]

Type converter

Parameters
  • name (str) –

  • cache

  • typeConverter

Returns

Function to convert the type

Return type

lambda

mmlspark.core.schema.Utils module

class mmlspark.core.schema.Utils.ComplexParamsMixin[source]

Bases: pyspark.ml.util.MLReadable

class mmlspark.core.schema.Utils.JavaMMLReadable[source]

Bases: pyspark.ml.util.MLReadable

(Private) Mixin for instances that provide JavaMLReader.

classmethod read()[source]

Returns an MLReader instance for this class.

class mmlspark.core.schema.Utils.JavaMMLReader(clazz)[source]

Bases: pyspark.ml.util.JavaMLReader

(Private) Specialization of MLReader for JavaParams types

mmlspark.core.schema.Utils.from_java(java_stage, stage_name)[source]

Given a Java object, create and return a Python wrapper of it. Used for ML persistence. Meta-algorithms such as Pipeline should override this method as a classmethod.

Parameters
  • java_stage (str) –

  • stage_name (str) –

Returns

The python wrapper

Return type

object

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.