Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

01

Feed-Forward-Neural Network

[[ 1.40663229 -0.85494722  1.16443209]
 [ 1.99868227 -2.67328285  1.12598685]
 [ 1.48731375 -1.01911847  1.21029006]
 [ 1.15213398 -1.55998636  0.54425216]
 [ 2.03657236 -2.36520637  1.31864512]
 [ 2.23340046 -3.08404013  1.24597028]
 [ 1.49560536 -1.37479342  1.08182005]
 [ 1.23958604 -1.19529964  0.81686411]
 [ 2.38592354 -3.06367859  1.44795461]
 [ 1.70561659 -2.92434904  0.63195006]]

逆伝播

MatMul(行列積)

xWxWの部分について。

xix_iの微分

∂L∂xi=∑j∂L∂yj∂yj∂xi\frac{\partial L}{\partial x_i} = \sum_j \frac{\partial L}{\partial y_j} \frac{\partial y_j}{\partial x_i}

は∂yj∂xi=Wij\frac{\partial y_j}{\partial x_i}=W_{ij}から

\renewcommand{\b} when command \b does not yet exist; use \newcommand

\renewcommand{\b}[1]{\boldsymbol{#1}}
\frac{\partial L}{\partial \b{x}} 
= \frac{\partial L}{\partial \b{y}} \b{W}^T

となる

NNet

<ipython-input-21-322be43cc967>:8: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  t = np.zeros((N*CLS_NUM, CLS_NUM), dtype=np.int)