microsoft/SynapseML
Simple and Distributed Machine Learning Python Library porting ML algorithms for Spark
SynapseML – Scalable Machine‑Learning for Apache Spark
What it is – SynapseML (formerly MMLSpark) is an open‑source library that extends Apache Spark’s native ML API (SparkML/MLlib) with a large collection of distributed machine‑learning algorithms and utilities. It lets you build, train and serve models at Spark‑scale, whether you run on a single node, a multi‑node cluster, Azure Synapse, Microsoft Fabric, Databricks, EMR, or a local Docker setup.
Key capabilities
- Algorithms at scale – Vowpal Wabbit, LightGBM, Isolation Forest, Conditional KNN, and other classic and modern learners run on Spark without leaving the Spark ecosystem.
- Deep‑learning & ONNX – Import and run hardware‑accelerated ONNX models directly on Spark workers.
- Cognitive Services integration – Call Azure Cognitive Services (vision, language, etc.) from within Spark pipelines, turning cloud AI APIs into massive‑scale data‑parallel operations.
- HTTP on Spark – Treat arbitrary web APIs as Spark transformations, enabling distributed micro‑service orchestration.
- Responsible‑AI tools – Model‑interpretation utilities and bias‑measurement helpers for opaque models.
- Spark Serving – Deploy any Spark computation as a low‑latency web service (sub‑millisecond response times).
- Multi‑language support – APIs are available for Python, R, Scala, Java and .NET, with automatic binding generation.
How you use it
- Pick the right runtime – Choose a Maven coordinate that matches your Spark version (e.g.,
com.microsoft.azure:synapseml_2.12:1.1.3for Spark 3.5 or…_2.13:1.1.3‑spark4.1for Spark 4.1). - Add the package – In notebooks,
spark.jars.packagesor the Databricks library UI; on the command line,--packageswith the Microsoft Maven repo (https://mmlspark.blob.core.windows.net/maven). - Import and build pipelines –
import synapse.mlin PySpark (or the equivalent in Scala/Java) and use the familiar SparkML Estimator/Transformer pattern. - Run at scale – The library automatically distributes computation across the Spark cluster; you can also serve models with Spark Serving.
Typical use cases
- Large‑scale text classification or recommendation using Vowpal Wabbit.
- Gradient‑boosted trees on massive tabular data via LightGBM.
- Real‑time anomaly detection with Isolation Forest.
- Enriching data with Azure Cognitive Services (OCR, sentiment, translation) in a single Spark job.
- Deploying a trained model as a fast HTTP endpoint without extra infrastructure.
Where to start – The project’s website (https://aka.ms/spark) hosts quick‑start notebooks, API docs for Scala and Python, and an academic paper (arXiv 1810.08744) describing the design.
Installation notes – The PyPI package only provides the Python wrapper; you must also load the matching JVM artifact via Maven. Detailed tables in the README show the exact version matrix for Spark, Scala, and Python.
All information above is taken directly from the repository’s README.
Related
- Project
- Project
- Project
- Project
- Project