您当前的位置: 首页 >  网络

段智华

暂无认证

  • 0浏览

    0关注

    1232博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

cs231 神经网络初步之Forwardpropagation 及Backpropagation

段智华 发布时间:2018-10-05 10:57:00 ,浏览量:0

cs231 神经网络初步之Forwardpropagation 及Backpropagation 

神经网络的计算图:

 

from __future__ import print_function

import numpy as np
import matplotlib.pyplot as plt

class TwoLayerNet(object):
  """
  A two-layer fully-connected neural network. The net has an input dimension of
  N, a hidden layer dimension of H, and performs classification over C classes.
  We train the network with a softmax loss function and L2 regularization on the
  weight matrices. The network uses a ReLU nonlinearity after the first fully
  connected layer.

  In other words, the network has the following architecture:

  input - fully connected layer - ReLU - fully connected layer - softmax

  The outputs of the second fully-connected layer are the sc
关注
打赏
1659361485
查看更多评论
立即登录/注册

微信扫码登录

0.0583s