pymc-devs / pymc-devs/bartrs

Tests for sequential Monte Carlo

Open Beginner friendly
#11 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 smc.rs file has module defined for tests.

Some good tests would be to, e.g.,

  • Test that if you pass a CDF which jumps to a given value for some feature and stays constant after that, sample_feature_from_probs samples that first feature
  • Check that normalize_weights_inplace actually return something that sums to one.

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 smc.rs and read the existing test module alongside sample_feature_from_probs and normalize_weights_inplace. Run the Rust tests before making changes, then add focused tests for the stated CDF sampling behavior and normalized weights. Done means both behaviors are covered by passing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing-qa
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.