Git Product home page Git Product logo

huraultmisc's People

Contributors

ghurault avatar

huraultmisc's Issues

Duplicated functionalities with tidybayes

Some Stan-related function in the package achieve similar outcomes as function in tidybayes.

Maybe mark them as obsolete or mention the difference in the doc?

Extracting draws

extract_parameters_from_draw(fit, param, draw) roughly equivalent to fit %>% tidy_draws() %>% gather_variables() %>% filter(.draw == draw & .variable %in% param), but the tidybayes version is a bit inefficient as all draws and all parameters are extracted then filtered (also the draw IDs are not exactly the same).

spread_draws would probably be more efficient when only a handful of parameters are extracted (but can only specify which draw afterwards, or select the number of draws that are extracted).

summary_statistics

Slightly equivalent to fit %>% tidy_draws() %>% gather_variables %>% mean_qi(), although we don't have information about R_hat or n_eff and indexes are not processed.

spread_draws with mean_qi (or equivalent) would be more useful to summarise the distribution of a handful of parameters.

extract_distribution with type = "hdi" or "eti" for plotting fan charts

Could use stat_lineribbon in tidybayes

Installed package size

In order to test stan functions, we need to manipulate a stanfit object.
To do this rapidly, simple solutions include:

  • providing a pre-compiled modelled as data (but not compatible with every machine)
  • providing a stanfit object as data

However, these files are too big (around 5MB) triggering a CRAN note.
It would be nice to find a way around this.

A potential solution could be to compile the models during the build as described here.
Or use a package using pre-compiled Stan models, like rstanarm (include the package as Suggests).

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.