charlesrocabert / gbapy

Growth balance analysis in Python
GNU General Public License v3.0
1 stars 0 forks source link

Gradient ascent trajectory function #3

Closed charlesrocabert closed 1 month ago

charlesrocabert commented 3 months ago

Finalize a first version of the gradient ascent function:

fumer100 commented 3 months ago

image This should check, if the Gradient is "0" right? Or do I miss something?

charlesrocabert commented 3 months ago

Yes. However I am not sure of the behavior of this stop criteria. I think it is better to check for changes in $\mu$ directly

fumer100 commented 3 months ago

Yes. However I am not sure of the behavior of this stop criteria. I think it is better to check for changes in μ directly

Ok , right now I have a min. gradient of "-9.64858268e-06" for model A, which is veery close to 0. But I still did it with the "GCC_f check". I will try it with the μ changes. But is this gradient value correct? For Model A :

GCC_f is [ 0.00000000e+00    , -9.64858268e-06],
f is     [1.                 , 0.81269166]
v is     [912.25600275       , 741.38284929].
charlesrocabert commented 3 months ago

I can't tell. You need to plot the trajectories through time. What is the value of $\mu$? How does it increase through time? Try to generate some plots with matplotlib

fumer100 commented 3 months ago

image I think this is ok? Or should the growthrate be waay higher?

charlesrocabert commented 3 months ago

Correct!

fumer100 commented 3 months ago

Ok, I am relieved :).