• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

MMLSpark: MMLSpark ,即 Microsoft Machine Learning for Apache Spark ,是微软开 ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

MMLSpark

开源软件地址:

https://gitee.com/mirrors/MMLSpark

开源软件介绍:

SynapseML

Synapse Machine Learning

Build Status codecov Gitter

Release Notes Scala Docs PySpark Docs Academic Paper

Version Snapshot Version

SynapseML (previously MMLSpark) is an open source library to simplify the creation of scalable machine learning pipelines.SynapseML builds on Apache Spark and SparkML to enable new kinds ofmachine learning, analytics, and model deployment workflows.SynapseML adds many deep learning and data science tools to the Spark ecosystem,including seamless integration of Spark Machine Learning pipelines with the Open Neural Network Exchange(ONNX),LightGBM,The Cognitive Services,Vowpal Wabbit, andOpenCV. These tools enable powerful and highly-scalable predictive and analytical modelsfor a variety of datasources.

SynapseML also brings new networking capabilities to the Spark Ecosystem. With the HTTP on Spark project, userscan embed any web service into their SparkML models.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.2+, and Python 3.6+.See the API documentation forScala and forPySpark.

Table of Contents

Features

Vowpal Wabbit on SparkThe Cognitive Services for Big DataLightGBM on SparkSpark Serving
Fast, Sparse, and Effective Text AnalyticsLeverage the Microsoft Cognitive Services at Unprecedented Scales in your existing SparkML pipelinesTrain Gradient Boosted Machines with LightGBMServe any Spark Computation as a Web Service with Sub-Millisecond Latency
HTTP on SparkONNX on SparkResponsible AISpark Binding Autogeneration
An Integration Between Spark and the HTTP Protocol, enabling Distributed Microservice OrchestrationDistributed and Hardware Accelerated Model Inference on SparkUnderstand Opaque-box Models and Measure Dataset BiasesAutomatically Generate Spark bindings for PySpark and SparklyR
Isolation Forest on SparkCyberMLConditional KNN
Distributed Nonlinear Outlier DetectionMachine Learning Tools for Cyber SecurityScalable KNN Models with Conditional Queries

Documentation and Examples

For quickstarts, documentation, demos, and examples please see our website.

Setup and installation

Python

To try out SynapseML on a Python (or Conda) installation you can get Sparkinstalled via pip with pip install pyspark. You can then use pyspark as inthe above example, or from python:

import pysparkspark = pyspark.sql.SparkSession.builder.appName("MyApp") \            .config("spark.jars.packages", "com.microsoft.azure:synapseml_2.12:0.9.5") \            .getOrCreate()import synapse.ml

SBT

If you are building a Spark application in Scala, add the following lines toyour build.sbt:

libraryDependencies += "com.microsoft.azure" % "synapseml_2.12" % "0.9.5"

Spark package

SynapseML can be conveniently installed on existing Spark clusters via the--packages option, examples:

spark-shell --packages com.microsoft.azure:synapseml_2.12:0.9.5pyspark --packages com.microsoft.azure:synapseml_2.12:0.9.5spark-submit --packages com.microsoft.azure:synapseml_2.12:0.9.5 MyApp.jar

This can be used in other Spark contexts too. For example, you can use SynapseMLin AZTK by adding it to the.aztk/spark-defaults.conffile.

Databricks

To install SynapseML on the Databrickscloud, create a new library from Mavencoordinatesin your workspace.

For the coordinates use: com.microsoft.azure:synapseml_2.12:0.9.5with the resolver: https://mmlspark.azureedge.net/maven. Ensure this library isattached to your target cluster(s).

Finally, ensure that your Spark cluster has at least Spark 3.2 and Scala 2.12. If you encounter Netty dependency issues please use DBR 10.1.

You can use SynapseML in both your Scala and PySpark notebooks. To get started with our example notebooks import the following databricks archive:

https://mmlspark.blob.core.windows.net/dbcs/SynapseMLExamplesv0.9.5.dbc

Apache Livy and HDInsight

To install SynapseML from within a Jupyter notebook served by Apache Livy the following configure magic can be used. You will need to start a new session after this configure cell is executed.

Excluding certain packages from the library may be necessary due to current issues with Livy 0.5.

%%configure -f{    "name": "synapseml",    "conf": {        "spark.jars.packages": "com.microsoft.azure:synapseml_2.12:0.9.5",        "spark.jars.excludes": "org.scala-lang:scala-reflect,org.apache.spark:spark-tags_2.12,org.scalactic:scalactic_2.12,org.scalatest:scalatest_2.12"    }}

In Azure Synapse, "spark.yarn.user.classpath.first" should be set to "true" to override the existing SynapseML packages.Note that Azure Synapse is currently on spark 3.1, hence this custom version should be used on Spark 3.1 clusters.

%%configure -f{  "name": "synapseml",  "conf": {      "spark.jars.packages": "com.microsoft.azure:synapseml_2.12:0.9.5-13-d1b51517-SNAPSHOT",      "spark.jars.repositories": "https://mmlspark.azureedge.net/maven",      "spark.jars.excludes": "org.scala-lang:scala-reflect,org.apache.spark:spark-tags_2.12,org.scalactic:scalactic_2.12,org.scalatest:scalatest_2.12",      "spark.yarn.user.classpath.first": "true"  }}

Docker

The easiest way to evaluate SynapseML is via our pre-built Docker container. Todo so, run the following command:

docker run -it -p 8888:8888 -e ACCEPT_EULA=yes mcr.microsoft.com/mmlspark/release

Navigate to http://localhost:8888/ in your web browser to run the samplenotebooks. See the documentation for more on Docker use.

To read the EULA for using the docker image, run \docker run -it -p 8888:8888 mcr.microsoft.com/mmlspark/release eula

GPU VM Setup

SynapseML can be used to train deep learning models on GPU nodes from a Sparkapplication. See the instructions for setting up an Azure GPUVM.

Building from source

SynapseML has recently transitioned to a new build infrastructure.For detailed developer docs please see the Developer Readme

If you are an existing synapsemldeveloper, you will need to reconfigure yourdevelopment setup. We now support platform independent development andbetter integrate with intellij and SBT.If you encounter issues please reach out to our support email!

R (Beta)

To try out SynapseML using the R autogenerated wrappers see ourinstructions. Note: This feature is still under developmentand some necessary custom wrappers may be missing.

Papers

Learn More

Contributing & feedback

This project has adopted the Microsoft Open Source Code of Conduct. For moreinformation see the Code of Conduct FAQ or contact[email protected] with any additionalquestions or comments.

See CONTRIBUTING.md for contribution guidelines.

To give feedback and/or report an issue, open a GitHubIssue.

Other relevant projects

Apache®, Apache Spark, and Spark® are either registered trademarks ortrademarks of the Apache Software Foundation in the United States and/or othercountries.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
faceDetect: 基于opencv3的人脸检测发布时间:2022-03-24
下一篇:
face_detect: 基于dlib,opencv的人脸识别项目发布时间:2022-03-24
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap