influence.predict.textmodel_affinity: Compute feature influence from a predicted textmodel_affinity...

Description Usage Arguments See Also Examples

View source: R/textmodel_affinity.R

Description

Computes the influence of features on scaled textmodel_affinity applications.

Usage

1
2
## S3 method for class 'predict.textmodel_affinity'
influence(model, subset = !train, ...)

Arguments

model

a predicted textmodel_affinity object

subset

whether to use all data or a subset (for instance, exclude the training set)

...

unused

See Also

influence.lm()

Examples

1
2
3
tmot <- textmodel_affinity(quanteda::data_dfm_lbgexample, y = c("L", NA, NA, NA, "R", NA))
pred <- predict(tmot)
influence(pred)

quanteda.textmodels documentation built on April 6, 2021, 9:06 a.m.