Git Product home page Git Product logo

copuladta's People

Contributors

vnyaga avatar

Watchers

 avatar  avatar

copuladta's Issues

Compatibility with upcoming release of loo package

Hi @VNyaga,

I see that you're using the waic function from the loo package and I just wanted to double check that you're aware of the upcoming update to the loo package (I also sent an email about it back in February). Anyway, the structure of the object returned by waic will change slightly and I think will break the code in your vignette. The new structure of the objects will be:

A named list (of class c("waic", "loo")) with components:

estimates:
A matrix with two columns ("Estimate", "SE") and three rows ("elpd_waic", "p_waic", "waic"). This contains point estimates and standard errors of the expected log pointwise predictive density (elpd_waic), the effective number of parameters (p_waic) and the LOO information criterion waic (which is just -2 * elpd_waic, i.e., converted to deviance scale).

pointwise:
A matrix with three columns (and number of rows equal to the number of observations) containing the pointwise contributions of each of the above measures (elpd_waic, p_waic, waic).

So I think you just need to change the places where you pull results out from the objects. To get elpd_waic it's now object$estimates[1, 1] or object$estimates["elpd_waic", "Estimate"], where object is returned by waic.

I'll send out a follow-up email to my previous one once the loo update is up on CRAN (this week I hope). In the meantime it's now available from the master branch at stan-dev/loo on GitHub.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.