电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本
换一换
首页 金锄头文库 > 资源分类 > DOCX文档下载
分享到微信 分享到微博 分享到QQ空间

Jupyter 常见可视化框架的选择_光环大数据培训

  • 资源ID:49707821       资源大小:44.40KB        全文页数:8页
  • 资源格式: DOCX        下载积分:0金贝
快捷下载 游客一键下载
账号登录下载
微信登录下载
三方登录下载: 微信开放平台登录   支付宝登录   QQ登录  
二维码
微信扫一扫登录
下载资源需要0金贝
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
如填写123,账号就是123,密码也是123。
验证码:   换一换

 
账号:
密码:
验证码:   换一换
  忘记密码?
    
1、金锄头文库是“C2C”交易模式,即卖家上传的文档直接由买家下载,本站只是中间服务平台,本站所有文档下载所得的收益全部归上传人(卖家)所有,作为网络服务商,若您的权利被侵害请及时联系右侧客服;
2、如你看到网页展示的文档有jinchutou.com水印,是因预览和防盗链等技术需要对部份页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有jinchutou.com水印标识,下载后原文更清晰;
3、所有的PPT和DOC文档都被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;下载前须认真查看,确认无误后再购买;
4、文档大部份都是可以预览的,金锄头文库作为内容存储提供商,无法对各卖家所售文档的真实性、完整性、准确性以及专业性等问题提供审核和保证,请慎重购买;
5、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据;
6、如果您还有什么不清楚的或需要我们协助,可以点击右侧栏的客服。
下载须知 | 常见问题汇总

Jupyter 常见可视化框架的选择_光环大数据培训

光环大数据光环大数据-大数据培训大数据培训 sns.set(color_codes=True)iris = sns.load_dataset(“iris“)species = iris.pop(“species“)g = sns.clustermap(iris)光环大数据光环大数据-大数据培训大数据培训&人工智能培训人工智能培训http:/hadoop.aura.cn 光环大数据光环大数据 http:/hadoop.aura.cnplotlyplotly 是跨平台 JavaScript 交互式绘图包,由于开发者的核心是javascript,所以整个语法类似于写 json 配置,语法特质也介于陈述式和命令式之间,无服务版本是免费的。有点是学习成本不高,可以很快将语句移植到 javascript 版本;缺点是语言相对繁琐。#plotly 示例 import plotly.plotly as pyimport plotly.graph_objs as go # Add datamonth = 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'high_2000 = 32.5, 37.6, 49.9, 53.0, 69.1, 75.4, 76.5, 76.6, 70.7, 60.6, 45.1, 29.3low_2000 = 13.8, 22.3, 32.5, 37.2, 49.9, 56.1, 57.7, 58.3, 51.2, 42.8, 31.6, 15.9high_2007 = 36.5, 26.6, 43.6, 52.3, 71.5, 81.4, 80.5, 82.2, 76.0, 67.3, 46.1, 35.0low_2007 = 23.6, 14.0, 27.0, 36.8, 47.6, 57.7, 58.9, 61.2, 53.3, 48.5, 31.0, 23.6high_2014 = 28.8, 28.5, 37.0, 56.8, 69.7, 79.7, 78.5, 77.8, 74.1, 62.6, 45.3, 39.9low_2014 = 12.7, 14.3, 18.6, 35.5, 49.9, 58.0, 60.0, 58.6, 51.7, 45.2, 32.2, 29.1 # Create and style tracestrace0 = go.Scatter( x = month, y = high_2014, name = 'High 2014', line = dict( color = ('rgb(205, 12, 24)'), width = 4)trace1 = go.Scatter( x = month, y = low_2014, name = 'Low 2014', line = dict( color = ('rgb(22, 96, 167)'), width = 4,)trace2 = go.Scatter( x = month, y = high_2007, name = 'High 2007', line = dict( color = ('rgb(205, 12, 24)'), width = 4, dash = 'dash') # dash options include 'dash', 'dot', and 'dashdot')trace3 = go.Scatter( x = month, y = low_2007, name = 'Low 2007', line = dict( color = ('rgb(22, 96, 167)'), width = 4, dash = 'dash')trace4 = go.Scatter( x = month, y = high_2000, name = 'High 2000', line = dict( color = ('rgb(205, 12, 24)'), 光环大数据光环大数据-大数据培训大数据培训&人工智能培训人工智能培训http:/hadoop.aura.cn 光环大数据光环大数据 http:/hadoop.aura.cnwidth = 4, dash = 'dot')trace5 = go.Scatter( x = month, y = low_2000, name = 'Low 2000', line = dict( color = ('rgb(22, 96, 167)'), width = 4, dash = 'dot')data = trace0, trace1, trace2, trace3, trace4, trace5 # Edit the layoutlayout = dict(title = 'Average High and Low Temperatures in New York', xaxis = dict(title = 'Month'), yaxis = dict(title = 'Temperature (degrees F)'), ) fig = dict(data=data, layout=layout)py.iplot(fig, filename='styled-line')注意:此框架在 jupyter 中使用需要使用 init_notebook_mode()加载JavaScript 框架。bokehbokeh 是 pydata 维护的比较具有潜力的开源交互可视化框架。值得一说的是,该框架同时提供底层语句和陈述式绘图命令。相对来说语法也比较清楚,但其配置语句依旧有很多可视化框架的问题,就是与陈述式命令不符,没有合理的结构。此外,一些常见的交互效果都是以底层命令的方式使用的,因此如果要快速实现 Dashboard 或者作图时就显得较为不便了。# Bokeh 示例 import numpy as npimport scipy.special from bokeh.layouts import gridplotfrom bokeh.plotting import figure, show, output_file p1 = figure(title=“Normal Distribution (=0, =0.5)“,tools=“save“, background_fill_color=“#E8DDCB“) mu, sigma = 0, 0.5 measured = np.random.normal(mu, sigma, 1000)hist, edges = np.histogram(measured, density=True, bins=50) x = np.linspace(-2, 2, 1000)pdf = 1/(sigma * np.sqrt(2*np.pi) * np.exp(-(x-mu)*2 / (2*sigma*2)cdf = (1+scipy.special.erf(x-光环大数据光环大数据-大数据培训大数据培训&人工智能培训人工智能培训http:/hadoop.aura.cn 光环大数据光环大数据 http:/hadoop.aura.cnmu)/np.sqrt(2*sigma*2)/2 p1.quad(top=hist, bottom=0, left=edges:-1, right=edges1:, fill_color=“#036564“, line_color=“#033649“)p1.line(x, pdf, line_color=“#D95B43“, line_width=8, alpha=0.7, legend=“PDF“)p1.line(x, cdf, line_color=“white“, line_width=2, alpha=0.7, legend=“CDF“) p1.legend.location = “center_right“p1.legend.background_fill_color = “darkgrey“p1.xaxis.axis_label = 'x'p1.yaxis.axis_label = 'Pr(x)' p2 = figure(title=“Log Normal Distribution (=0, =0.5)“, tools=“save“, background_fill_color=“#E8DDCB“) mu, sigma = 0, 0.5 measured = np.random.lognormal(mu, sigma, 1000)hist, edges = np.histogram(measured, density=True, bins=50) x = np.linspace(0.0001, 8.0, 1000)pdf = 1/(x* sigma * np.sqrt(2*np.pi) * np.exp(-(np.log(x)-mu)*2 / (2*sigma*2)cdf = (1+scipy.special.erf(np.log(x)-mu)/(np.sqrt(2)*sigma)/2 p2.quad(top=hist, bottom=0, left=edges:-1, right=edges1:, fill_color=“#036564“, line_color=“#033649“)p2.line(x, pdf, line_color=“#D95B43“, line_width=8, alpha=0.7, legend=“PDF“)p2.line(x, cdf, line_color=“white“, line_width=2, alpha=0.7, legend=“CDF“) p2.legend.location = “center_right“p2.legend.background_fill_color = “darkgrey“p2.xaxis.axis_label = 'x'p2.yaxis.axis_label = 'Pr(x)' p3 = figure(title=“Gamma Distribution (k=1, =2)“, tools=“save“, background_fill_color=“#E8DDCB“) k, theta = 1.0, 2.0 measured = np.random.gamma(k, theta, 1000)hist, edges = np.histogram(measured, density=True, bins

注意事项

本文(Jupyter 常见可视化框架的选择_光环大数据培训)为本站会员(gua****an)主动上传,金锄头文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即阅读金锄头文库的“版权提示”【网址:https://www.jinchutou.com/h-59.html】,按提示上传提交保证函及证明材料,经审查核实后我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。

分享当前资源【Jupyter 常见可视化框架的选择_光环大数据培训】到朋友圈,您即可以免费下载此资源!
微信扫一扫分享到朋友圈
二维码
操作提示:任选上面一个二维码,打开微信,点击“发现”使用“扫一扫”,即可将选择的网页分享到朋友圈
您可能感兴趣的------------------------------------------------------------------------------------------------------



关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.