[Bug]: "inf" value in bootstrap of mean size-at-age data for ages with sample size 0
@Rick-Methot-NOAA đang làm issue này rồi.
Từ ngày 2/5/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Describe the bug
@e-perl-NOAA reported "inf" values in the bootstraps of the mean size-at-age data for the BigSkate_2019 test model.
I was able to replicate the issue in the attached files.
There is a single vector of observations where the last three bins (for males age 13-15) have 0 sample size. The bootstrap observations are reported as inf 0.0001 inf in data_boot_001.ss and as 0.0001 inf inf in data_boot_002.ss in the attached files:
boot.zip.
It looks like the code here may be randomly generating a mix of inf and -inf and then replacing the -inf with 0.0001.
https://github.com/nmfs-ost/ss3-source-code/blob/main/SS_write_ssnew.tpl#L1271-L1275
I think the following steps should be taken:
- decide on a placeholder value for the observation. SS3 doesn't like
NA(orinf) as an input value here. I used 99.9 in the original Big Skate model, perhaps because it was closer to the range of observed non-placeholder values whereas 999 would have messed up scaling in any rudimentary plot of the results before filtering those observations). - add a test for
obs_ms_n(f, i, a) == 0and use the placeholder value instead of generating a bootstrap value
Note that these data are excluded from the likelihood with a lambda = 0 setting, but I think that doesn't matter for any of this.
To Reproduce
Run the attached input files (which is just the BigSkate_2019 in ss3-test-models with the starter file changed to produce bootstrap files).
Expected behavior
A model without inf output that can be used as an SS3 input file.
Screenshots
No response
Which OS are you seeing the problem on?
No response
Which version of SS3 are you seeing the problem on?
No response
Additional Context
No response
- Ngôn ngữ chính
- C++
- Star
- 46
- Fork
- 20
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 1
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 nmfs-ost/ss3-source-code
-
[Bug]: non-integer `Lbin_lo`/`Lbin_hi` are silently truncated under `Lbin_method = 1`, while method 3 raises a fatal error for the equivalent mistakeCó thể đã có người làm @Rick-Methot-NOAA đã nhận 16 ngày trước. Đang mở
nmfs-ost/ss3-source-code#784 · 1 người được giao ·
-
need warning and improved logic for generalized sizecompCó thể làm lại được @Rick-Methot-NOAA đã nhận 251 ngày trước và không có pull request nào đang mở. Đang mởcomposition in progress
nmfs-ost/ss3-source-code#751 · 1 bình luận · 1 người được giao ·
-
[Feature]: Add standard errors for area-specific quantitiesCó thể làm lại được @Rick-Methot-NOAA đã nhận 389 ngày trước và không có pull request nào đang mở. Đang mởarea & movement
nmfs-ost/ss3-source-code#731 · 3 bình luận · 1 người được giao ·
-
[Feature]: Create a basic report list that could serve as better starting configuration for customizationCó thể làm lại được @Rick-Methot-NOAA đã nhận 396 ngày trước và không có pull request nào đang mở. Đang mởmisc. output
nmfs-ost/ss3-source-code#723 · 1 người được giao ·
-
[Feature]: restrict biology output using the use_morph(g) flagCó thể làm lại được @Rick-Methot-NOAA đã nhận 418 ngày trước và không có pull request nào đang mở. Đang mởbiology misc. output ongoing
nmfs-ost/ss3-source-code#702 · 1 người được giao ·
Tất cả issue của nmfs-ost/ss3-source-code
Issue tương tự
-
Incorrect Link in README.mdCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
flameshot-org/flameshot#4996 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
utopia-rise/godot-jvm#1004 ·
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 70/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
chore(build): TxCoordinator.cpp uses the deprecated shared_ptr atomic free functionsCó thể đã có người làm @w5jwp đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
aethersdr/AetherSDR#6368 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày