pymc-devs / pymc-devs/bartrs

Nicer formatting for linear responses

Open Beginner friendly
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Rust
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Currently, the way the function sample_leaf_proposals in response.rs is written looks very ugly. A better job could be to avoid all of the explicit type casts in the function calls and avoid computing things in the arguments.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start in response.rs at the sample_leaf_proposals function. Review its explicit type casts and computations inside function arguments, then separate or simplify them while preserving behavior. Done means the function has cleaner formatting without those casts or inline computations; validate that the project still builds and its existing checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
machine-learning
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.