Missing 1 hospitalized
@PhilMiller 已经在做这个了。
开始于 2020年3月29日。
评估
这个 Issue 还没有评估数据。
描述
Corey review, confirm, and suggest a solution.
There is an initial hospitalized patient because fitting was done for the date_first_hospitalized or date_first_hospitalized was estimated from doubling_time.
This likely causes an underestimate in growth rate for small marked share, because a single hospitalized patient represents a larger change from zero than in larger market shares.
This shows up later in test_model_cumulative_census:
# TODO: is 1.0 for ceil function?
diff = admits.hospitalized[1:-1] - (
0.05 * 0.05 * (raw_df.infected[1:-1] + raw_df.recovered[1:-1]) - 1.0
)
Missing a patient during in build_dispositions_df:
def build_dispositions_df(
raw_df: pd.DataFrame,
rates: Dict[str, float],
market_share: float,
current_date: datetime,
) -> pd.DataFrame:
"""Build dispositions dataframe of patients adjusted by rate and market_share."""
patients = raw_df.infected + raw_df.recovered
day = raw_df.day
return pd.DataFrame({
"day": day,
"date": day.astype('timedelta64[D]') + np.datetime64(current_date),
**{
key: patients * rate * market_share
for key, rate in rates.items()
}
})
- 主要语言
- Python
- 星标
- 210
- 派生
- 153
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CodeForPhilly/chime 的其他 Issue
-
bug
CodeForPhilly/chime#622 · 已指派 1 人 ·
-
难度 5/5 一周以上 新手友好度 25/100
CodeForPhilly/chime#598 ·
-
models
难度 3/5 1-2 天 新手友好度 25/100
CodeForPhilly/chime#597 ·
-
question
CodeForPhilly/chime#568 · 已指派 1 人 ·
-
enhancement k8s infra
难度 4/5 3-5 天 新手友好度 30/100
CodeForPhilly/chime#567 ·
查看 CodeForPhilly/chime 的全部 Issue
相似的 Issue
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 75/100
open-webui/open-webui#30750 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
good first issue
难度 1/5 1 小时以内 新手友好度 90/100