Add dig_itemsets() with dedicated R/C++ mining path and docs/tests wiring - #54
Merged
Conversation
Co-authored-by: beerda <26056018+beerda@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
beerda
September 7, 2026 11:37
View session
beerda
marked this pull request as ready for review
September 7, 2026 11:37
beerda
approved these changes
Sep 7, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #54 +/- ##
==========================================
- Coverage 86.86% 86.75% -0.11%
==========================================
Files 127 129 +2
Lines 6516 6676 +160
==========================================
+ Hits 5660 5792 +132
- Misses 856 884 +28 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds first-class itemset mining alongside existing association-rule mining by introducing
dig_itemsets()and routing it through a dedicated C++ storage/dispatch path. It mirrors thedig_associations()digging flow where appropriate, with itemset-specific API shape and outputs.R API: new
dig_itemsets()surfaceR/dig_itemsets.Rwith itemset-oriented arguments (itemsinstead ofantecedent; noconsequent,min_coverage,min_confidence,contingency_table,threads)..dig()pipeline withcall_function = "dig_itemsets"and itemset semantics (focus = c(),filter_empty_foci = FALSE).itemsetswith call metadata aligned to existing digger APIs.Dispatcher integration (
.dig+ Rcpp entrypoints).dig()dispatch inR/dig.Rto handlecall_function == "dig_itemsets"and calldig_itemsets_().dig_itemsets_insrc/dig.cpp.R/RcppExports.Randsrc/RcppExports.cpp.C++ storage specialization for itemsets
src/dig/ItemsetStorage.h, modeled afterAssocStorage, but storing itemsets as:items(formatted set)supportcountlengthDigItemsetRunnerinsrc/dig.cppto dispatch over the same chain-type strategy as other dig variants.Tests and package docs index updates
tests/testthat/test-dig_itemsets.Rwith basic output, max_results limiting, and argument validation coverage.NAMESPACE.dig_itemsetsto_pkgdown.ymlreference index.Example usage: