主页 返回 进入列表

  • 总根 >计算机与教育 >课程 >高等教育课程 >本科课程 >模式识别与人工智能 >ZSTU-(2020-2021)-1 >学生作业 >2017329621017 陈峻虎

  • 作业八

    from __future__ import print_function

    import tensorflow as tf

    import numpy as np

    import matplotlib.pyplot as plt

     

    def add_layer(inputs, in_size, out_size, activation_function=None):

    # add one more layer and return the output of this layer

    Weights = tf.Variable(tf.random_normal([in_size, out_size]))

    biases = tf.Variable(tf.zeros([1, out_size]) + 0.1)

    Wx_plus_b = tf.matmul(inputs, Weights) + biases

    if activation_function is None:

    outputs = Wx_plus_b

    else:


    全文(Full Article): https://yvsou.com/dc/single.php?groupid=28.218.81608.81609.81613.85931.85932.83187.84844&pid=1338452&startgroup=