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