-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for tag mirror #268; partial fix for retro-superperiod #265 #270
Conversation
Hi Rick, thanks for getting this up so quickly! How do you advise I test that tag mirroring fix? This model already includes mirrored tagging overdispersion parameters; however, I find no difference in likelihood between this PR and 3.30.18 when I run the model. In addition, I can see the mirroring (-1000) propogated into the control.ss_new file with 3.30.18. Could you tell me what I should be looking at to see if the fix worked? I wasn't sure... |
@@ -312,7 +312,7 @@ PRELIMINARY_CALCS_SECTION | |||
else | |||
{k++;} | |||
} | |||
if(k!=1) {N_warn++; cout<<"error in length data"; warning<<N_warn<<" "<<" must have only 1 sample with real info in length superperiod "<<j<<endl; exit(1);} | |||
if(k>1) {N_warn++; cout<<"error in length data"; warning<<N_warn<<" "<<" must have only 1 sample with real info in length superperiod "<<j<<endl; exit(1);} | |||
for (i=suprper_l1(f,j);i<=suprper_l2(f,j);i++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next time, it would be nice to break the changes addressing 2 issues into separate commits (although I think 1 PR is fine!)
Actually, I figured it out how to test, I think - the case I was testing happened to be a case not eaffected by the code. I changed up the model (mirrored 2 fleets instead of 1, and now get a .18 model that runs, and the pull request version with this error:
Not sure if this is because the values I changed the tag dispersion parameters to don't make sense, or if there is something else going on? |
@k-doering-NOAA, I think your modified model and the original in test-models should both be setting all the tag overdispersion parameters fixed at 1.001, with the only difference being which ones are mirroring which others. Presuming that your test model works fine with Rick's fix then I think it's a good test. |
I can check tomorrow. Change for tags is in objfun. Don’t see how old
code could actually do mirror.
…Sent from my iPhone
On Mar 8, 2022, at 1:40 PM, Kathryn Doering ***@***.***> wrote:
Hi Rick, thanks for getting this up so quickly! How do you advise I test
that tag mirroring fix?
This model
<https://github.com/nmfs-stock-synthesis/test-models/blob/main/models/tagging_mirrored_sel/control.ss#L578>
already includes mirrored tagging overdispersion parameters; however, I
find no difference in likelihood between this PR and 3.30.18 when I run the
model. In addition, I can see the mirroring (-1000) propogated into the
control.ss_new file with 3.30.18.
Could you tell me what I should be looking at to see if the fix worked? I
wasn't sure...
—
Reply to this email directly, view it on GitHub
<#270 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPV4IDVGX3R5DAPQDKIUYTU67CNBANCNFSM5QHM7USA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I would like to raise one more related change on the tag parameter mirroring
For the case if TG_parm_PH(j) <-1000 (else part), |
Thank you very much Yukio for taking such a close look at the code in a section that is not used by any in our local assessment team, so weakly tested. We will make this change also. |
tau <=1 in log_negbinomial_density |
The functions which calculate log ofe negative binomial density in ADMB are
in linad99/cnegbin.cpp and its dvariable version in vnegbin.cpp |
Thanks. This error is happening because inappropriate value was being mirrored, so gets fixed by the coding error you found. |
I agree to continue to use overdisp in stead of tau. |
now with new warnings: |
Great. Many thanks for your work |
What issue(s) does this PR address? Describe and add issue numbers, if applicable.
What tests have been done? Upload any model input files created for testing in a zip file, if possible.
retro fix is bandaid only for lencomp superperiod, but works
fix for tag mirroring needs testing
What tests/review still need to be done? Who can do it, and by when is it needed (ideally)?
fix for tag mirroring needs testing
Check which is true. This PR requires:
none. these are minor fixes
Describe any changes in r4ss/SS3 manual/SSI/change log that are needed (if checked):