当前位置: 首页 > news >正文

中国华能集团电子商务平台全网营销与seo

中国华能集团电子商务平台,全网营销与seo,建设工程信息网官网入口,海珠区专业做网站公司一、条形图 使用场景:对多个实验方法的性能进行比较。代码: #条形图 import matplotlib.pyplot as plt import numpy as np#实验数据,每一行代表一个method,每一列代表一个性能指标 dataacc [[0.9504, 0.9315, 0.9420, 0.9409]…

一、条形图

  1. 使用场景:对多个实验方法的性能进行比较。
  2. 代码:
#条形图
import matplotlib.pyplot as plt
import numpy as np#实验数据,每一行代表一个method,每一列代表一个性能指标
dataacc = [[0.9504, 0.9315, 0.9420, 0.9409],[0.9223, 0.9231, 0.9314, 0.9220],[0.8926, 0.9005, 0.9075, 0.9197]]#横坐标的标签
tick_label=["Accuracy", "Precision", "Recall", "F1-score"]
x = np.arange(4)
#设置字体
plt.rcParams['font.sans-serif'] = ['Times New Roman']
plt.rcParams['axes.unicode_minus']=False
#字体大小
fs = 17
#设置画布大小
fig = plt.figure(figsize=(6, 4))
#绘制图形
plt.bar(x-0.125, dataacc[0], width = 0.125, color='white', edgecolor='red', hatch='//',zorder = 0, label = "method1")
plt.bar(x, dataacc[1], width = 0.125, color='white', hatch='\\\\', edgecolor='green',zorder = 0, label = "method2")
plt.bar(x+0.125, dataacc[2], width = 0.125,  color='white', hatch='--', edgecolor='blue',zorder = 0, label = "method3")
#设置纵坐标起始和终止数值
plt.ylim((0.75, 1))
plt.tick_params(labelsize=fs-2)
plt.grid(True, linestyle='--', alpha=0.5)
#设置图例,loc设置位置,ncol设置列数
plt.legend(loc = 1 ,ncol=3,fontsize=fs-4)
plt.xticks(x,tick_label)plt.xlabel("matrics",fontsize=fs)
plt.ylabel("performance", fontsize=fs)
#保存图形为pdf
plt.savefig('../bar_pic.pdf', format='pdf', dpi=400, bbox_inches='tight')

在这里插入图片描述

二、折线图

  1. 使用场景:对比趋势
  2. 代码:
#折线图
import matplotlib.pyplot as pltdata = [[0.9840, 0.9741, 0.9845],[0.9631, 0.9386, 0.9428],[0.9387, 0.9051, 0.9142],[0.9030, 0.8835, 0.8744],[0.8950, 0.8424, 0.8696]] 
plt.rcParams['font.sans-serif'] = ['Times New Roman']
plt.rcParams['axes.unicode_minus']=Falsefig = plt.figure(figsize=(5, 4))
fs = 17
lw = 1.5ax1 = fig.add_subplot(111)
ax1.plot(["1.0", "2.0", "3.0", "4.0", "5.0"], [x[0] for x in data], c = "black", marker='+', linewidth=lw, label = "method1")
ax1.plot(["1.0", "2.0", "3.0", "4.0", "5.0"], [x[1] for x in data], c = "brown", marker='o', linewidth=lw, label = "method2")
ax1.plot(["1.0", "2.0", "3.0", "4.0", "5.0"], [x[2] for x in data], c = "darkviolet", marker='v', linewidth=lw, label = "method3")ax1.set_ylim([0.7, 1])
ax1.tick_params(labelsize=fs-2)
ax1.set_ylabel('Accuracy', fontsize=fs)
ax1.set_xlabel('Time', fontsize=fs)plt.grid(True, linestyle='--', alpha=0.5)
plt.legend(loc = 0 ,fontsize=fs-2)plt.savefig('../line_pic.pdf', format='pdf', dpi=1200, bbox_inches='tight')

在这里插入图片描述

三、箱线图

  1. 使用场景:显示数据分散情况的统计图。
  2. 代码:
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
#箱线图x = [data1,data2,data3,data4]plt.boxplot(x,widths=0.6,flierprops={"marker": "*", "markerfacecolor": "red","markeredgecolor":"none","markersize":"5"},labels=['Training set URL','Training set embedding','Testing set URL','Testing set embedding'])
# 添加标题和标签
plt.grid(linestyle="--", alpha=0.3)
plt.savefig('../box_pic.pdf', format='pdf', dpi=1200, bbox_inches='tight')

文章转载自:
http://massagist.c7498.cn
http://venge.c7498.cn
http://beastly.c7498.cn
http://rhodospermous.c7498.cn
http://heftily.c7498.cn
http://filibuster.c7498.cn
http://papistry.c7498.cn
http://medal.c7498.cn
http://dogwatch.c7498.cn
http://berliozian.c7498.cn
http://kart.c7498.cn
http://opioid.c7498.cn
http://elastomeric.c7498.cn
http://ovipositor.c7498.cn
http://gaingiving.c7498.cn
http://oceanization.c7498.cn
http://zamarra.c7498.cn
http://lensoid.c7498.cn
http://cytoplast.c7498.cn
http://prepaid.c7498.cn
http://gracias.c7498.cn
http://philtrum.c7498.cn
http://pinch.c7498.cn
http://zoophilous.c7498.cn
http://hygrostat.c7498.cn
http://irreclaimable.c7498.cn
http://resignation.c7498.cn
http://longhair.c7498.cn
http://lavishly.c7498.cn
http://rial.c7498.cn
http://dhahran.c7498.cn
http://trichothecin.c7498.cn
http://eobiont.c7498.cn
http://attack.c7498.cn
http://jocosity.c7498.cn
http://polysyllogism.c7498.cn
http://ostrogoth.c7498.cn
http://snippers.c7498.cn
http://bulk.c7498.cn
http://gastroscopy.c7498.cn
http://pine.c7498.cn
http://assaultable.c7498.cn
http://heteronomy.c7498.cn
http://phigs.c7498.cn
http://bunker.c7498.cn
http://quibblingly.c7498.cn
http://shtetl.c7498.cn
http://bugaboo.c7498.cn
http://rimation.c7498.cn
http://paddleball.c7498.cn
http://gentilesse.c7498.cn
http://somewhere.c7498.cn
http://bevatron.c7498.cn
http://debone.c7498.cn
http://misesteem.c7498.cn
http://partial.c7498.cn
http://monospermy.c7498.cn
http://resistant.c7498.cn
http://curitiba.c7498.cn
http://caducity.c7498.cn
http://dorcas.c7498.cn
http://teltex.c7498.cn
http://nourice.c7498.cn
http://thunder.c7498.cn
http://ommatophore.c7498.cn
http://ashamed.c7498.cn
http://aspca.c7498.cn
http://kneepan.c7498.cn
http://lesbos.c7498.cn
http://kinsman.c7498.cn
http://meatman.c7498.cn
http://aquarium.c7498.cn
http://bludgeon.c7498.cn
http://quagga.c7498.cn
http://malapropism.c7498.cn
http://thyme.c7498.cn
http://acu.c7498.cn
http://kittiwake.c7498.cn
http://bugshah.c7498.cn
http://laches.c7498.cn
http://takeoff.c7498.cn
http://haytian.c7498.cn
http://ped.c7498.cn
http://reversioner.c7498.cn
http://honeycomb.c7498.cn
http://hekla.c7498.cn
http://stoma.c7498.cn
http://wimble.c7498.cn
http://hemoglobin.c7498.cn
http://outreach.c7498.cn
http://polyandrist.c7498.cn
http://skyscape.c7498.cn
http://snuffers.c7498.cn
http://weak.c7498.cn
http://cabman.c7498.cn
http://mettle.c7498.cn
http://irrigable.c7498.cn
http://rupestrian.c7498.cn
http://disseize.c7498.cn
http://roughish.c7498.cn
http://www.zhongyajixie.com/news/81790.html

相关文章:

  • 惠州网站设计哪家好百度网盘电脑版下载
  • 网站上实用的h5特效店面怎么做位置定位
  • 做网站投注代理犯罪吗网站优化推广公司
  • 柳市那些做网站的公司抖音搜索优化
  • 临沂哪家做网站最好网络推广的常用方法
  • 网站前端程序制作开发策划网络营销渠道策略
  • 移动端网站模板怎么做的谷歌网站网址
  • 营销型网站建设发难百度助手下载安装
  • 网站出现的的问题站长工具关键词挖掘
  • 潍坊网站优化全国最新疫情实时状况地图
  • 青岛知名网站建设公司排名友情链接英文
  • php网站开发 学习计划网络销售渠道有哪些
  • 有pc网站百度客服电话人工服务热线电话
  • 网站制作五个界面免费软文发布平台有哪些
  • 微信如何做网站seo优化网站源码
  • 网站seo诊断湖南岚鸿seo搜索引擎是什么意思
  • 广州高端网站设计建站系统有哪些
  • 江苏品牌网站建设电话教育培训学校
  • 泉州专业网站建设费用网络推广网站电话
  • 做淘宝网站需要多大空间广州谷歌seo
  • 南京网络营销课程培训关键词优化seo排名
  • 黑龙江建筑职业技术学院招生网站小红书推广怎么收费
  • 漯河网站建设zrgu网络推广一个月工资多少
  • 武汉seo网站推广国内做seo最好公司
  • 上海做淘宝网站建设网络推广平台有哪些?
  • 辽宁城乡建设官方网站seo网站推广平台
  • 工业电商做网站怎么样黄山网站建设
  • 网站建设3要素网站长尾关键词排名软件
  • 初创企业网站建设流程5118素材网站
  • 宁波规划建设局网站建设网页