mixvlmc 0.3.1

This release introduces a class for discrete time series, a new representation of context trees with a LaTeX output integrated with knitr, and fixes numerous bugs. Several changes break compatibility with previous versions, in particular some bug fixes change the models obtained with VLMC with covariates (see the breaking changes below).

Breaking changes

Model representation (with draw())

Estimation and use of models

New features

Discrete time series class (dts)

In order to ease the introduction of multiple time series support, a single discrete time series can now be represented by the dts class, via the dts() function (see issue #76). All functions that use discrete time series now accept objects of this class in addition to simple vectors of a supported type (numeric, factor, character and logical). This applies to model estimation functions such as vlmc() or covlmc(), to model selection functions (e.g. tune_vlmc()) but also to functions that use new data such as loglikelihood() and predict.vlmc().

Model representation (with draw())

A major change of draw() is the support of multiple output formats. This is done via a format parameter. It currently supports:

In addition, the text based model representation has been improved (as per issue #66) as follows:

The result of draw() integrates with knitr (issue #77): in an R Markdown or Quarto document that produces LaTeX (e.g. a PDF document), draw(model, "latex") renders the tree and adds the forest package to the preamble of the document. format() and as.character() give the representation as a character vector.

Minor improvements

Bug fixes

Input validation

VLMC

VLMC with covariates

C++ backend

Documentation

mixvlmc 0.2.2

This is a bug fix release (see issue #79 for the main bugs):

mixvlmc 0.2.1

This release has no visible changes and fixes internal issues:

mixvlmc 0.2.0

Breaking changes

New features

C++ backend

The main major new feature of this version is the inclusion of a C++ implementation of context tree and VLMC construction. A new option mixvlmc.backend can be used to switch globally from the original "R" implementation to the new "C++" back end. A new backend parameter has been added to ctx_tree(), vlmc() and tune_vlmc() to enable local back end selection.

The C++ implementation is significantly faster than the R implementation, at least by a factor 10. While it has been thoroughly tested, it is still considered experimental notably because it does not apply to COVLMC (setting the global option to "C++" has not effect on COVLMC model construction). For context trees and VLMC, results should not depend on the back end, at least within numerical precision. The only notable difference is the ordering of the contexts which differs between back ends: in a call to contexts(), the first context for the R back end will generally not be the first context for the C++ back end.

Other new features

Minor improvements and bug fixes

mixvlmc 0.1.1

mixvlmc 0.1.0