Linear regression example in rust.

Open
#3 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Start with the crate's logp API and NUTS entry point, then compare the requested example with the linked emcee linear-regression tutorial. The documentation should show a linear model with priors, data, and the gradient term, and demonstrate fitting it with NUTS directly from Rust.

Written by the indexing model from the issue text.

Description

Hello,

I am having trouble understanding how to set up the logp function for my use case, specifically the gradient term. I have managed to implement my model using emcee, as this doesn't require a gradient term but I would really like to use NUTS directly from rust!

A slightly more involved example, along the lines of this would be very helpful to understand how to fit a model (including priors) to data, from which I can extrapolate into my own use case.

Thank you for your work on this excellent crate.

Dominant language
Rust
Stars
111
Forks
20
Avg merge
14h 50m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pymc-devs/nuts-rs

All issues in pymc-devs/nuts-rs

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.