决策树人工智能预测模型

Creating a model is just one step in the journey to real-world AI. Deploying means turning your model — whether it’s in a Jupyter Notebook or a .py file somewhere — into a useable service.

创建模型只是迈向真实世界AI的一步。 部署意味着将您的模型(无论是在Jupyter Notebook还是某个地方的.py文件中)转变为可用的服务。

Simplified AI pipeline. Created by author.
简化的AI管道。 由作者创建。

I won’t discuss containers in-depth, which are separate from deploying and serving models. Container systems, like Docker and Kubernetes (which hosts Docker containers), are like boxes for your models that create reproducible, scalable, and isolated environments where you can set up dependencies so the model works in any execution environment.

我不会深入讨论容器 ,这些容器与部署和提供模型是分开的。 容器系统,例如Docker和Kubernetes(托管Docker容器),就像模型的盒子一样,它们创建可重现,可伸缩和隔离的环境,您可以在其中设置依赖项,从而使模型可以在任何执行环境中使用。

Here are 10 ways to deploy, host, and serve AI models to make predictions.

这里有10种部署,托管和服务AI模型进行预测的方法。

1. Flask的内置服务器 (1. Flask’s Built-in Server)

To preface, Flask’s built-in server isn’t production-grade, as it doesn’t scale. Nonetheless, due to its ease of use, it’s a handy tool for rapid experimentation and quickly getting your model up and running.

首先,Flask的内置服务器不是生产级的,因为它无法扩展。 尽管如此,由于其易用性,它还是一种方便的工具,可用于快速实验并快速启动和运行模型。

To deploy on Flask, follow these general steps:

要在Flask上进行部署,请遵循以下常规步骤:

  • Install Flask

    安装烧瓶

  • Serialize your AI model (e.g. with Pickle or joblib)

    序列化您的AI模型(例如,使用Pickle或joblib )

  • Create another .py file in the same directory as the above serialized model, which will be used to make the web service in Flask在与上述序列化模型相同的目录中创建另一个.py文件,该文件将用于在Flask中制作Web服务
  • Run the .py file from the terminal从终端运行.py文件
  • Check your localhost address to see if it’s working检查您的本地主机地址是否正常
  • Make an http POST call with input data to receive a prediction使用输入数据进行http POST调用以接收预测

This Towards Data Science piece shows an example of deploying a Sklearn model with a Flask API.

迈向数据科学的这一部分展示了一个使用Flask API部署Sklearn模型的示例。

2.云端瓶 (2. Flask in the Cloud)

Running Flask in the cloud will let you achieve greater scalability, though this is more involved than using the built-in server.

在云中运行Flask将使您获得更大的可伸缩性,尽管这比使用内置服务器要复杂得多。

Here are a few cloud servers you can use:

以下是您可以使用的一些云服务器:

  • Deploying Flask on Heroku

    在Heroku上部署Flask

  • Deploying Flask on Google App Engine

    在Google App Engine上部署Flask

  • Deploying Flask on AWS Elastic Beanstalk

    在AWS Elastic Beanstalk上部署Flask

  • Deploying on Azure (IIS)

    在Azure(IIS)上部署

  • Deploying on PythonAnywhere

    在PythonAnywhere上部署

This FreeCodeCamp article does a great job of going into detail about deploying your model with Flask in the cloud.

这篇FreeCodeCamp文章做了很多出色的工作,详细介绍了如何在Flask中将模型部署到云中。

3. AutoML解决方案 (3. AutoML Solutions)

AutoML has been exploding in popularity. Though not the same concept as AI deployment, most AutoML solutions allow easy model deployment, on-top of their core AutoML functionality.

AutoML一直在爆炸式增长。 尽管与AI部署的概念不同,但大多数AutoML解决方案都可以在其核心AutoML功能的基础上轻松进行模型部署。

Overlap of AI deployment solutions and AutoML solutions. Created by author.
AI部署解决方案和AutoML解决方案的重叠。 由作者创建。

Here are some AutoML solutions that enable easy (even one-click) model deployment:

以下是一些AutoML解决方案,可实现简单(甚至一键式)模型部署:

  • Cloud AutoML (this lets you generate predictions with the provided REST API)

    Cloud AutoML (这使您可以使用提供的REST API生成预测)

  • Azure AutoML (this produces a .pkl file that contains the model which you can deploy in Azure)

    Azure AutoML (这将生成一个.pkl文件,其中包含可以在Azure中部署的模型)

  • Apteo (this is a no-code solution that lets you generate predictions in your browser or with an API)

    Apteo (这是一种无代码解决方案,可让您在浏览器中或使用API​​生成预测)

These solutions offer far more than just AI deployment, and can drastically increase the efficiency of a data science team.

这些解决方案不仅提供AI部署,还可以大大提高数据科学团队的效率。

4. Azure机器学习 (4. Azure Machine Learning)

Azure ML focuses on providing enterprise-grade cloud services, though using Microsoft’s servers will obviously cost you.

Azure ML专注于提供企业级云服务,尽管使用Microsoft的服务器显然会花费您。

There are 5 main steps to deploy any model via Azure ML:

通过Azure ML部署任何模型有5个主要步骤 :

  • Gather prerequisites (Azure ML workspace, Azure CLI, trained ML model in the workspace)收集先决条件(Azure ML工作区,Azure CLI,工作区中训练有素的ML模型)
  • Prepare for deployment by creating an inference configuration通过创建推理配置准备部署
  • Create a Docker image using Model.package

    使用Model.package创建Docker映像

  • Deploy the image as a web app将图像作为Web应用程序部署
  • Use the web app by submitting data to the URL and displaying the response通过将数据提交到URL并显示响应来使用Web应用

5. GCP (5. GCP)

There are three main steps to deploying on GCP:

在GCP上进行部署主要包括三个步骤:

  • Upload your model to a Cloud Storage bucket.将模型上传到Cloud Storage存储桶。
  • Create an AI Platform Prediction model resource.

    创建一个AI平台预测模型资源 。

  • Create an AI Platform Prediction version resource, specifying the Cloud Storage path to your saved model.

    创建一个AI Platform Prediction 版本资源 ,指定保存的模型的Cloud Storage路径。

Like Azure, GCP offers enterprise-grade scalability and security, though it requires extensive technical expertise to get running.

与Azure一样,GCP也提供企业级可伸缩性和安全性,尽管它需要广泛的技术知识才能运行。

6. AWS SageMaker (6. AWS SageMaker)

AWS SageMaker provides an HTTPS endpoint for your model, availing it to provide inferences in three steps:

AWS SageMaker为您的模型提供了HTTPS终端节点,可通过以下三个步骤来提供推断:

  • Create the model in SageMaker, including the relevant S3 path and Docker registry path在SageMaker中创建模型,包括相关的S3路径和Docker注册表路径
  • Create an endpoint configuration for an HTTPS endpoint为HTTPS端点创建端点配置
  • Create an HTTPS endpoint创建一个HTTPS端点

7. IBM Watson ML (7. IBM Watson ML)

While AWS, GCP, and Azure are the three giants when it comes to deploying AI in the cloud, IBM’s Watson ML offers a more niche solution, which allows you to dynamically retrain models and auto-generate APIs.

AWS,GCP和Azure是在云中部署AI的三大巨头,而IBM的Watson ML提供了一个更为细分的解决方案,可让您动态地重新训练模型并自动生成API。

IBM offers a great white paper into its services, which expands into ML servers and pipelines more broadly.

IBM在其服务中提供了一份出色的白皮书,该白皮书将更广泛地扩展到ML服务器和管道。

8. Oracle数据科学平台 (8. Oracle Data Science Platform)

Oracle’s Data Science Platform allows teams to build, manage, and deploy models with reproducibility, high security, and a comprehensive model-building environment.

Oracle的数据科学平台使团队可以构建,管理和部署具有可重现性,高安全性和全面的模型构建环境的模型。

9.阿里云 (9. Alibaba Cloud)

Alibaba Cloud offers several methods for deploying models via its Elastic Algorithm Service (EAS), including:

阿里云提供了多种通过其弹性算法服务(EAS)部署模型的方法,包括:

  • Uploading models to the console将模型上传到控制台
  • Using the PAI Studio to deploy models使用PAI Studio部署模型
  • Using DSW to deploy models使用DSW部署模型
  • Using the EASCMD client to deploy models使用EASCMD客户端部署模型

10.渲染 (10. Render)

Render is one of the easier-to-use tools on this list, as it deploys your models directly from GitHub or GitLab. All you need to do is push your code like you normally do.

渲染是此列表中易于使用的工具之一,因为它直接从GitHub或GitLab部署模型。 您需要做的就是像平常一样推送代码。

Fast.AI has a useful guide for deploying a model on Render, showing just how simple it is.

Fast.AI具有在Render上部署模型的有用指南,显示了它的简单性。

结论 (Conclusion)

There’s an ever-growing range of solutions to deploy and serve AI models.

部署和服务AI模型的解决方案范围不断扩大。

If your needs are simple, you might stick with Flask, while if you need enterprise-grade scalability (and have enterprise-level expertise and resources), you might go with AWS, Azure, or GCP.

如果您的需求很简单,则可以坚持使用Flask,而如果您需要企业级的可伸缩性(并且具有企业级的专业知识和资源),则可以使用AWS,Azure或GCP。

If you have more niche needs, you might choose Oracle, IBM, or Alibaba. If you want an end-to-end solution without a ton of hassle, you might choose an AutoML tool.

如果您有更多利基需求,则可以选择Oracle,IBM或Alibaba。 如果您想要一个端到端的解决方案而没有很多麻烦,则可以选择一个AutoML工具。

What do you think — would you add any deployment tools to this list?

您如何看待-您会在此列表中添加任何部署工具吗?

翻译自: https://towardsdatascience.com/10-ways-to-deploy-and-serve-ai-models-to-make-predictions-336527ef00b2

决策树人工智能预测模型


http://www.taodudu.cc/news/show-1873838.html

相关文章:

  • 商业洞察力_正在进行的寻求洞察力和远见卓识
  • 阿里ai布局开始_如何从AI开始?
  • python惰性_如何创建惰性属性以提高Python的性能
  • 如何识别媒体偏见_面部识别技术存在偏见:为什么我们不应该盲目相信新技术
  • 自然语言处理:简单解释
  • ai技术领先的企业_领先企业如何扩展AI
  • 机器学习为什么重要_什么是机器学习? 为什么对您的业务很重要?
  • 数据重塑_人工智能能否重塑全球力量平衡?
  • 平安科技一轮等多久_科技正等着我们成长
  • r语言 生成等差序列_使用序列模型生成自然语言
  • 人工智能火灾报警器_使用AI进行准确的火灾预测
  • ai/ml_您应该在本周(7月11日)阅读有趣的AI / ML文章
  • 西蒙决策_西蒙的象棋因子
  • ai的利与弊 辩论_为什么AI辩论失败了
  • k8s apollo_AI增强的Apollo 16素材让您以4K登上月球
  • ai疾病风险因素识别_克服AI的“蠕动因素”
  • 人工智能的未来是强化学习_多主体强化学习与AI的未来
  • ai人工智能的本质和未来_什么是人工智能,它将如何塑造我们的未来?
  • 日本初创公司Elix正在使用AI研究COVID-19药物
  • ai里怎样取消扩展外观_扩展AI:困难的5个原因
  • 自动化机器人 rpa_机器人过程自动化和机器人的出现
  • 月球 dem_通过“月球灾害”应对错误信息的流行
  • openai-gpt_GPT-3对非技术专业人员意味着什么
  • 自学人工智能途径_成为数据科学家,AI或ML工程师的自学途径
  • 为什么谋生是不道德的
  • 软件蓝图设计_智能企业的设计蓝图
  • 获得学士学位的机器学习工程工作
  • 无人驾驶 ai算法_质疑AI是否具有意图以及这对无人驾驶汽车意味着什么
  • openai-gpt_GPT-3:大惊小怪的是什么?
  • interpretable_Interpretable-AI:监督学习可能失败的地方

决策树人工智能预测模型_部署和服务AI模型进行预测的10种方法相关推荐

  1. 前端开发时间格式的转换方法_开发人员投资时间而不浪费时间的10种方法

    前端开发时间格式的转换方法 In today's, in the past and probably in the future world - the time is more valuable t ...

  2. 人工智能改进传统云ERP的10种方法

    http://blog.itpub.net/31542119/viewspace-2168809/ 随着数字化转型的进程加快,企业开始重新评估ERP的作用.传统ERP经过多年僵硬化定制过于追求生产的一 ...

  3. AI从业者需要应用的10种深度学习方法

    AI从业者需要应用的10种深度学习方法 https://www.cnblogs.com/DicksonJYL/p/9591732.html 摘要:想要了解人工智能,不知道这十种深度学习方法怎么能行? ...

  4. AI模型神预测谁是卡塔尔世界杯冠军

    推荐教程:AI模型神预测谁是冠军 2022年卡塔尔世界杯 猜猜他们是谁?   谁是最后的冠军? 2022年FIFA世界杯已经拉开帷幕,全世界的球迷都热切地想要知道:谁将获得那梦寐以求的 大力神杯? 2 ...

  5. 人工智能 自动化测试_测试中的AI:第三波自动化

    人工智能 自动化测试 敏捷方法论的发展迫使企业进行创新并以闪电般的速度交付. 在交付周期时间减少的同时,提供积极的用户体验并保持竞争优势所需的技术复杂性也在增加,而我们引入引人注目的创新的速度也在增加 ...

  6. python模型训练框架_以Python撰写 AI模型框架

    以Python撰写 AI模型框架 by 高焕堂 1. 前言: 在AI(人工智慧)方面,由于当今的机器学习本质是一种<大数据相关性支撑的>归纳性推理.软体框架的复用(Reuse)性愈高,对于 ...

  7. 首席信息官利用AI提升自身地位的三种方法

    通过组织内利益相关者的视角来理解IT部门的角色,这是明确IT部门可能需要如何转变的有效方法.在很长一段时间里,IT部门都被视为成本中心,主要强调绩效和成本.在过去的10年里,IT部门的作用在许多组织机 ...

  8. 腾讯提出蛋白质研究AI模型,预测准确率刷新纪录,入选Nature子刊

    蛋白质相互作用(PPI)可以说是人体最重要的分子事件之一,事关人体生长发育.新陈代谢,是疾病治疗干预的重要来源,PPI失调会导致癌症等疾病发生,因而该领域也是医药行业关注的研究热点. 为了更好地预测和 ...

  9. 用jsp实现右导航窗格_不想升级操作系统,可以用这三种方法阻止Windows10更新

    微软最近将Windows 10 20H2版发布到了其稳定的发布渠道,由于我们都熟悉微软的历史,因此我们当中许多人还不愿升级到该版本,因为它肯定会存在许多错误和缺陷,但是,微软不允许普通用户停止Wind ...

  10. python语言有几种编程方式_零基础自学python语言,有哪几种方法?龟叔说:这套教程带你入门...

    第一我要说的是:你应该先了解python语言的起源,这句话对于自学python的小白来说,本身就是耍流氓. 我们从根源上分析这个问题,这个问题是(从零基础如何自学python编程)? 我的提取关键字: ...

最新文章

  1. 贪心:Jump Game 跳跃游戏
  2. javascript中两个等号和三个等号的区别
  3. 计算机组成原理精品课程申报书,【计算机科学与技术专业】【毕业设计】计算机组成原理精品课程平台的设计与实现...
  4. hdu4280(最大流)
  5. 1.18.3.Flink Catalog介绍、Catalog 定义、Catalog 的实现、Catalog 使用举例
  6. jsch设置代理_尽管在JSch中设置了STRICT_HOST_CHECKING,但仍获取UnknownHostKey异常
  7. mysql开启事务_MySQL入门之事务(上)
  8. aspnet是前端还是后端_项目开发中无法回避的问题:前端和后端如何合作和并行工作?...
  9. Generator执行步骤浅析
  10. linux优先级队列,Python3 线程优先级队列( Queue)
  11. 【CodeForces - 155C】Hometask (字符串,思维,贪心,熟悉句式)(总结)
  12. Flex 4 NativeWindow 中添加Flex组件(问题很多,尚不完善)
  13. word20161205
  14. 只安装mysql的centos_centos6 只安装mysql client(安装包安装和yum安装mysql)
  15. 解决nohup.out文件过大的方法
  16. 计数排序 | Counting Sort
  17. 存储技术(一)-基本概念和技术发展
  18. 【模式识别1】PCA+FLD人脸识别
  19. Step to UEFI (137) 通过 BGRT 取得当前系统的 LOGO
  20. 用python判断你是青少年还是老年人

热门文章

  1. ActionContext介绍(在Struts2中)
  2. iOS---NSAutoreleasePool自动释放原理及详解
  3. html中label宽度设置、非替换元素和替换元素
  4. 刚刚申请的博客,自己也是新手!
  5. ORM定制的几点注意事项
  6. 深入分析自定义表单验证与Cookies
  7. 传智播客 机器学习基础 学习笔记
  8. Unity 两物体的碰撞 OnTriggerEnter和OnCollisionEnter
  9. Atitit 接口文档法 swaagger法 目录 1. Javadoc法 1 2. (9+条消息)swagger2常用注解说明 - 兴国-为梦想而战 - CSDN博客.html 1 2.1. 首
  10. Atitit 规范标准化的艺术 -----java jsr的实现 目录 1. Atitit jsr规范有多少个 407个。Jsr规范大全 1 2. Atitit jsr规范化分类 attilax总