Hi,
the documentation for textmodel_NB does not include explanations for the different priors, although this is stated in the arguments:
prior prior distribution on texts; see Details
And loosely related to this: Do you have any recommendations for using cross validation with quanteda textmodels? At the moment I manually split the data into training and testset, but it would be very handy to have a quanteda function for CV.
Edit: I also noticed that for distrubition = 'Bernoulli', the underlying code seems to automatically convert the dfm to binary:
else if (object$distribution == "Bernoulli") {
newdata <- tf(newdata, "boolean")
Nc <- length(object$Pc)
If so, the related suggestion in the documentation could be removed.
Hi,
the documentation for textmodel_NB does not include explanations for the different priors, although this is stated in the arguments:
And loosely related to this: Do you have any recommendations for using cross validation with quanteda textmodels? At the moment I manually split the data into training and testset, but it would be very handy to have a quanteda function for CV.
Edit: I also noticed that for
distrubition = 'Bernoulli', the underlying code seems to automatically convert the dfm to binary:If so, the related suggestion in the documentation could be removed.