learn function

Count cue-outcome co-occurences needed to run the Danks equations.

Count cue-outcome co-occurences needed to run the Danks equations.

An internal function to count cue-outcome co-occurrences.

learn(data,RemoveDuplicates,verbose,MaxEvents,addBackground)

Arguments

  • data: A directory where the binary event data files are located.
  • RemoveDuplicates: A logical specifying whether multiple occurrences of a Cue in conjunction with an Outcome shall each be counted as a distinct occurrence of that Cue (FALSE), or only as a single occurrence (TRUE: default).
  • verbose: Display diagnostic messages or not.
  • MaxEvents: The total number of events to learn from before stopping learning. Checked one time per compact data file.
  • addBackground: Option to add background rates.

Details

This function calls an Rcpp function of the same name to process the data in the compact data format.

Returns

A list of two matrices with cue-cue coocurrences and cue-outcome cooccurrences and a vector with background rates.

References

Baayen, R. H. and Milin, P. and Filipovic Durdevic, D. and Hendrix, P. and Marelli, M., An amorphous model for morphological processing in visual comprehension based on naive discriminative learning. Psychological Review, 118, 438-482.

Author(s)

Cyrus Shaoul

Note

No temporary files are used.

Acknowledgements

Thanks to all the testers!

See Also

estimateActivations, ndlCuesOutcomes, estimateWeightsCompact, danks,plurals, serbian

Examples

#None (internal function)
  • Maintainer: Tino Sering
  • License: GPL-3
  • Last published: 2018-09-10

Useful links