-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PiecewiseAffineTransform.estimate return should reflect underlying transforms #6211
PiecewiseAffineTransform.estimate return should reflect underlying transforms #6211
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix looks sensible to me. Thanks @chrisroat (will merge in a couple days if there are no further comments)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @chrisroat, I simply suggest to rename the ok
variable to success
to match the docstring, otherwise it LGTM 😉
Co-authored-by: Riadh Fezzani <rfezzani@gmail.com>
Thank you @chrisroat! |
@meeseeksdev backport to v0.19.x |
…rn should reflect underlying transforms
…1-on-v0.19.x Backport PR #6211 on branch v0.19.x (PiecewiseAffineTransform.estimate return should reflect underlying transforms)
…ansforms (scikit-image#6211) * PiecewiseAffineTransform.estimate return should reflect underlying transforms Co-authored-by: Riadh Fezzani <rfezzani@gmail.com>
) Closes #199 Corresponds to: scikit-image/scikit-image#6207 scikit-image/scikit-image#6211 scikit-image/scikit-image#6214 Additionally, the affines contained within the `PiecewiseAffineTransform` will have parameters in CuPy arrays when the inputs to `estimate` are CuPy arrays. This is one to make it consistent with the other transform classes. @chrisroat, can you confirm if this fixes the issue for you? Authors: - Gregory Lee (https://github.com/grlee77) Approvers: - https://github.com/jakirkham URL: #208
Description
Prior to this change, PiecewiseAffineTransform.estimate always returns True -- even when one of the underlying transforms is ill-conditioned. This change causes a return value of True only when all the transforms are well-conditioned.
Closes #6206
Checklist
For reviewers
later.
__init__.py
.doc/release/release_dev.rst
.example, to backport to v0.19.x after merging, add the following in a PR
comment:
@meeseeksdev backport to v0.19.x
run-benchmark
label. To rerun, the labelcan be removed and then added again. The benchmark output can be checked in
the "Actions" tab.