SynapseML is an open-source library that adds scalable machine learning APIs on Apache Spark. It fits into SparkML workflows for text, vision, anomaly detection, and related tasks across Python, R, Scala, Java, and .NET.
Overview
SynapseML (formerly MMLSpark) simplifies building large-scale machine learning pipelines on Apache Spark. It offers composable, distributed APIs for tasks such as text analytics, computer vision, anomaly detection, and deep learning, aligned with the SparkML and MLLib API so existing Spark jobs can embed its models.
Training and evaluation can run on single nodes, multi-node clusters, or elastically resized clusters. The library works across Python, R, Scala, Java, and .NET, and its APIs abstract over varied databases, file systems, and cloud data stores so experiments can stay near the data.
Notable capabilities include LightGBM on Spark, ONNX model inference, integration with Microsoft Cognitive Services at scale, HTTP-based distributed orchestration on Spark, isolation forest outlier detection, responsible AI tooling, and Spark Serving to expose computations as low-latency web services. Vowpal Wabbit, CyberML, conditional KNN, and autogenerated Spark bindings for PySpark and SparklyR appear among the feature areas.
Installation pairs a language wrapper with JVM artifacts matched to the Spark runtime and Scala version; PyPI installs alone do not load the JVM side. Options include Microsoft Fabric, Synapse Analytics, Databricks, standalone Python, spark-submit, SBT, Apache Livy on HDInsight, and a pre-built Docker image for evaluation with sample notebooks in the browser.
Key features
- SparkML-compatible pipeline APIs
- LightGBM training on Spark
- ONNX distributed inference
- Cognitive Services at scale
- HTTP integration on Spark
- Isolation Forest outlier detection
- Spark Serving for web endpoints
- Responsible AI utilities
Use cases
- Large-scale text analytics pipelines
- Distributed computer vision workloads
- Anomaly detection on big datasets
- Embedding ML into existing Spark jobs
- Serving Spark computations as APIs