Giter Club home page Giter Club logo

thepayne's Introduction

The Payne

=====

Version 1.0

Artificial Neural-Net compression and fitting of ab initio synthetic spectral grids. The code has the following functionality:

  • Using PyTorch to train an artificial neural-network on individual pixels in a grid of spectra and/or photometry

  • Testing and Validation of a trained ANN to evaluate its precision and calculate the covariance in the predictions

  • Fit observed spectra and/or photometry using trained ANN coupled with Bayesian sampling.

The general algorithm framework for The Payne is given in Ting, Y.-S., Conroy, C., Rix, H.-W., & Cargile, P. 2018, ApJ, submitted. Further details on building ab initio models of synthetic stellar spectra can be found in Ting, Y.-S., Conroy, C., & Rix, H.-W. 2016, ApJ, 826, 83 and Ting, Y.-S., Rix, H.-W., Conroy, C., Ho, A.~Y.~Q., & Lin, J. 2017, ApJL, 849, L9. This code follows the general approach outlined in these papers, with additional changes in the fitting and training procedures. Please cite these references if this code is used for any academic purposes.

The current version of The Payne code is under development and not yet ready for wide distribution. Anyone interested in using this version of the code, please first contact [email protected].

The Payne is named in honor of Cecilia Payne-Gaposchkin, one of the great scientist of the 20th century and a pioneering in stellar astrophysicist. In the 1920s she derived the cosmic abundance of the elements from stellar spectra, including determining the composition of the Sun, and demonstrated for the first time the chemical homogeneity of the universe. Cecilia Payne-Gaposchkin achieved two Harvard firsts: she became the first female professor, and the first woman to become department chair.

https://en.wikipedia.org/wiki/Cecilia_Payne-Gaposchkin

Authors

  • Phillip Cargile (Harvard)
  • Yuan-Sen Ting (ANU)

See Authors for a full list of contributors to The Payne.

Installation

cd <install_dir>
git clone https://github.com/pacargile/ThePayne.git
cd ThePayne
python -m pip install .

Then in Python

import Payne

The user either need to train a new ANN for an observed spectrum and photometry. Or contact [email protected] to get the latest C3K based ANN.

The Payne is pure python. See the tutorial for fitting a solar mock with photometric and spectroscopic data. To run demo:

cd demo/
python runPayne.py

The script contains options for fitting solar mock or observed spectra and/or photometry.

License

Copyright 2018. The Payne is open-source software released under the MIT License. See the file LICENSE for details.

thepayne's People

Contributors

pacargile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

thepayne's Issues

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.