cymr.operations.present#
- cymr.operations.present(double[:, :] w_fc_exp, const double[:, :] w_fc_pre, double[:, :] w_cf_exp, double[:] c, double[:] c_in, double[:] f, int item, int[:, :] c_ind, double[:] B, double[:] Lfc, double[:] Lcf)#
Present an item and associate with context.
- Parameters:
w_fc_exp – Weight matrix \(\mathbf{M}^{FC}_\mathrm{exp}\).
w_fc_pre – Weight matrix \(\mathbf{M}^{FC}_\mathrm{pre}\).
w_cf_exp – Weight matrix \(\mathbf{M}^{CF}_\mathrm{exp}\).
c – Context state \(\mathbf{c}\).
c_in – Context input \(\mathbf{c}^\mathrm{IN}\).
f – Item representation \(\mathbf{f}\).
item – Index of item to present.
c_ind – Start and end indices of the context sublayer.
B – \(\beta\) parameter.
Lfc – \(L^{FC}\) parameter.
Lcf – \(L^{CF}\) parameter.