- 博客(10)
- 收藏
- 关注
原创 2021-10-10
Python 如何将中文写入csv文件import unicodecsv as ucsvdata = [[u"列1", u"列2"], [u"内容1", u"内容2"]]with open(‘test.csv’, ‘wb’) as f:w = ucsv.writer(f, encoding = ‘gbk’)w.writerows(data)
2021-10-10 22:47:27
149
原创 2021-08-10
a=0b=[]c=0d=[]for i in 周:if i==周1:a=a+1b=b.append(a)c=c+7total_sum=销量[c-7:c].sum()d=d.append(total_sum)python实现循环计算周销量
2021-08-10 09:53:05
147
原创 2021-08-03
str_content = “hello886”str_pattern = re.compile(r".*[0-9]$")if str_pattern.match(str_content):print(“是以数字结尾,内容为:%s” % str_content)else:print(“不是以数字结尾,内容为:%s” % str_content)
2021-08-03 11:47:55
91
原创 2021-07-29
虚拟机换了无线网环境,ping 不通百度我尝试了两种方法解决:1.虚拟机连接方式为桥接,重启虚拟机2.ifconfig 192.168.1.7 比如我的windows主机ipv4是192.168.1.6这样做是为了保持同一ip段位
2021-07-29 21:29:46
75
原创 ARIMA宁波港集装箱吞吐量预测
上一篇讲到差分的地方,这一篇将还原差分的结果ts = ts[log_recover.index] # 过滤没有预测的记录plt.figure(facecolor='white')log_recover.plot(color='blue',marker="o", markersize="4",label='拟合值')ts.plot(color='red',marker="x", markersize="4",label='真实值')plt.legend(loc='best',fontsize=15)
2020-05-09 17:09:33
703
原创 随机森林(RandomForest,RF)网格搜索法调参
当你读到这篇博客,那么你肯定知道手动调参是多么的低效。那么现在我来整理一下近几日学习的笔记,和大家一起分享学习这个知识点。
2019-03-27 11:06:51
30912
6
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人