Mr.Z Zone

To Be the Ready Player One In the world

Hidden Markov Model

Viterbi Algorithmn

隐马尔可夫模型 Hidden Markov Model 问题定义 对于HMM模型的解码问题,即给定模型 \(\lambda=(A,B,\Pi)\) 和观测序列 \(O=\{o_1,o_2,..o_t\}\),求最有可能出现的对应的状态序列。 对于这样的问题,当然也可以穷举,但是效率太差这里不做讨论。对于求最优解的问题,很容易想到贪心和动态规划,对于全局最优解的问题,动态规划算法要更加...

Hidden Markov Model

Forward and backward Algorithm

隐马尔可夫模型 Hidden Markov Model 问题定义 评估观测序列概率,即给定模型 \(\lambda=(A,B,\Pi)\) 和观测序列 \(O=\{o_1,o_2,..o_t\}\),计算在模型下观测序列出现的概率$$P(O \lambda)$$ 解决方案 以继续以上文天气作为例子 穷举法 穷举出所有可...

Hidden Markov Model

隐马尔可夫模型 Hidden Markov Model 隐马尔可夫模型的定义与三个问题,对应三个解决方法 Definetion 对于一个HMM,假设Q是所有可能的隐藏状态的集合,V是所有可能观测状态的集合及 \[Q=\{ q_1,q_2,...,q_N \} \ \ \ \ V=\{v_1,v_2,...,v_M\}\] 其中N是所有的隐藏状态数,M是所有观测状态数量。 ...

About Attention

All About Attention Hierarchical Attention Network for Document Classification Attention is All You Need 文章为个人理解+笔记233 Hierarchical Attention Network for Document Classification 基于层级注意...

Linear Regression

Linear Regression 参考: https://blog.yaodataking.com/2017/02/28/machine-learning-2/ https://zhuanlan.zhihu.com/p/30535220 https://zhuanlan.zhihu.com/p/28408516 理论总结: Linear ...

DecisionTree and RandomForest

DecisionTree And RandomForest DecisionTree 划分标准 我们都知道在ID3,和C4.5决策树中,都是基于信息论来对选取最优特征的,那么这个信息熵的计算公式为什么是这样的?下面介绍信息熵公式的产生 信息量 信息量是对信息的度量,就跟时间的度量是秒一样,当我们考虑一个离散的随机变量x的时候,当我们观察到的这个变量的一个具体值的时候,我们接...

MongoDB Introduction

MongoDB Introduction Author: Zreal 曾令泽 Student_ID: 1120162062 Platform: Mac OS Install MongoDB 可参考官方文档 但是在参考官方文档的过程中出现了问题,在键入 1 $ mongod --config /usr/local/etc/mongod.conf 长时间没有反...

MapRedcue Programming in JAVA

MapReduce Programming Example Author: Zreal 曾令泽 Student_ID: 1120162062 Platform: MAC OS Introduction To Mapreduce API 连接hdfs 1 2 3 4 5 6 7 private static Configuration conf = new Co...

HBase shell操作及JAVA编程

HBase shell命令行操作及JAVA API编程 Author: Zreal 曾令泽 Student_ID:1120162062 Platform: Mac OS Install HBase on Mac OS 参考: https://www.jianshu.com/p/510e1d599123 https://hbase.apache.or...

利用Google Test进行测试

Sofeware Testing Experient Author: Zreal 曾令泽 Student ID:1120162062 Platform:MAC OS / Clion Testing Framework:Google Test Requirement 要求编写一个复数类,要求有4条。一是有构造函数,能对复数初始化。二是对复数c1,c2,c3…....