Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

摘要: 1、获取线程ID(线程是操作系统中最小的调度单位) import threading t = threading.currentThread() #线程ID print('Thread id : %d' % t.ident) #线程NAME print('Thread name : %s' % t. 阅读全文
posted @ 2022-12-28 10:12 365/24/60 阅读(195) 评论(0) 推荐(0)
摘要: Openfst 弧的2个标注分别表示:消耗的输入、发出的输出,希腊字母<epsion>表示沿弧的空输入或空输出 FSM(Finite State Machines,有限状态机) 有限个状态 同一时刻只能处于同一个状态 不同状态可以互相转换 ==> 状态是无序的 FSA(Finite State ac 阅读全文
posted @ 2022-12-05 23:50 365/24/60 阅读(545) 评论(0) 推荐(0)
摘要: 默认安装方式 https://www.boost.org,官网下载 ***.tar.gz 离线安装包 sh ./bootstrap.sh 安装 ./b2 install 指定安装目录方式 https://www.boost.org,官网下载 ***.tar.gz 离线安装包 sh ./bootstr 阅读全文
posted @ 2022-11-24 15:19 365/24/60 阅读(651) 评论(0) 推荐(0)
摘要: Git创建分支、diff代码、回退版本、撤回代码,学废了吗 Git学废了吗 阅读全文
posted @ 2022-11-23 15:21 365/24/60 阅读(665) 评论(0) 推荐(1)
摘要: np.mean(n:array , axis=..|-1),axis=0|-1则squeeze第0维,axis默认返回所有数据均值 阅读全文
posted @ 2022-11-20 00:04 365/24/60 阅读(39) 评论(0) 推荐(0)
摘要: 引入,在使用kaldi语音识别框架时,碰到 import scipy.cluster.vq as vq (centroids, labels) = vq.kmeans2(data, self.K, minit="points", iter=100) 距离类型 1.欧式距离 2.曼哈顿距离 3.切比雪 阅读全文
posted @ 2022-11-18 13:58 365/24/60 阅读(307) 评论(0) 推荐(0)
摘要: Xshell中文显示乱码 查看远程服务器编码locale,查看语言环境 设置utf-8即可 阅读全文
posted @ 2022-11-17 11:47 365/24/60 阅读(58) 评论(0) 推荐(0)
摘要: HMM算法python实现 基础介绍,后5项为基础5元素 Q = ['q0', 'q1', 'q2', 'q3'] # 状态集合 States,共 N 种状态 V = ['v0', 'v1'] # 观测集合 Observations,共 M 种观测值 I = [ 'i{}'.format(i) for i in range(5 阅读全文
posted @ 2022-11-14 14:33 365/24/60 阅读(65) 评论(0) 推荐(0)
摘要: C++整理 编译 将目标文件预处理、汇编、编译并链接形成可执行文件 g++ xxx 默认输出 a.out g++ xxx -o yyy 指定输出到 yyy 数据变量 数组 vector容器使用: #include vectora 创建一个动态数组a,a的默认初值为0 vectorb(a) 将a中的元素复制到b中 阅读全文
posted @ 2022-11-07 20:51 365/24/60 阅读(35) 评论(0) 推荐(0)
摘要: 模型保存一般是在epoch结束时保存一次,但这样会存在随机性,可能epoch结束波动比较大,通过在单个epoch中平均多次提升模型鲁棒性 以下为 model_avg 计算过程,通过直接修改 model_avg.state_dict()中storage部分值对应的地址,达到修改model_avg目的 阅读全文
posted @ 2022-10-12 17:57 365/24/60 阅读(61) 评论(0) 推荐(0)
摘要: linux启动后台服务:nohup sh *** >your_log 2>&1 & 在shell脚本中,默认情况下,总是有三个文件处于打开状态,标准输入(键盘输入)、标准输出(输出到屏幕)、标准错误(也是输出到屏幕),它们分别对应的文件描述符是0,1,2 。 > 默认为标准输出重定向,与 1> 相同 阅读全文
posted @ 2022-10-10 13:21 365/24/60 阅读(57) 评论(0) 推荐(0)
摘要: 前端面试、ES6、Typescript 阅读全文
posted @ 2022-10-03 15:14 365/24/60 阅读(387) 评论(0) 推荐(2)
摘要: linuix 编译 开发 阅读全文
posted @ 2022-09-28 23:11 365/24/60 阅读(706) 评论(0) 推荐(0)
摘要: python解释器位置、常见优化 阅读全文
posted @ 2022-09-24 15:03 365/24/60 阅读(626) 评论(0) 推荐(0)
摘要: c++编写模块头文件 阅读全文
posted @ 2022-09-24 14:12 365/24/60 阅读(235) 评论(0) 推荐(0)
摘要: from scipy.signal import correlate aa = np.arange(0,6) bb = np.arange(1,7) correlate(aa , bb) 由上述式子得,可以利用correlate计算aa与bb的相关性 correlate用来计算1-D序列的相关性,类 阅读全文
posted @ 2022-09-03 15:34 365/24/60 阅读(1476) 评论(0) 推荐(0)
摘要: class WSOLA(object): def __init__(self, fs, speech_rate, shiftms=10): self.fs = fs # tensor self.speech_rate = speech_rate # 16000 self.shiftms = shif 阅读全文
posted @ 2022-08-31 21:36 365/24/60 阅读(98) 评论(0) 推荐(0)
摘要: 虚拟机使用 阅读全文
posted @ 2022-07-27 13:41 365/24/60 阅读(232) 评论(0) 推荐(0)
摘要: DeepLearning 使用Float、Complex数据类型,而不使用Int、Long等类型 Int64(即Long类型): -2^64 ~ 2^63-1 Float64: 12位(阶数11位、符号一位)、52位(尾数) -(2^52)^1024 ~ (2^51-1)^1024 Complex: 阅读全文
posted @ 2022-06-20 16:13 365/24/60 阅读(190) 评论(0) 推荐(0)
摘要: conda相关操作 conda是一个python包管理器及环境管理器 创建conda环境:conda create -n YourEnviromentName python=3.6指定版本 激活环境:source active 环境名称, 激活默认环境:source default 当前环境名。实际 阅读全文
posted @ 2022-06-02 16:17 365/24/60 阅读(101) 评论(0) 推荐(0)