[Bug]: "inf" value in bootstrap of mean size-at-age data for ages with sample size 0
@Rick-Methot-NOAA がすでに取り組んでいます。
2024年5月2日 から。
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- C++
- スター
- 46
- フォーク
- 20
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nmfs-ost/ss3-source-code のほかの issue
-
[Bug]: non-integer `Lbin_lo`/`Lbin_hi` are silently truncated under `Lbin_method = 1`, while method 3 raises a fatal error for the equivalent mistake対応中かも @Rick-Methot-NOAA が 7 日前に担当しました。 オープン
nmfs-ost/ss3-source-code#784 · 担当者 1 名 ·
-
need warning and improved logic for generalized sizecomp再び着手できるかも @Rick-Methot-NOAA が 242 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンcomposition in progress
nmfs-ost/ss3-source-code#751 · コメント 1 件 · 担当者 1 名 ·
-
[Feature]: Add standard errors for area-specific quantities再び着手できるかも @Rick-Methot-NOAA が 380 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンarea & movement
nmfs-ost/ss3-source-code#731 · コメント 3 件 · 担当者 1 名 ·
-
[Feature]: Create a basic report list that could serve as better starting configuration for customization再び着手できるかも @Rick-Methot-NOAA が 387 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンmisc. output
nmfs-ost/ss3-source-code#723 · 担当者 1 名 ·
-
[Feature]: restrict biology output using the use_morph(g) flag再び着手できるかも @Rick-Methot-NOAA が 409 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbiology misc. output ongoing
nmfs-ost/ss3-source-code#702 · 担当者 1 名 ·
nmfs-ost/ss3-source-code の issue をすべて見る
似ている issue
-
Feature
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
Narezzurri/OpenVPN-Config-Manager#95 ·
メンテナーはふだん 1 日以内に返信
-
bot-found bug priority: P1
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
madenvel/KalinkaPlayer#251 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sqlitebrowser/sqlitebrowser#4208 ·
-
ROSES ROSES - Student Review
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
area/ysql kind/bug priority/medium
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yugabyte/yugabyte-db#34552 ·
メンテナーはふだん 1 日以内に返信