摘要: 一、 秘密分享 秘密分享的方式有很多种,我们根据论文《Publicly Verifiable Secret Sharing》中的描述,进行讨论。 \begin{equation}s_{A i}=\left\{\begin{array}{l}\text { randomly chosen in } \ 阅读全文
posted @ 2020-05-11 20:26 金思远 阅读(931) 评论(0) 推荐(0) 编辑
摘要: 一、 百万富翁问题 Two parties Alice and Bob, in possession of private variables i and j respectively, wish to communicate so that Alice can evaluate a functio 阅读全文
posted @ 2020-05-11 16:00 金思远 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: 我们知道对于比特币系统,所有的比特币用户都维护着一条相同的区块链。让这么多人不断地更新区块链的数据,如何才能维持共识与统一呢? 一、 区块的创建 区块中包含区块头和区块体,我们的矿工在开始挖矿时,就将需要写入区块体的交易打包在区块内,随后用不同的nonce去尝试,以获取满足记账权的hash值。 明确 阅读全文
posted @ 2020-03-07 16:28 金思远 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: 一、GRU 首先需要明确的是,GRU出现的时间是在LSTM之后的,其实为了简化LSTM而产生的,由于其简易型,一般都会先进行介绍。 首先来看一下RNN的示意图,如下。这里不做解释。 下图是GRU的示意图,相较于RNN似乎复杂了许多。其只是增加了一个cell来存储需要远程传递的信息以及相应的gate来 阅读全文
posted @ 2020-03-06 22:57 金思远 阅读(733) 评论(0) 推荐(0) 编辑
摘要: 在构建语言模型中,我们需要理解n元模型、架构以及梯度裁剪。 阅读全文
posted @ 2020-03-06 16:39 金思远 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 循环神经网络的前向传播和反向传播。 阅读全文
posted @ 2020-03-06 16:23 金思远 阅读(586) 评论(0) 推荐(0) 编辑
摘要: 一、 算法在训练集外的误差 $E_{o t e}\left(\mathfrak{L}_{a} | X, f\right)=\sum_{h} \sum_{x \in \mathcal{X}-X} P(\boldsymbol{x}) \mathbb{I}(h(\boldsymbol{x}) \neq f 阅读全文
posted @ 2020-03-05 15:29 金思远 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 一、 激活函数 def sigmoid(Z): A = 1/(1+np.exp(-Z)) cache = Z return A, cache def relu(Z): A = np.maximum(0,Z) cache = Z return A, cache 二、 激活函数backward """ 阅读全文
posted @ 2020-03-04 14:16 金思远 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: 一、 创建placeholder def create_placeholders(n_H0, n_W0, n_C0, n_y): """ Creates the placeholders for the tensorflow session. Arguments: n_H0 -- scalar, h 阅读全文
posted @ 2020-03-04 11:38 金思远 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 以下实现参考吴恩达的作业。 一、 padding def zero_pad(X, pad): """ Pad with zeros all images of the dataset X. The padding is applied to the height and width of an im 阅读全文
posted @ 2020-03-02 10:07 金思远 阅读(1451) 评论(0) 推荐(0) 编辑