摘要: import numpy as np def tanh(x): #双曲函数 return np.tanh(x) def tanh_deriv(x):#更新权重时,需要用到双曲函数的倒数 return 1.0 - np.tanh(x)*np.tanh(x) def logistic(x):#构建逻辑函 阅读全文
posted @ 2020-04-16 20:26 程式交易 阅读(218) 评论(0) 推荐(0) 编辑