View source: R/textmodel_affinity.R
influence.predict.textmodel_affinity | R Documentation |
Computes the influence of features on scaled textmodel_affinity applications.
## S3 method for class 'predict.textmodel_affinity' influence(model, subset = !train, ...)
model |
a predicted textmodel_affinity object |
subset |
whether to use all data or a subset (for instance, exclude the training set) |
... |
unused |
influence.lm()
tmot <- textmodel_affinity(quanteda::data_dfm_lbgexample, y = c("L", NA, NA, NA, "R", NA)) pred <- predict(tmot) influence(pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.