dkirkby / bayez Goto Github PK
View Code? Open in Web Editor NEWBayesian redshift estimation
Bayesian redshift estimation
To whom it may concern,
If you are using https://github.com/astropy/ci-helpers in your appveyor.yml , please know that the Astropy project has dropped active development/support for Appveyor CI. If it still works, good for you, because we did not remove the relevant files (yet). But if it ever stops working, we have no plans to fix anything for Appveyor CI. Please consider using native Windows support other CI, e.g., Travis CI (see https://docs.travis-ci.com/user/reference/windows/). We apologize for any inconvenience caused.
If this issue is opened in error or irrelevant to you, feel free to close. Thank you.
The pull request for updating bayez to the new specsim api is almost completed I just need to finish the update on desi_bayez. I think the main thing that needs to be changed is that the downsample method should be removed from that file entirely and probably placed in another module all together. Should we create something like a helper module to migrate functions like migrate to? What do you think the best approach is for changing this file.
I'm also not sure how these changes should be tested.
This issue is to add a bayez.desi
module to encapsulate DESI-specific interfaces to bayez. I suggest the following functions:
read_bricks()
: Read b,r,z bricks and prepare for analysis by bayez.write_bricks()
: Write b,r,z, bricks including truth using spectra generated by bayez simulation code.write_zbest()
: Write bayez results to zbest file.desi_zfit()
: Read bricks, perform redshift fits, and write zbest file.Define a boolean truth selector:
T(v1) = { c | zfit - ztrue | / (1 + ztrue) < v1 }
and a boolean data selector, for example:
D(v2) = { c (z68hi - z68lo) / 2 / (1 + zbest) < v2 }
Then we can count the numbers of fits in four exclusive categories, which sum to N(total):
Focus on two metrics:
This issue is to:
The optimum might be different for different target categories and can be used to set ZWARN = ~D(v2).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.