Create documentation/vignette for the naming scheme of our functions
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- r
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu bằng cách so sánh các quy ước đặt tên được mô tả trong issue này với các hàm và lớp hiện tại của package, đặc biệt là scoring rules, get_ functions, plotting functions, add_ functions và input checks. Xác nhận với các maintainer hướng dẫn nào vẫn còn phù hợp, sau đó tạo vignette đã lên kế hoạch để ghi lại scheme đã thống nhất và các ví dụ của nó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- R
- Star
- 65
- Fork
- 24
- Merge trung bình
- 1 giờ 24 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của epiforecasts/scoringutils
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
epiforecasts/scoringutils#1264 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
epiforecasts/scoringutils#1265 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Non-randomised PIT for integer forecasts drops forecasts whose observation exceeds all samplesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
epiforecasts/scoringutils#1260 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Incorrect guidance in `NEWS.md` re `add_relative_skill()`?Có thể đã có người làm @nikosbosse đã nhận 3 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
epiforecasts/scoringutils#1226 · 1 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
get_pit_histogram(): unsorted breaks produce negative densities; num_bins = 1 returns an empty tableCó thể đã có người làm @nikosbosse đã nhận 3 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
epiforecasts/scoringutils#1219 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của epiforecasts/scoringutils
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
waldronlab/bugphyzz#301 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
r-lib/tree-sitter-r#209 ·
-
Suggest rmoriebricklayerĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
-
Suggest rmoriebricklayerĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 79/100
cran-task-views/CausalInference#52 · 1 bình luận ·