Closed VeryBitter closed 1 year ago
/AzurePipelines run
Hi I did all the cleaning requested. I was able to use AlGaAs.ContentBtsym. Regarding the "values for keyword argument 'method'" error, I reinstalled xrayutilities, downgraded lmfit to 1.2.0, still working. I don't understand why it doesn't work on your configuration. Actually, I was able to use successfully the fit_kws = {'method': 'differential_evolution'} parameter only after you updated the fit.py file very recently.
thanks for all the fixes. I'll need a bit of time to come back to you. Please stay tuned.
/AzurePipelines run
/AzurePipelines run
Hi Dominique do you expect me to do something at this point? I fully agree with your suggestion.
/AzurePipelines run
Hi Dominique do you expect me to do something at this point? I fully agree with your suggestion.
Hi, I think I just performed the remaining changes. let's see what the tests are saying now.
Unfortunately it seems the unit tests have the same error I experience locally. I look into it.
I have a fix for the issue with the method
keyword argument. Basically one has to pass it via the lmfit_kws
instead of fit_kws
. But before I upload it I have a question: Why you want to use method='differential_evolution'
. In my tests the script needs 30 times longer with differential_evolution
than when using leastsq
. Also the resulting chi-square is slightly worse. So I see no reason to use a special optimization method here. What am i missing?
I first used the leastsq
method. But the fit was not that good, looking like it was stuck in secondary minimum. Switching to differential_evolution
gave me much better results. However, based on you comment, setting the min/max for each parameter might have be the true reason for the fit improvement. So probably we could comment this line. Although not necessary, it would give a hint on how to change the fit model and other parameters. Or remove it completely. Up to you.
I think commenting the line is the best option. I’ll push a corresponding commit later and this should conclude this PR.
On Mon 17. 7. 2023 at 19:56, VeryBitter @.***> wrote:
I first used the leastsq method. But the fit was not that good, looking like it was stuck in secondary minimum. Switching to differential_evolution gave me much better results. However, based on you comment, setting the min/max for each parameter might have be the true reason for the fit improvement. So probably we could comment this line. Although not necessary, it would give a hint on how to change the fit model and other parameters. Or remove it completely. Up to you.
— Reply to this email directly, view it on GitHub https://github.com/dkriegner/xrayutilities/pull/166#issuecomment-1638612941, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKZJFMUEAPT2P2XK6N5UELXQV4DFANCNFSM6AAAAAAZ7AU4IY . You are receiving this because you commented.Message ID: @.***>
/AzurePipelines run
No commit pushedDate could be found for PR 166 in repo dkriegner/xrayutilities
/AzurePipelines run
No commit pushedDate could be found for PR 166 in repo dkriegner/xrayutilities
I had a bit of a struggle before making a good modeling and fitting of my experimental results. I would like to add another example file so that newcomers could use it to fit their data within a short amount of time. I hope it will be helpful.
Aristide