Using batches in a typical nonlinear optimization #11428
-
I have provided a minimal working example of a nonlinear optimization I try to do in Jax. Basically I fit sets of complex spectra using a rational polynomial in order to obtain the optimal coefficients. In this example I have just 3 spectra in the list but in reality I could have 100s. My question is whether it is possible to use a batch size and how that would look like and secondly whether further optimization might help the code run faster?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It seems that you've already used batching. BTW, stack |
Beta Was this translation helpful? Give feedback.
It seems that you've already used batching. BTW, stack
F
,Y
andsigma
outside main optimization loop seems more efficient.