Investigate replacing MethodRun.predictive with stagereg PosteriorStage.predict

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
jupyter-notebook
Domain
backend

Research direction

Start by reading MethodRun.predictive and the restore flow where MethodRun is populated; the issue names these entry points but gives no file paths. Compare its predictive with PosteriorStage.predict(inputs, key) from stagereg 0.3.0, including the aleatoric-variance mean, and check how HNN's path would fit. Evaluate test-set performance, especially for pSGLD; done means the equivalence, restore-flow impact, split-path simplicity, and speed tradeoffs are documented.

Written by the indexing model from the issue text.

Description

needs-triage

Question

stagereg 0.3.0 adds PosteriorStage.predict(inputs, key): a compiled PosteriorPredictive after train or restore. qmodem builds its own predictive in MethodRun.predictive, using the same aleatoric-variance mean.

Can qmodem delegate to PosteriorStage.predict?

To investigate

  • Does it give the same predictive as qmodem's, up to floating point?
  • HNN has no posterior stage, so it still needs qmodem code. Does a split path stay simpler than today's?
  • MethodRun would have to hold the stage after restore. What does that change in the restore flow?
  • Is it faster on test-set evaluation, especially for pSGLD?

Out of scope of the stagereg 0.3.0 bump; recorded during that grilling session.

Dominant language
Jupyter Notebook
Stars
0
Forks
0
Avg merge
1d 11h
Merged PRs (30d)
7

Getting set up

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 GroupiSP/qmodem

All issues in GroupiSP/qmodem

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.