pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

在 Azure ML Studio 中將 pandas 更新到 0.19 版

Updating pandas to version 0.19 in Azure ML Studio(在 Azure ML Studio 中將 pandas 更新到 0.19 版)
本文介紹了在 Azure ML Studio 中將 pandas 更新到 0.19 版的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我真的很想訪問 pandas 0.19 中的一些更新功能,但 Azure ML 工作室使用 pandas 0.18 作為 Anaconda 4.0 捆綁包的一部分.有沒有辦法更新執行 Python 腳本"組件中使用的版本?

解決方案

我提供以下步驟來展示如何在Execute Python Script中更新pandas庫的版本.

第一步:使用virtualenv組件在你的系統中創建一個獨立的python運行環境.請先用命令pip install virtualenv 如果你沒有的話.

如果你安裝成功,你可以在你的 python/Scripts 文件中看到它.

Step2:運行命令創建獨立的python運行環境.

第三步:然后進入創建目錄的Scripts文件夾并激活它(這一步很重要,不要錯過)

請不要關閉此命令窗口并在此命令窗口中使用 pip install pandas==0.19 下載外部庫.

第 4 步:將 Lib/site-packages 文件夾中的所有文件壓縮成一個 zip 包(我這里叫它 pandas - 包)

第 5 步:將壓縮包上傳到 Azure Machine Learning WorkSpace DataSet.

具體步驟請參考

第6步:在Execute Python Script模塊定義方法azureml_main之前,需要去掉舊的pandas 模塊&它的依賴項,然后再次導入 pandas,如下面的代碼.

導入系統將熊貓導入為 pd打印(pd.__version__)del sys.modules['pandas']del sys.modules['numpy']del sys.modules['pytz']del sys.modules['六']del sys.modules['dateutil']sys.path.insert(0, '.\Script Bundle')for td in [m for m in sys.modules if m.startswith('pandas.') or m.startswith('numpy.') or m.startswith('pytz.') or m.startswith('dateutil.') 或 m.startswith('six.')]:del sys.modules[td]將熊貓導入為 pd打印(pd.__version__)# 入口點函數最多可以包含兩個輸入參數:# 參數<dataframe1>:一個pandas.DataFrame# 參數<dataframe2>:一個pandas.DataFramedef azureml_main(dataframe1 = 無,dataframe2 = 無):

然后你可以從日志中看到結果如下,首先打印舊版本0.14.0,然后從上傳的zip文件中打印新版本0.19.0.

[信息] 0.14.0[信息] 0.19.0

您還可以參考以下主題:訪問在 Azure 中使用時間戳的 blob 文件 和通過重置重新加載.

希望對你有幫助.

I would really like to get access to some of the updated functions in pandas 0.19, but Azure ML studio uses pandas 0.18 as part of the Anaconda 4.0 bundle. Is there a way to update the version that is used within the "Execute Python Script" components?

解決方案

I offer the below steps for you to show how to update the version of pandas library in Execute Python Script.

Step 1 : Use the virtualenv component to create an independent python runtime environment in your system.Please install it first with command pip install virtualenv if you don't have it.

If you installed it successfully ,you could see it in your python/Scripts file.

Step2 : Run the commad to create independent python runtime environment.

Step 3 : Then go into the created directory's Scripts folder and activate it (this step is important , don't miss it)

Please don't close this command window and use pip install pandas==0.19 to download external libraries in this command window.

Step 4 : Compress all of the files in the Lib/site-packages folder into a zip package (I'm calling it pandas - package here)

Step 5 :Upload the zip package into the Azure Machine Learning WorkSpace DataSet.

specific steps please refer to the Technical Notes.

After success, you will see the uploaded package in the DataSet List

Step 6 : Before the defination of method azureml_main in the Execute Python Script module, you need to remove the old pandas modules & its dependencies, then to import pandas again, as the code below.

import sys
import pandas as pd
print(pd.__version__)
del sys.modules['pandas']
del sys.modules['numpy']
del sys.modules['pytz']
del sys.modules['six']
del sys.modules['dateutil']
sys.path.insert(0, '.\Script Bundle')
for td in [m for m in sys.modules if m.startswith('pandas.') or m.startswith('numpy.') or m.startswith('pytz.') or m.startswith('dateutil.') or m.startswith('six.')]:
    del sys.modules[td]
import pandas as pd
print(pd.__version__)
# The entry point function can contain up to two input arguments:
#   Param<dataframe1>: a pandas.DataFrame
#   Param<dataframe2>: a pandas.DataFrame
def azureml_main(dataframe1 = None, dataframe2 = None):

Then you can see the result from logs as below, first print the old version 0.14.0, then print the new version 0.19.0 from the uploaded zip file.

[Information]         0.14.0
[Information]         0.19.0

You could also refer to these threads: Access blob file using time stamp in Azure and reload with reset.

Hope it helps you.

這篇關于在 Azure ML Studio 中將 pandas 更新到 0.19 版的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節點)
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 环氧乙烷灭菌器_压力蒸汽灭菌器_低温等离子过氧化氢灭菌器 _低温蒸汽甲醛灭菌器_清洗工作站_医用干燥柜_灭菌耗材-环氧乙烷灭菌器_脉动真空压力蒸汽灭菌器_低温等离子灭菌设备_河南省三强医疗器械有限责任公司 | 废旧物资回收公司_广州废旧设备回收_报废设备物资回收-益美工厂设备回收公司 | 塑料撕碎机_编织袋撕碎机_废纸撕碎机_生活垃圾撕碎机_废铁破碎机_河南鑫世昌机械制造有限公司 | 水平垂直燃烧试验仪-灼热丝试验仪-漏电起痕试验仪-针焰试验仪-塑料材料燃烧检测设备-IP防水试验机 | 压接机|高精度压接机|手动压接机|昆明可耐特科技有限公司[官网] 胶泥瓷砖胶,轻质粉刷石膏,嵌缝石膏厂家,腻子粉批发,永康家德兴,永康市家德兴建材厂 | 成都热收缩包装机_袖口式膜包机_高速塑封机价格_全自动封切机器_大型套膜机厂家 | 酒吧霸屏软件_酒吧霸屏系统,酒吧微上墙,夜场霸屏软件,酒吧点歌软件,酒吧互动游戏,酒吧大屏幕软件系统下载 | 活性炭厂家-蜂窝活性炭-粉状/柱状/果壳/椰壳活性炭-大千净化-活性炭 | 全自动过滤器_反冲洗过滤器_自清洗过滤器_量子除垢环_量子环除垢_量子除垢 - 安士睿(北京)过滤设备有限公司 | 冷油器-冷油器换管改造-连云港灵动列管式冷油器生产厂家 | 微波消解仪器_智能微波消解仪报价_高压微波消解仪厂家_那艾 | 复合肥,化肥厂,复合肥批发,化肥代理,复合肥品牌-红四方 | 变色龙云 - 打包app_原生app_在线制作平台_短链接_ip查询 | 北京公积金代办/租房发票/租房备案-北京金鼎源公积金提取服务中心 | 广州市哲铭油墨涂料有限公司,水性漆生产研发基地 | 小威小说网 - 新小威小说网 - 小威小说网小说搜索引擎 | 胜为光纤光缆_光纤跳线_单模尾纤_光纤收发器_ODF光纤配线架厂家直销_北京睿创胜为科技有限公司 - 北京睿创胜为科技有限公司 | 耐热钢-耐磨钢-山东聚金合金钢铸造有限公司| 酒店品牌设计-酒店vi设计-酒店标识设计【国际级】VI策划公司 | 电机铸铝配件_汽车压铸铝合金件_发动机压铸件_青岛颖圣赫机械有限公司 | 玖容气动液压设备有限公司-气液增压缸_压力机_增压机_铆接机_增压器 | 重庆中专|职高|技校招生-重庆中专招生网| 重庆磨床过滤机,重庆纸带过滤机,机床伸缩钣金,重庆机床钣金护罩-重庆达鸿兴精密机械制造有限公司 | 净化车间_洁净厂房_净化公司_净化厂房_无尘室工程_洁净工程装修|改造|施工-深圳净化公司 | 开业庆典_舞龙舞狮_乔迁奠基仪式_开工仪式-神挚龙狮鼓乐文化传媒 | 【甲方装饰】合肥工装公司-合肥装修设计公司,专业从事安徽办公室、店面、售楼部、餐饮店、厂房装修设计服务 | 重庆轻质隔墙板-重庆安吉升科技有限公司 | 泰国专线_泰国物流专线_广州到泰国物流公司-泰廊曼国际 | 涡轮流量计_LWGY智能气体液体电池供电计量表-金湖凯铭仪表有限公司 | 医院专用门厂家报价-医用病房门尺寸大全-抗菌木门品牌推荐 | 深圳希玛林顺潮眼科医院(官网)│深圳眼科医院│医保定点│香港希玛林顺潮眼科中心连锁品牌 | 媒介云-全网整合营销_成都新闻媒体发稿_软文发布平台 | 杭州中策电线|中策电缆|中策电线|杭州中策电缆|杭州中策电缆永通集团有限公司 | 裹包机|裹膜机|缠膜机|绕膜机-上海晏陵智能设备有限公司 | OpenI 启智 新一代人工智能开源开放平台 | 全自动实验室洗瓶机,移液管|培养皿|进样瓶清洗机,清洗剂-广州摩特伟希尔机械设备有限责任公司 | 电缆桥架生产厂家_槽式/梯式_热镀锌线槽_广东东莞雷正电气 | 美甲贴片-指甲贴片-穿戴美甲-假指甲厂家--薇丝黛拉 | 高温高压釜(氢化反应釜)百科| HEYL硬度计量泵-荧光法在线溶解氧仪-净时测控技术(上海)有限公司 | 化妆品加工厂-化妆品加工-化妆品代加工-面膜加工-广东欧泉生化科技有限公司 |