Description Usage Arguments Value
View source: R/get_attention.R
Get attention heads
1 | attention_heads(model, dataset, n = 100, device = "cpu")
|
model |
the tabtransformer model. |
dataset |
dataset to pass through the model to generate attention heads. |
n |
number of rows to use from the dataset. Default is 100. |
device |
whether to run this on 'cpu' or 'cuda' |
average attention heads as a matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.