synapse.ml.io.image package

Submodules

synapse.ml.io.image.ImageUtils module

synapse.ml.io.image.ImageUtils.readFromPaths(df, pathCol, imageCol='image')[source]

Reads images from a column of filenames

Parameters
  • df (DataFrame) – The DataFrame to be processed

  • pathCol (str) – The name of the column containing filenames

  • imageCol (str) – The name of the added column of images

Returns

The dataframe with loaded images

Return type

df

synapse.ml.io.image.ImageUtils.readFromStrings(df, bytesCol, imageCol='image', dropPrefix=False)[source]

Reads images from a column of filenames

Parameters
  • df (DataFrame) – The DataFrame to be processed

  • pathCol (str) – The name of the column containing filenames

  • imageCol (str) – The name of the added column of images

Returns

The dataframe with loaded images

Return type

df

Module contents

SynapseML is an ecosystem of tools aimed towards expanding the distributed computing framework Apache Spark in several new directions. SynapseML adds many deep learning and data science tools to the Spark ecosystem, including seamless integration of Spark Machine Learning pipelines with Microsoft Cognitive Toolkit (CNTK), LightGBM and OpenCV. These tools enable powerful and highly-scalable predictive and analytical models for a variety of datasources.

SynapseML also brings new networking capabilities to the Spark Ecosystem. With the HTTP on Spark project, users can embed any web service into their SparkML models. In this vein, SynapseML provides easy to use SparkML transformers for a wide variety of Microsoft Cognitive Services. For production grade deployment, the Spark Serving project enables high throughput, sub-millisecond latency web services, backed by your Spark cluster.

SynapseML requires Scala 2.12, Spark 3.0+, and Python 3.6+.