conftest.py 文件源码

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

项目:aboleth 作者: data61 项目源码 文件源码
def make_image_data():
    """Make some simple data."""
    N = 100
    M = 3
    # N 28x28 RGB float images
    x = expit(RAND.randn(N, 28, 28, 3)).astype(np.float32)
    w = np.linspace(-2.5, 2.5, 28*28*3)
    Y = np.dot(x.reshape(-1, 28*28*3), w) + RAND.randn(N, 1)
    X = tf.tile(tf.expand_dims(x, 0), [M, 1, 1, 1, 1])
    return x, Y, X
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号