powered by
Computes the influence of features on scaled textmodel_affinity applications.
# S3 method for predict.textmodel_affinity influence(model, subset = !train, ...)
a predicted textmodel_affinity object
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)
Run the code above in your browser using DataLab