get_topk_COD | R Documentation |
get top k ids for each row
get_topk_COD(probs, s)
probs |
a matrix where columns are causes; the entries are probabilities of causes |
s |
top s |
data frame; for each row in probs, indicating the top s causes
xx <- matrix(c(0.3,0.1,0.2,0.4,
0.4,0.1,0.3,0.2),nrow=2,ncol=4,byrow=TRUE)
get_topk_COD(xx,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.