Recent Releases of arules

arules -

arules 1.7-11 (05/28/2025)

Changes

  • dissimilarity(): The parameter which is now replaced with the logical items.
  • dissimilarity(): Added cross-dissimilarity calculation for Euclidean distances. Dissimilarities are now computed on the sparse itemMatrix objects and tests were added.
  • We use now the built-in Rchkmemcpy and Rchkmemset.

- R
Published by mhahsler 9 months ago

arules - arules 1.7-10

Changes

  • Improved documentation for apriori and eclat. Make clear that a logical matrix is needed.

Bug Fix

  • R 4.5.0 changes the pointers for 0-length objects which is problematic with older implementations of memcpy and some sanitizers. I added the solution used in r-lib/rlang provided by aitap (https://github.com/r-lib/rlang/pull/1797). The bug was originally reported by MichaelChirico.

- R
Published by mhahsler 10 months ago

arules - arules_1.7-9

arules 1.7-9 (12/14/2024)

Internal Changes

  • C code: Legacy variable length arrays in structs use now C99 syntax so that UBSAN's static analysis does not report a non-existing out-of-bounds violation.

arules 1.7-8 (08/21/2024)

Changes

  • Updated tests for testthat edition 3.

Internal Changes

  • Disable internal ngCMatrix subsetting code which has issues with R-devel. We use now subsetting provided by package Matrix which is almost as fast.
  • Disable internal code for rowSums and colSums for ngCMatrix.
  • Internal code for t for ngCMatrix is now only used internally.
  • The custom code and the exported symbols are now deprecated and will be removed in the next major release.

Bugfixes

  • Fixed 'Error in .basicRuleMeasure(..) unused argument (complement = TRUE)' reported by bachnguyen-tomo.
  • Added package anchors in man pages for ngCMatrix-class.

arules 1.7-7 (11/28/2023)

Changes

  • is.significant gained parameter reuse. The default for adjust was changed to "none."
  • improved some error messages.
  • Added Wikipedia links to measures.md.
  • Added interest measure LIC.

Bugfixes

  • Fixed appearance code for fim4r (reported by mytarmail).

- R
Published by mhahsler about 1 year ago

arules -

arules 1.7-6 (03/23/2023)

Changes

  • Improved the interface for fim4r. support and confidence now uses [0, 1]; added verbose and origialSupport.

Bugfixes

  • eclat and apriori now use the next smaller representable double for minsupp to make sure that >= minsupp works.

arules 1.7-5 (10/20/2022)

Bugfixes

  • discretize(): dig.lab is now correctly passed on to cut() (reported by LectronPusher).
  • Fixed C prototype warnings

- R
Published by mhahsler almost 3 years ago

arules -

arules 1.7-4 (8/16/2022)

Changes

  • We install now the latest version of fim4r
  • Changes in coercion for Matrix 1.4-2

Bugfix

  • eclat() now correctly returns frequent itemsets when all have exactly minsupport (reported by GauthierMagnin).

- R
Published by mhahsler over 3 years ago

arules -

Changes

  • Manual pages are now created using roxygen2.
  • support() uses now explicit arguments instead of control.
  • ruleInduction() uses now explicit arguments instead of control.

New Feature

  • Added interface to fim4r algorithms.

- R
Published by mhahsler about 4 years ago

arules - arules

Bugfixes

  • Fixed some C issues: unsigned int in bitmat.c (function static int _exists) to ensure bit shifting works. The bitmap support buffer is now initialized with zeros.

- R
Published by mhahsler over 4 years ago

arules -

arules 1.7-0 (11/12/2021)

New Feature

  • Constructors and conversion

    • constructor transactions() can now also create transactions from data in long format (tid, item).
    • rules and itemsets have now a constructor.
    • toLongFormat converts transactions into a long format data.frame.
  • Interest measures

    • interestMeasure for rules has now measure "table" which returns the contingency table.
    • new interest measure "riskRatio" was added.
    • interestMeasure for contingency table-based measures now accept the additional parameter smoothCounts which is added to each count to avoid counts of zero (Laplace smoothing).
    • new method for stats confint to calculate confidence intervals for some interest measures added.
    • is_redundant can now also use confidence intervals to determine statistical redundancy.
    • removed option "chiSquared" from crossTable.
  • Mining algorithms

    • apriori and eclat gain ... additional arguments are now added to the parameter list.
    • added new function is.generators to find itemset generators.
    • apriori and eclat now store the call in the info slot of the created associations.

Changes

  • we use now a better check for installed suggested packages.
  • inspect uses now a space after the comma.
  • interestMeasures: reuse = TRUE now only reuses the basic measures of "support", "confidence", "coverage" and "lift". All other measures are recalculated to account for possible differences in additional parameters.
  • set methods are now also exported as S3 methods using package generics so they do not conflict with tidyverse (dplyr).

Bug Fixes

  • fixed mistake in the man page for weclat. The weight column needs to be called weight (reported by Alexander Ruth).
  • frequent itemsets now do not report "transIdenticalToItemsets" (reported by galadrielbriere).
  • fixed read.transactions reading in single format with a header from a connection. The first item is no longer dropped.

- R
Published by mhahsler over 4 years ago

arules -

New Feature

  • transactions have now a constructor function called transactions().
  • Added new method compatible() to itemMatrix to check if the item coding is compatible between two objects.
  • c() now produces a warning if two itemMatrices with different itemCoding are combined.
  • encode and recode accept now for itemLabels also objects with an itemLabels method.
  • recode is now also available for associations (itemsets and rules).

Changes

  • recode: parameter match is now deprecated. Use itemLabels

Bug Fixes

  • fixed addAggregate problem with character (reported by javiercoh).

- R
Published by mhahsler almost 5 years ago

arules -

New Features

  • Added interest measure confidence boost (boost) with help from Jens Harbers, Cordes & Graefe KG.

Bug Fixes

  • interest measure improvement now does not produce inf values if no subset rule can be found.

- R
Published by mhahsler almost 5 years ago

arules -

New Features

  • added interestMeasure rhsSupport.
  • added interestMeasure stdLift.
  • addComplement now adds variables and levels to indicate what items are complments.

Changes

  • apriori and eclat now by default also reports coverage (ext defaults to TRUE and lhs.support is now called coverage).
  • addComplement now adds variables and levels itemInfo.
  • discretize now drops non-unique breaks with a warning (instead of producing an error).

Bug Fixes

  • DATAFRAME now works if itemsetInfo is empty.
  • interestMeasure hyperlift now works without specifying transactions.
  • Changed c() to as.integer() for factors (R has changed).

- R
Published by mhahsler almost 6 years ago

arules -

New Features

  • improved speed for calculating interestMeasures for rules and itemsets with no available quality information or reuse = FALSE.
  • Manual pages for associations were improved with examples for itemCoding.
  • MAnual page for interestMeasures is now linked with the associated web page.
  • interest measure laplace (Laplace confidence) gained parameter k for the number of classes.

Bug Fixes

  • read.transactions: Parameter encoding is now correctly passed on to scan (reported by Sisi-Wiciel).
  • interestMeasure was not calculating count for itemsets (reported by clcazer).
  • removed the duplicated interest measure: "descriptiveConfirm" use "confirmedConfidence" instead.

- R
Published by mhahsler almost 6 years ago

arules -

Bug Fixes

  • Fixed rounding bug affecting is.closed (reported by clcazer).
  • Fixed TYPO in Ralambondrainy Measure (reported by andreijl).

- R
Published by mhahsler over 6 years ago

arules -

New Features

  • read.transactions gained parameter header to read files with column headers.

Bug Fixes

  • Fixed PROTECT placement in C code discovered by rchk.
  • S4 objects use now show instead of print.

- R
Published by mhahsler almost 7 years ago

arules -

New Features

  • discretizeDF now understands the method "none" which skips discretization.
  • discretizeDF now reports which column produces the problem.

Changes

  • transactions: numeric columns are now discretized during coersion using discretizeDF (with a warning).

Bug Fixes

  • The spurious warning for reaching maxlen in apriori is now removed (reported by Ryan J. Cole).
  • Fixed matrix check in function dissimilarity.

- R
Published by mhahsler about 7 years ago

arules -

Bug Fixes

  • discretize now handles NAs in equal frequency (reported by yarik1988).
  • interestMeasure: fixed error when an itemset/rules object of length 0 is provided.

New Features

  • rules and itemsets gained a method for nitems.

- R
Published by mhahsler almost 8 years ago

arules -

Major Changes

  • discretize: the default method is now "frequency" and categories was renamed breaks to be consistent with cut in R-base.

New Features

  • Added interest measure "importance".
  • Added method items for transactions.
  • Added discretizeDF to apply discretization to all numeric columns in a data.frame.

Bug Fixes

  • Fixed typo in inspect for tidLists (reported by Carlos Chavarria).
  • Fixed bug in %in% for itemMatrix (reported by Henrique Lemos)

- R
Published by mhahsler almost 8 years ago

arules -

New Features

  • Added (absolut support) "count" as an interest measure.
  • itemLabels can now be assigned for rules and itemsets.

Bug Fixes

  • Fixed bug in subset with signature itemMatrix, itemMatrix (reported by rwdvc).
  • Fixed pointer punning warning.

- R
Published by mhahsler about 8 years ago

arules -

New Features

  • Improved speed for read.transactions with format = "single" significantly.
  • Appearance for apriori now guesses the default parameter automatically and does some more checking, making the specification of templates easier.

Bug Fixes

  • Fixed null pointer in error message code.
  • head does now not result in an error for empty rule sets (bug reported by cornejom).

- R
Published by mhahsler over 8 years ago

arules -

New Features

  • apriori and eclat return now count (absolute support count) in the quality data.frame.
  • Added %oin% to find transactions/itemsets that ONLY contain certain items.

Bug Fixes

  • Improved PROTECT placement in C source code.
  • itemMeasures for single rules/itemssets now returns a proper data.frame (reported by lordbitin).
  • itemMeasures: Added missing parentheses in kappa calculation and fixed equation for least contradiction (reported by Feng Chen).

- R
Published by mhahsler over 8 years ago

arules - arules 1.5-2

New Features from arules 1.5-2

  • apriori: maxtime = 0 disables the time limit.
  • is.subset/is.superset uses now fast and memory efficient C code for sparse computation (contributed by Ian Johnson). sparse = TRUE is now the default. Note that the result is now a sparse matrix.

New Features from arules 1.5-1

  • Added interest measure maxConf.
  • is.significant now supports in addition to Fisher's exact test, the chi-squared test.
  • interest measures Fisher's exact test and chi-squared (using significance = TRUE) can now produce p-values for substitutes (with complements = FALSE).
  • Added function DATAFRAME for more control over coercion to data.frame (e.g., use separate columns for LHS and RHS of rules).

- R
Published by mhahsler almost 9 years ago

arules -

Changes in version 1.5-0 (09/23/2016)

  • IMPORTANT CHANGE: apriori uses now a time limit set in parameter with maxtime. The default is 5 seconds. Running out of time or maxlen results in a warning. The warning for low absolute support was removed.
  • is.redundant now also marks rules with the same confidence as redundant.
  • plot for associations and transactions produces now a better error/warning message.
  • improved argument check for %pin%. Warns now for multiple patterns (was an error) and give an error for empty pattern.
  • inspect prints now consistently the index of rules/itemsets using brackets and starting from 1.

- R
Published by mhahsler over 9 years ago

arules -

Changes in version 1.4-2 (08/06/2016)

  • Bugfix: is.redundant returned !is.redundant (reported by brisbia)
  • Duplicate items when coercing from list to transactions are now removed with a warning.

- R
Published by mhahsler over 9 years ago

arules -

Changes in version 1.4-1 (04/10/2016)

  • added tail method for associations.
  • added/fixed encoding for read.transactions
  • Bugfix for interestMeasure. Mutual information is now calculated correctly (reported by ddessommes).

- R
Published by mhahsler almost 10 years ago

arules -

Changes in version 1-4-0 (03/18/2016) - The transaction class lost slot transactionInfo (we use the itemsetInfo slot now). Note that you may have to rebuild some transaction sets if you are using transactionInfo. - Bugfix for combining item matrices with 0 rows (reported by C. Buchta)
- Bugfix for itemLabel recoding in is.subset (reported by sjain777). - Bugfix for NAMESPACE export for %in% - is.redundant: fixed and performance improvement. - interestMeasure: performance improvement for "improvement" measure. - sort: speed up sort by always sorting NAs last. - head: added method head for associations for getting the best rules according to an interest measure faster than sorting all the associations first. - Groceries: fixed typo in dataset. - abbreviate is now a S4 generic with S4 methods.

- R
Published by mhahsler almost 10 years ago

arules -

  • we now require R 2.3.0 so cbind in Matrix works.
  • is.maximal is now also available for rules.
  • added is.significant for rules (uses Fishers exact test with correction).
  • added is.redundant for rules.
  • added support for multi-level analysis (aggregate).
  • APparameter: confidence shows now NA for frequent itemsets.

- R
Published by mhahsler about 10 years ago