
Python
Xie_learning
这个作者很懒,什么都没留下…
展开
-
Python创建并保存json文件,支持数据更新保存
import jsonclass Params(): """Class that loads hyperparameters from a json file. Example: ``` params = Params(json_path) print(params.learning_rate) param...原创 2019-04-10 10:58:53 · 12107 阅读 · 0 评论 -
步长为s的二维卷积Python实现
import numpy as npx = np.arange(1, 21).reshape(5, 4)w = np.array([[1, 1], [-1, -1]])def my_conv(input, kernel, s): output_size_0 = int((len(input) - len(kernel)) / s + 1) # 输出结果的第0维长度 o...原创 2019-05-16 10:11:24 · 1695 阅读 · 1 评论