mattloper / chumpy

MIT License
195 stars 118 forks source link

Set specific stopping condition. #38

Closed Frank-Dz closed 1 year ago

Frank-Dz commented 4 years ago

Hi~ While using the method, one may have several terms to optimize. For example:

objs = {}
objs['j3d'] = obj_j3d(5e4)
objs['prior'] = pprior(0.8e2)

and I also know that the method has paras to set stopping conditions:

e_N are stopping conditions:
    e_1 is gradient magnatude threshold
    e_2 is step size magnatude threshold
    e_3 is improvement threshold (as a ratio; 0.1 means it must improve by 10%% at each step)

Here I want to learn how can we set a specific term's stopping condition? For example, we just want to ser a improvement threshold for the specific term objs['j3d'] = obj_j3d(5e4). Thanks in advance!

Best, Frank