small_mlp.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:learning-tf 作者: unixpickle 项目源码 文件源码
def make_data(num):
    """
    Make data allocates num samples with input dimension
    3 and output dimension of 1.
    """
    inputs = np.random.normal(size=[3, num])
    targets = np.cbrt(np.square(2.5*inputs[0:1, :]) -
                      inputs[1:2, :] * inputs[2:3, :])
    return inputs, targets
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号