cymr.operations.integrate#

cymr.operations.integrate(double[:, :] w_fc_exp, const double[:, :] w_fc_pre, double[:] c, double[:] c_in, double[:] f, int item, int[:, :] c_ind, double[:] B)#

Integrate context input associated with an item into context.

Parameters:
  • w_fc_exp – Weight matrix \(\mathbf{M}^{FC}_\mathrm{exp}\).

  • w_fc_pre – Weight matrix \(\mathbf{M}^{FC}_\mathrm{pre}\).

  • 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.