第21章推薦システム
21.4.1. Model21.4.1 モデル
Let denote the column of the rating matrix, where unknown ratings are set to zeros by default. The neural architecture is defined as:
英語のヒント
を評価行列のの列とする。ここで未知の評価は既定で0とする。ニューラルネットワークの構造は次のように定義される。
(21.4.1)
where and represent activation functions, and are weight matrices, and are biases. Let denote the whole network of AutoRec. The output is the reconstruction of the column of the rating matrix.
英語のヒント
ここでとは活性化関数を表し、とは重み行列、とはバイアスである。をAutoRecのネットワーク全体とする。出力は、評価行列のの列の再構成である。
The following objective function aims to minimize the reconstruction error:
英語のヒント
次の目的関数は、再構成誤差を最小化することを目指す。
(21.4.2)
where means only the contribution of observed ratings are considered, that is, only weights that are associated with observed inputs are updated during back-propagation.
英語のヒント
ここでは、観測された評価の寄与だけを考えることを意味する。つまり、誤差逆伝播のあいだ、観測された入力に結びついた重みだけが更新される。
import mxnet as mx
from mxnet import autograd, gluon, np, npx
from mxnet.gluon import nn
from d2l import mxnet as d2l
npx.set_np()