Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Longer running infection feedback process

オープン
#458 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 6 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

equations.md#infections と pyrenew/latent/infection_functions.py の new_double_convolve_scanner を読みます。記載されたオンラインフィードバックの更新から追加のスキャナーオプションを具体化し、その後、感染履歴全体を保持せずに、より長時間実行する推論をサポートできることを確認します。新しいスキャン関数が別のオプションとして利用可能になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

pyrenew

Goal

Add more options to feedback process on $\log R_t$, described here, which are efficient for longer running inference.

Context

IMO from basic principles fitting on data only from after a peak hospitalisation and before the next peak hospitalisation then the action of the feedback term will be pretty unidentifiable. However, the obvious downside of running the inference over longer time periods is that we would require a very long history of infections within the model to carry for inside scan.

From f2f discussion with @dylanhmorris we had a quick think about easier ways to model this.

IMO, the easiest way to have a long period of effect from feed back whilst avoiding heavy compute is:

F(t) = \gamma \sum_{\tau = 1}^{\infty}I(t-\tau)f(\tau) = \gamma \sum_{\tau = 1}^{\infty}I(t-\tau) \left(\lambda_f\right)^{\tau -1}.

Where $\lambda_f \in [0,1]$ is a forgetting factor, and $T_f = \infty$. Whilst exponential smoothing is pretty simplistic, it is handy because it has an on-line update rule:

F(t+1) = \gamma  I(t) + \lambda_f F(t).

This means that scan only has to carry forward the feedback strength $F(t)$ rather than a long vector of past infections, in addition to the recent infections required for the new infection calculation.

NB:

  • This approach would very likely work better with infection on a per capita scale and $F(0)$ is likely to be a parameter that needs inference.
  • @dylanhmorris pointed out that more complicated models that exponential decay are possible e.g. a multi-stage Erlang decay.

Required features

主要言語
Python
スター
30
フォーク
11
平均マージ
6日 1時間
マージ済み PR(30日)
10

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CDCgov/PyRenew のほかの issue

CDCgov/PyRenew の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。