摘要: #encoding=utf8import randomimport numpy as npimport mathdef sigmoid(x): return 1. / (1 + np.exp(-x))def sigmoid_derivative(values): return values*(1-v 阅读全文
posted @ 2019-03-30 23:08 程简单 阅读(491) 评论(0) 推荐(0) 编辑
摘要: #encoding=utf8import numpy as npfrom lstm import LstmParam, LstmNetworkclass ToyLossLayer: """ Computes square loss with first element of hidden layer 阅读全文
posted @ 2019-03-30 22:57 程简单 阅读(495) 评论(0) 推荐(0) 编辑