balglave / FishMap

https://balglave.github.io/FishMap/
Other
0 stars 1 forks source link

As client, i'd like to have a stable behaviour for outputs of the `fm_fit_model` function #47

Closed Cervangirard closed 1 year ago

Cervangirard commented 1 year ago

As client, i'd like to have a stable behaviour for outputs of the fm_fit_model function so that I am warned if there are differences in outputs while changing other functions or while updating package dependencies

Client - Validation

After this is unblocked we plan to validate these points:

Dev - Tech

Problem

We want to write stable unit tests that can, over time, identify real differences in the model's output. Checking on the entire model results can cause the test to fail on very small differences. Here is an example:

image

balglave commented 1 year ago

We suggest to only look at the spatial predictions (S_x) and total biomass (total_abundance). You should get it by doing fm_model_results$report$S_p and fm_model_results$report$total_abundance.

Cervangirard commented 1 year ago

Thanks. We close this ticket because the tests pass for a model with a small k and a short period. We will reprocess this issue later with a more consistent model

Cervangirard commented 1 year ago

Ajouter lambda_p et par_b