上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 安装tensorflow 1.4.0版本时,因为版本比较低,对应的cuda需要8.0版本,Ubuntu18自带的是cuda10.0,所以需要自行配置很多。 libcudart.so.8.0: cannot open shared object file: No such file or direct 阅读全文
posted @ 2020-12-20 11:33 qiezi_online 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 推荐mobaxterm,xshell7,(windows自带的powershell) 配置个ssh居然配了半天不对,幸亏室友帮助指点一二,才正确(差点蠢哭),总结一下 一、 拿mobaxterm举例:(使用公钥私钥对配对,登录,port和用户名一定要写对啊!血的教训,username使用whoami 阅读全文
posted @ 2020-12-20 00:54 qiezi_online 阅读(267) 评论(0) 推荐(0) 编辑
摘要: lsb_release -a 查看系统版本信息的命令 uname -a 显示全部信息 ,内核版本号、硬件架构、主机名称和操作系统类型等 阅读全文
posted @ 2020-12-19 10:19 qiezi_online 阅读(299) 评论(0) 推荐(0) 编辑
摘要: whereis python 查看已经安装的python的目录 python(回车)或者 python --version (回车),可查看当前默认python版本 alias python='/usr/bin/python3' 修改链接名(根据whereis python下的路径来看) alias 阅读全文
posted @ 2020-12-19 10:18 qiezi_online 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 考虑一个问题:一个python的字典,有1000万个key-value对,新插入1000对键值对,怎么速度才最快 自己测试了一部分代码,慢速的要300秒,加速的只要0.3秒,原因是慢速的代码每次查询非常费时, if k in C14.keys()可能是这句话的问题,改进后使用 defaultdict 阅读全文
posted @ 2020-12-18 20:46 qiezi_online 阅读(1535) 评论(0) 推荐(0) 编辑
摘要: plt.figure() 报错:no display name and no $DISPLAY environment variable 解决方法: import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt 参考: 阅读全文
posted @ 2020-12-16 18:53 qiezi_online 阅读(526) 评论(0) 推荐(0) 编辑
摘要: linux 运行 python test.py 文件出现 SyntaxError: Non-ASCII character '\xe5' in file 的错误, 注意在py文件第一行加上 # -*- coding: utf-8 -*- 就可以解决了。 阅读全文
posted @ 2020-12-16 18:00 qiezi_online 阅读(102) 评论(0) 推荐(0) 编辑
摘要: auc的解释: https://blog.csdn.net/u013385925/article/details/80385873 Gini和AUC的关系(Gini=2AUC-1真的成立吗?): https://blog.csdn.net/dongweionly/article/details/83 阅读全文
posted @ 2020-12-15 16:57 qiezi_online 阅读(826) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.jianshu.com/p/c555113a30ea 简单的,则使用下面方法 filenames.startswith('file') #True filenames.endswith('.txt') s.find("ok") #存在则返回下标,否则返回-1(复杂的建议 阅读全文
posted @ 2020-12-14 18:20 qiezi_online 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 第一种,(推荐) order = ['date', 'time', 'open', 'high', 'low', 'close', 'volumefrom', 'volumeto'] df = df[order] 第二种, df_id = df.id df = df.drop('id',axis=1 阅读全文
posted @ 2020-12-14 17:41 qiezi_online 阅读(737) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页