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])








  • 相关阅读:
    NET領域模型(1)
    oracle 函數索引(1)
    oracle 動態SQL(1)
    WF事件驱动(5)
    WF事件驱动(3)
    WF事件驱动(4)
    HP LoadRunner 11.00 新鲜尝
    Tomcat配置优化要点
    WebSphere性能诊断与调优
    性能测试工具、监控工具
  • 原文地址:https://www.cnblogs.com/fireae/p/3769582.html
Copyright © 2011-2022 走看看