psifr.maskers.windows_masker#

psifr.maskers.windows_masker(list_length, window_lags, pool_items, recall_items, pool_output, recall_output, pool_test=None, recall_test=None, test=None, exclude_prev_window=False)#

Yield windows around previous items in the input list.

Parameters:
  • list_length (int) – Number of items in each list.

  • window_lags (array_like) – Serial position lags to include in the window.

  • pool_items (list) – Input position of items available for recall.

  • recall_items (list) – Input position of recalled items, in output position order.

  • pool_output (list) – Output values for pool items. Must be the same order as pool.

  • recall_output (list) – Output values in output position order.

  • pool_test (list, optional) – Test values for items available for recall. Must be the same order as pool.

  • recall_test (list, optional) – Test values for items in output position order.

  • test (callable, optional) –

    Used to test whether individual transitions should be included, based on test values.

    test(prev, curr) - test for included transition

    test(prev, poss) - test for included possible transition

  • exclude_prev_window (bool, optional) – If true, transitions preceded by items in the window around the previous item in the list will be excluded.

Yields:
  • output (int) – Output positions of included transitions. The first transition is 1.

  • prev (list) – Output values for the “from” item in included transitions.

  • curr (list) – Output values for the “to” item in included transitions.

  • poss (list of numpy.ndarray) – Output values for all possible valid “to” items in included transitions.