python/matlab
文章平均质量分 53
小鱼吃虾米_tt
杂食研究者,学而不精
展开
-
python使用pd.read_csv(),出现错误UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xc8
问题描述:在使用pd.read_csv()读取表格数据时,有"encoding="参数用来描述表格数据采用的编码方式,比较常用的有utf-8,但有时候还是会报错。示例如下:import pandas as pdfile_path = "oracle_log.csv"data = pd.read_csv(file_path, encoding='utf-8')报错内容为:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in posi原创 2021-02-25 15:52:49 · 28723 阅读 · 6 评论 -
jupyter notebook 高效率使用(快捷键)
jupyter notebook 高效率使用两种模式:command mode:按下 Escedit mode:按下 Enter运行当前cell,并移动到下一个cell在一个cell中(在command模式下), Shift + Enter 创建Cell在一个cell中(在command模式下)按下 a,即可在这个cell之前创建一个新的cell;按下 b,即可在...转载 2019-04-01 17:23:33 · 897 阅读 · 0 评论 -
使用matlab 将mat 文件的数据写到txt文件
为了对自己的数据集做标注,推荐使用matlab下自带的标注工具本人使用的是matlab r2016b,标注工具位于matlab 界面的 APPS-> IMAGE PROCESSING AND COMPUTER VISION-> Training Image Labeler本文实现的是将 mat 中的内容按照正样本的标注格式写入txt 文件中。具体实现代码如下:close a...原创 2019-04-28 09:09:31 · 2094 阅读 · 0 评论 -
Ubuntu 下 conda 加速安装pytorch
1.确定自己的CUDA版本cat /usr/local/cuda/version.txt2.建立虚拟环境conda create -n pytorch开启、退出、删除命令:source activate pytorchsource deactivateconda remove -n pytorch --all3.安装pytorchhttps://pytorch.org/ ...原创 2019-06-18 15:32:11 · 3455 阅读 · 0 评论