网站首页 站内搜索

搜索结果

查询Tags标签: w1,共有 33条记录
  • Python 语法基础-w1

    #python 3 1、环境变量引用在Linux环境中,执行python脚本需要预先引入环境变量,环境变量的引入方式有两种  1)/usr/bin/env python --会找默认的python2)/usr/bin/python --会找指定路径的python  一般建议使用第一种,在python多版本控制中,第一种方式会自动查找…

    2021/5/9 12:55:09 人评论 次浏览
  • BP算法简单实例

    # -*- coding: utf-8 -*- import numpy as np def sigmoid(x):#激活函数return 1/(1+np.exp(-x)) input = np.array([[0.35], [0.9]]) #输入数据 w1 = np.array([[0.1, 0.8], [0.4, 0.6]])#第一层权重参数 w2 = np.array([0.3, 0.9])#第二层权重参数real = np.array([[0.5…

    2021/5/7 20:26:47 人评论 次浏览
  • 链式法则

    目录Derivative RulesChain ruleDerivative RulesChain ruleimport tensorflow as tfx = tf.constant(1.) w1 = tf.constant(2.) b1 = tf.constant(1.) w2 = tf.constant(2.) b2 = tf.constant(1.)with tf.GradientTape(persistent=True) as tape:tape.watch([w1, b1, w2,…

    2021/4/15 18:56:00 人评论 次浏览
共33记录«上一页123下一页»
扫一扫关注最新编程教程