| cos_sim | R Documentation |
Used by the distributed-memory models (minerva2(), todam()): a . b / (||a|| ||b||). Returns 0 (rather than NaN) when either vector has zero
norm, since that just means "no signal yet" for these models (e.g. an
empty memory trace before any training).
cos_sim(a, b)
a, b |
Numeric vectors of the same length |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.