Skip to content

g3_fit rewrite #44

@willbutler42

Description

@willbutler42

Following on from this pull request and discussion, I have created a new branch with the aim of re-writing g3_fit. The overall aim will be to create a series of functions that will summarise a particular component of a g3 model´s reported output, these can then be called individually, or in batches (to create a custom fit) or collectively (what the updated g3_fit will do). These functions can potentially be used directly by gadgetplots also.

I have committed an example for survey indices here. I´m planning to update other components in a similar fashion in the upcoming weeks, we can use this thread to discuss and highlight other improvements that might be useful @lentinj @MikkoVihtakari @bthe @vbartolino :

access functions

  • Should the access functions be able to generate reports from a model/objective function or just process the reports?
  • What access functions should we have? One for each component of g3_fit (excluding params and score)?

g3_fit

  • Should g3_fit take the objective function as an argument? See here. My instinct says yes.
  • Is the end goal to have g3_fit and its components in gadget3? If so, what is required? Re-writing in base R (with existing imports) shouldn´t be a problem. Can make use of the g3_array_* functions and then it will just be merges and withins mostly
  • Is the current output sufficient for multispecies models or would some restructuing/additional components help? @vbartolino
  • Additional parameters:
  1. calculate F for a specific age-range
  2. define the age at which fish are recruited to the fishery. For this, the recruitment column of res.by.year could be taken from stock.full with some fiddling to align steps.
  3. Is there any need for the printatstart parameter? Rather than printing biomass at the end of the timestep, we just project a year to get the biomass at the beginning of the next step now.
  • g3_fit should be able to take in a list of parameter (for retro´s, jitter´s etc) and do this in parallel. This should help.
  • With half an eye on gadgetplots html´s , I think an update.g3_fit function would be beneficial. This could absorb g3_retro/jitter/bootstrap classes and summarise accordingly. For instance, by supplying the bootstrap, the relevant confidence intervals will be added to the fit; or an additional component "retro" will be added which contains all the information needed to plot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions