Create documentation/vignette for the naming scheme of our functions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- r
调研方向
首先,将此 issue 中描述的命名约定与 package 当前的函数和类进行比较,尤其是 scoring rules、get_ functions、plotting functions、add_ functions 和 input checks。与 maintainers 确认哪些指导仍然适用,然后创建计划中的 vignette,记录已达成一致的方案及其示例。
由索引模型根据 Issue 内容生成。
描述
Edit: Warning - this might be partly outdated.
We should aim for as much consistency as possible in naming things.
This issue summarises our current thinking and should eventually become a Vignette
Scoring rules
See #476 #610.
We call "scoring rule" any function that computes a score / metric / quantity of interest based on forecasts and observed values. We call "score" the output of a scoring rule.
"Scoring rule" usually means the specific R function that computes a score. We use sentences such as "you can pass a list of scoring rules to score(), or "you can call a scoring rule directly". And "scores are computed by scoring rules". Sometimes, "scoring rule" can also denote the function in a more abstract, mathematical sense. For example we would say "the absolute error is a scoring rule" or the "CRPS" is a proper scoring rule. Sometimes we use "rules" as short for "scoring rules", for example when naming function arguments.
In other contexts in the literature, "score" is also used as short for "scoring rule", for example in a sentence like "the CRPS is a proper score". We will avoid this terminology.
Scoring rules are consistently named in the following way:
<name of the scoring rule> + _ + <forecast type>
If there is only one forecast type for which a scoring rule is applicable, _ + <forecast type> is sometimes omitted.
get_-functions
- functions with the prefix
get_are designed to provide additional information based on the data - they are usually called on the raw forecasts
Classes
We have one class for every forecast type
forecast_binaryforecast_pointforecast_sampleforecast_quantile
We have a class for the output of score():
score
Plotting functions
We briefly considered having classes solely for plotting (with the class named after the function). But then we decided to instead have dedicated plotting functions.
Plotting functions are named plot_ + name of function. If the function name has a prefix like get_, then that is replaced with plot_.
Examples: plot_forecast_counts, plot_correlation, plot_pairwise_comparion.
add_-functions
Functions with an add_ prefix add columns with additional information to their inputs.
add_pairwise_comparison()
add_coverage()
add_interval_range()
Internal input checks
check_, assert_, test_
assert_: Returns NULL invisibly if the assertion was successful and throws an error otherwise.check_: Returns TRUE if the check was successful and a string with an error message otherwisetest_: Returns TRUE if the check was successful and FALSE otherwise
- 主要语言
- R
- 星标
- 65
- 派生
- 24
- 平均合并
- 1 小时 24 分钟
- 30 天内合并 PR
- 2
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
epiforecasts/scoringutils 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
epiforecasts/scoringutils#1264 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
epiforecasts/scoringutils#1265 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
epiforecasts/scoringutils#1260 ·
维护者通常 1 天内回复
-
Incorrect guidance in `NEWS.md` re `add_relative_skill()`?可能已有人在做 @nikosbosse 于 3 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
epiforecasts/scoringutils#1226 · 1 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
get_pit_histogram(): unsorted breaks produce negative densities; num_bins = 1 returns an empty table可能已有人在做 @nikosbosse 于 3 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
epiforecasts/scoringutils#1219 ·
维护者通常 1 天内回复
查看 epiforecasts/scoringutils 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
waldronlab/bugphyzz#301 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 78/100
r-lib/tree-sitter-r#209 ·
-
难度 1/5 1 小时以内 新手友好度 67/100
-
难度 1/5 1 小时以内 新手友好度 79/100
cran-task-views/CausalInference#52 · 1 条评论 ·