sizespectrum / mizerExperimental

Extends the mizer package with experimental features
https://sizespectrum.org/mizerExperimental/
3 stars 5 forks source link

Create functions to start tuning gadget with tailored choices of controls and tabs #28

Closed gustavdelius closed 2 years ago

gustavdelius commented 3 years ago

An idea just prompted by @juliablanchard : In order not to overwhelm the user with too many buttons and sliders right from the start, we should have functions that start up the gadget with only those controls and tabs needed for a particular task. So for example there should be a tuneGrowth() function that starts tuneParams() with the options control = "predation" and tabs = "Growth".

gustavdelius commented 3 years ago

There is a small problem with this idea, namely that while tuning the growth curves for example, one will mess up the biomass calibration for example, so one will in practice like to be able to head over to the Biomass tab easily to check and adjust if needed. So perhaps keep tuning of Biomass and of Growth together, but remove everything else?

gustavdelius commented 3 years ago

Another idea is to have tuneGrowth() automatically do a retuning of the biomasses (or the yields). So each time the user hits the steady() button the gadget actually does params %>% steady() %>% calibrateBiomass() %>% matchBiomasses() %>% steady(). That way the steady state should always stay reasonably close to the desired biomasses. tuneGrowth() could have an argument auto with options "biomass" or "yield" or "none" in order to determine whether to keep biomasses or yields automatically in agreement with observations.

gustavdelius commented 3 years ago

This idea works unbelievably well. See tuneGrowth().

gustavdelius commented 3 years ago

I have now made a blog post about this at https://blog.mizer.sizespectrum.org/posts/2021-09-07-tuning-growth-curves-with-a-shiny-gadget/