zoukankan      html  css  js  c++  java
  • theano入门教程1.2

    theano入门教程1.2

    1. 两个矩阵相加


    import theano.tensor as T

    from theano import function


    x = T.dmatrix('x')

    y = T.dmatrix('y')

    z = x + y

    f = function([x,y], z)

    f([2,3], [4,5])


    2 .logistic function


    import theano.tensor as T

    from theano import function

    x = T.dmatrix('x')

    s = 1/ (1 + T.exp(-x))

    logistic = function([x], s)

    logistic([1, 2])








  • 相关阅读:
    html----有关图像
    前端开发初学者
    angular js 正序倒叙
    viewpager无线轮播获取网络图片
    angular js 球星
    angular js shopping
    angular js 公告墙
    Android 常用正则表达式
    Android 内存泄漏
    TCP/IP,必知必会的
  • 原文地址:https://www.cnblogs.com/fireae/p/3769582.html
Copyright © 2011-2022 走看看