pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/R-nimble



Module Name:    pkgsrc
Committed By:   mef
Date:           Sat Mar 11 10:05:26 UTC 2023

Modified Files:
        pkgsrc/math/R-nimble: Makefile distinfo

Log Message:
(math/R-nimble)  Updated 0.12.2 to 0.13.1

(From: nimble/inst/NEWS.md)
#                            CHANGES IN VERSION 0.13.1 (December 2022)

## BUG FIXES

- Fix bug in MCMC sampler inclusion/exclusion of predictive nodes from
  target node dependencies (PR #1248).

#                            CHANGES IN VERSION 0.13.0 (November 2022)

## USER LEVEL CHANGES

- Thoroughly revamp handling of predictive nodes in MCMC sampling. If MCMC
results identical to previous versions of NIMBLE are needed in models with
posterior predictive nodes, set
`nimbleOptions(MCMCusePredictiveDependenciesInCalculations = TRUE)`
and `nimbleOptions(MCMCorderPosteriorPredictiveSamplersLast = FALSE)`.

    -- MCMC samplers, by default, will now exclude predictive dependencies
    from internal sampler calculations.  This can be reverted to the old behavior
    of including predictive dependencies in calculations using
    `nimbleOptions(MCMCusePredictiveDependenciesInCalculations = TRUE)`.

    -- At the time of `buildMCMC`, all `posterior_predictive` samplers are
    automatically reordered to operate last among all samplers. Doing so,
    posterior predictive samples are generated conditional on the other values
    in the MCMC sample.  This reordering can be disabled using
    `nimbleOptions(MCMCorderPosteriorPredictiveSamplersLast = FALSE)`
    (but doing so without also setting
    `nimbleOptions(MCMCusePredictiveDependenciesInCalculations = TRUE)` could
    result in samples that are invalid in terms of the joint posterior
    distribution (but with valid samples marginally).

    -- Removal of the `posterior_predictive_branch` sampler.  Filling the same
    role, the `posterior_predictive` sampler now updates all nodes downstream
    of its `target` node.  Assignment of the `posterior_predictive` sampler
    happens automatically during MCMC configuration, unless
    `nimbleOptions(MCMCusePosteriorPredictiveSampler = FALSE)`.

    -- Automatic determination of "predictive" model nodes, which are all
    stochastic non-data nodes that have no data nodes anywhere in their
    downstream dependencies. Tracking of predictive nodes is done
    automatically, but maybe be disabled using
    `nimbleOptions(determinePredictiveNodesInModel = FALSE)`.

    -- New arguments `includePredictive` (default value `TRUE`) and
    `predictiveOnly` (default value `FALSE`), for both the `getNodeNames`
    and the `getDependencies` methods of model objects.  These specify whether
    any predictive nodes are included in the results, and whether only
    predictive nodes are included, respectively.

    -- The MCMC configuration object will issue a warning message if there are
    stochastic non-data nodes which will not undergo MCMC sampling.  This
    warning can be disabled using
    `nimbleOptions(MCMCwarnUnsampledStochasticNodes = FALSE)`.

- Add option to WAIC system (via `controlWAIC`) to allow additional burnin (in
addition to standard MCMC burnin) before calculating online WAIC, thereby
allowing inspection of initial samples without forcing them to be used for WAIC
(PR #1244).

- For MCMC configuration `addSampler` method, change name of the
`scalarComponents` argument to `expandComponents` (PR #1215).

- Add new `default` argument for the `addSampler` method of MCMC configuration
objects.  When `default = TRUE`, default samplers (conjugate, or otherwise) will
be added to the specified nodes.  The addition of this argument provides an
entry point to the logic of default sampler determination and assignment,
without creating a new MCMC configuration object (PR #1215).

- Add new `nodes` argument for the `addSampler` method of MCMC configuration
objects.  Nodes specified in `nodes` automatically undergo expansion according
to `expandNodeNames` prior to sampler assignment, allowing for easier assignment
of samplers to multiple nodes (PR #1215).

- `rcar_normal` issues an informative error message when invoked from the R
command line (PR #1243).

- Warn users of unused constants during model building (PR #1242).

- Add `replaceSamplers` method to MCMC configuration objects to simplify
modifying how a node is sampled (PR #1222).

- Convert `NEWS` to Markdown format for proper rendering in browser
(issue #1231).

- Indicate model code that produces warnings about unknown nimbleFunctions
(issue #370).

## BUG FIXES

- Avoid error occurring when a model variable name starts with "logProb"
(PR #1240).

- Avoid error occurring when a model variable is named "i" (PR #1239).

- Prevent infinite recursion in particular cases in conjugacy checking
(PR #1228).

- Fix bug in simulating from `dcar_normal` nodes when multiple nodes passed to
simulate (issue #1238).

- Fix error message about duplicate node declarations (PR #1233).

- Fix another issue with long variable names (PR #1217).

- Fix warning related to `dataNodes` in WAIC.

## DEVELOPER LEVEL CHANGES

- Remove use of bitwise `|` and `&` operators in C++ code, per CRAN request.

- Refactor `nimbleMCMC` to pull out model creation (PR #1223).

- Fix an issue with nested `nimbleList`s on MacOS (PR #1213).


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/math/R-nimble/Makefile \
    pkgsrc/math/R-nimble/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/R-nimble/Makefile
diff -u pkgsrc/math/R-nimble/Makefile:1.5 pkgsrc/math/R-nimble/Makefile:1.6
--- pkgsrc/math/R-nimble/Makefile:1.5   Wed Aug 31 18:41:07 2022
+++ pkgsrc/math/R-nimble/Makefile       Sat Mar 11 10:05:26 2023
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2022/08/31 18:41:07 brook Exp $
+# $NetBSD: Makefile,v 1.6 2023/03/11 10:05:26 mef Exp $
 
 R_PKGNAME=     nimble
-R_PKGVER=      0.12.2
+R_PKGVER=      0.13.1
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 COMMENT=       MCMC, Particle Filtering, and Programmable Hierarchical Modeling
Index: pkgsrc/math/R-nimble/distinfo
diff -u pkgsrc/math/R-nimble/distinfo:1.5 pkgsrc/math/R-nimble/distinfo:1.6
--- pkgsrc/math/R-nimble/distinfo:1.5   Thu Apr 28 15:52:38 2022
+++ pkgsrc/math/R-nimble/distinfo       Sat Mar 11 10:05:26 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2022/04/28 15:52:38 mef Exp $
+$NetBSD: distinfo,v 1.6 2023/03/11 10:05:26 mef Exp $
 
-BLAKE2s (R/nimble_0.12.2.tar.gz) = e7b0977eef42963a5ee78234f67edf888a9956b1e0454d92b709098ce6f5580f
-SHA512 (R/nimble_0.12.2.tar.gz) = 0250f95153d664424a0f2708542620d994b4c1986feab313b6a06272c88abf12a79e27e521898a80653cdc5f0675cf6e104e7400356c2c0a35acd62f8a1e57c3
-Size (R/nimble_0.12.2.tar.gz) = 2137256 bytes
+BLAKE2s (R/nimble_0.13.1.tar.gz) = 7d108c5dfab341f1b1a99553e5485b7bf044b349d2f14bb15dc0fcf1b843bd0e
+SHA512 (R/nimble_0.13.1.tar.gz) = 42c183af879d0706228c73cd0b5f8984682454cef081aaa03cff33afd5f1c7c827b88074336c529e6b717827e873ad10918b203fa2538ef633fe081c9cdde1ec
+Size (R/nimble_0.13.1.tar.gz) = 2149097 bytes



Home | Main Index | Thread Index | Old Index