tbnb 0.1.0
- First R release.
itbnb() formula and matrix interfaces.
- Tb-NB core: log-odds Bayes scoring with Laplace smoothing.
- K-fold cross-validated threshold optimisation against 10
criteria.
- iTb-NB iterative refinement with
mode = "kde" or
mode = "clt".
- P-value extension introduced in Romano (2025, doi:10.1007/978-3-031-96736-8_41):
tbnb_pvalues(fit, type = c("document", "feature"), method = c("clt", "kde")).
summary(fit, pvalues = TRUE) lists the significant
features.
- Optional word-embedding semantic augmentation of the Bag-of-Words
(
tbnb_embedding() — not in the reference
papers).
- S3 methods:
print, summary,
predict, coef, plot.
- Bundled toy dataset
toy_reviews (200 short fictional
hotel reviews).