- 博客(5)
- 收藏
- 关注
原创 kaldi安装
记录一下kaldi安装过程踩坑 安装步骤 1.进入tools文件目录,执行命令 extras/check_dependencies.sh 显示 all is ok 的话通过,否则按照提示操作 2.执行命令 make 这一步可能会出现 ERROR: cannot verify sourceforge.net's certificate 的错误,查到的原因大概是目标网站的安全证书没有应答。需要把Makefile里面的代码修改一下 在出错行的地方 在 -T 10 -t 1 http://
2020-07-09 19:18:41
584
原创 list、numpy、pandas数据格式转换
list、numpy、pandas数据格式转换 1.list转numpy import numpy as np temp = np.array(list)temp = np.array(list) 2.numpy转list arr = temp.tolist() 3.list转Dataframe import xlwings as xw import pandas as pd name = ...
2018-12-30 16:37:03
5129
原创 numpy常用功能总结
numpy常用功能总结 1.数组重构reshape In [2]: arr=np.arange(16).reshape(2,8) out[2]: In [3]: arr out[3]: array([[ 0, 1, 2, 3, 4, 5, 6, 7], [ 8, 9, 10, 11, 12, 13, 14, 15]]) In [4]: arr.reshape(...
2018-12-30 15:56:20
1767
原创 pandas常用功能总结
pandas常用功能总结 1.输出表格到csv文件 data.to_csv('data.csv',index=None,encoding='utf_8_sig') 其中data是表格数据,index=None表示取消行索引,直接输出后用Excel打开会出现中文乱码,加上encoding='utf_8_sig’就可消除乱码现象 输出为Excel文件同理:data.to_excel(‘data.xl...
2018-12-30 15:55:57
924
原创 Python文件读取
1.写入文件 with open('titles.txt','w',encoding='utf-8') as f: for title in titles: f.write(str(title)+'\n') 2.读文件 2-1 一个常用的读文件的函数 def loadDataSet(fileName): """ 函数说明: (1)该函数块主要用于从原始数...
2018-12-30 15:53:17
192
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人