Skip to content

Why do two similar fitting curves have completely different fitting results #980

Answered by newville
xmuworker asked this question in Q&A
Discussion options

You must be logged in to vote

yeah, if either -valid_x * k > 700 or -valid_x / D_H > 700, you'll have problems with np.inf. You do have a check that helps gaurd so that valid_x**2 + valid_x_R**2 cannot be tiny. You might also check that k and D_H are not so far off that the exponentials give you np.inf.

Again, I am generally very suspicious when I see bounds on variable Parameters being generated from the data. OTOH, clipping the arguments to exponentials, either at run time or by setting bounds appropriately seems like a good thing to do.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@newville
Comment options

@xmuworker
Comment options

@xmuworker
Comment options

@newville
Comment options

Answer selected by xmuworker
@xmuworker
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants