CDCgov / CDCgov/PyRenew

Should `DeterministicVariable` be able to have an arbitrary `pytree` as their `vars` value?

Open
#308 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion
Dominant language
Python
Stars
29
Forks
9
Avg merge
9d 9h
Merged PRs (30d)
8

Description

We should discuss elsewhere whether DeterministicVariables should be able to have an arbitrary pytree as their vars value. I lean yes.

I would also support renaming vars to value, for consistency with SampledValue.

Originally posted by @dylanhmorris in https://github.com/CDCgov/multisignal-epi-inference/pull/262#discussion_r1690428602

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

No file or test is named. Start by locating the definitions of DeterministicVariable and SampledValue, then trace how their vars and value fields are consumed. Done requires an agreed decision on arbitrary pytrees and whether vars should be renamed to value, with the affected behavior identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.