Hi,
this is probably due to the affinity textmodel still being work in progress, but with the latest quanteda build, textplot_influence() raises an error for the example from manual:
fitted <- textmodel_affinity(data_dfm_lbgexample, y = c("L", NA, NA, NA, "R", NA))
pred <- predict(fitted)
> textplot_influence(fitted)
Error in textplot_influence.default(fitted) :
textplot_influence() only works on affinity_influence, summary_affinity_influence objects.
> textplot_influence(pred)
Error in textplot_influence.default(pred) :
textplot_influence() only works on affinity_influence, summary_affinity_influence objects.
Or am I using this in the wrong way?
Hi,
this is probably due to the affinity textmodel still being work in progress, but with the latest quanteda build,
textplot_influence()raises an error for the example from manual:Or am I using this in the wrong way?