Giter VIP home page Giter VIP logo

desibest's People

Contributors

cballand avatar

Watchers

 avatar  avatar  avatar

desibest's Issues

Make display of plots optional

For running on NERSC or running over all target classes, it would be useful to have a command-line option that suppresses the display of all plots (which then have to be individually closed). Instead, they could be automatically saved to disk (or not produced at all).

let optional columns be optional

parsezbest will refuse to calculate statistics if the zbest file is missing the BRICKNAME and SUBTYPE columns, even though it doesn't use them. It would be better to just print a warning telling the user to fix that, but proceed with the calculations anyway.

Similarly, if EXTNAME='ZBEST' doesn't exist, print a warning and proceed with trying to use whatever is in HDU 1.

Do not assume a Gaussian distribution of residuals

Precision and accuracy are estimated using the standard deviation and mean:

            # precision
            ok = np.where(zw==0)[0]
            zerr = np.std(dz[ok])
            verr = np.std(dv[ok])

            #accuracy
            zacc = np.abs(np.mean(dz[ok]))
            vacc = np.abs(np.mean(dv[ok]))

These are not robust estimators when the distribution of residuals is non-Gaussian, especially in the presence of long tails.

I recommend using quantiles instead (or as an alternative), e.g.

    dv_quant = np.percentile(dz[ok], (2.5, 16, 50, 84, 97.5))
    dv_err68 = dv_quant[3] - dv_quant[1]
    dv_err95 = dv_quant[4] - dv_quant[0]
    dv_acc50 = dv_quant[2]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.