Skip to content
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

DM-13671 add option to skip rank update #80

Merged
merged 5 commits into from May 20, 2018
Merged

Conversation

parejkoj
Copy link
Collaborator

@parejkoj parejkoj commented Apr 4, 2018

No description provided.

@parejkoj parejkoj force-pushed the tickets/DM-13671 branch 3 times, most recently from 2223299 to 4e396a9 Compare April 5, 2018 00:08
@parejkoj parejkoj force-pushed the tickets/DM-13671 branch 2 times, most recently from 8dc4db2 to af25548 Compare April 17, 2018 23:50
Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Only comment is pre-existing.

"""Run fit.minimize up to max_steps times, returning the final chi2."""

for i in range(max_steps):
r = fit.minimize(whatToFit, 5) # outlier removal at 5 sigma.
# outlier removal at 5 sigma.
r = fit.minimize(whatToFit, 5, doRankUpdate=doRankUpdate)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pre-existing, but the sigma threshold for outlier rejection should be configurable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I've been meaning to do that for a while. I've added config.outlierRejectSigma in a separate commit.

Add jointcalConfig option to skip photometry and astrometry rank update.
Add FitterBase support for skipping rank update.
Add decam photometry and astrometry tests with and without rank update.
Decam photometry doRankUpdate test doesn't work, and is part of the set of
"differs on macOS" tests, so we're skipping it for now.

Lift out Hessian creation into anonymous function.

NOTE: astrometryDoRankUpdate is mostly for testing: it shouldn't have any
measureable impact on the astrometry fitter, but it's helpful to demonstrate
that FitterBase.minimize() is behaving sanely when we doRankUpdate=False
(which is the point of the astrometry skip_rank_update test).
@parejkoj parejkoj merged commit d965ca7 into master May 20, 2018
@ktlim ktlim deleted the tickets/DM-13671 branch August 25, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants