Skip to main content

Deep Learning for Astronomers with Tensorflow

Project description

Documentation Status GitHub license Build Status Coverage Status

Getting Started

astroNN is a python package to do various kinds of neural networks with targeted application in astronomy by using Keras as model and training prototyping, but at the same time take advantage of Tensorflow’s flexibility.

For non-astronomy applications, astroNN contains custom loss functions and layers which are compatible with Tensorflow or Keras with Tensorflow backend. The custom loss functions mostly designed to deal with incomplete labels. astroNN contains demo for implementing Bayesian Neural Net with Dropout Variational Inference in which you can get reasonable uncertainty estimation and other neural nets.

For astronomy applications, astroNN contains some tools to deal with APOGEE, Gaia and LAMOST data. astroNN is mainly designed to apply neural nets on APOGEE spectra analysis and predicting luminosity from spectra using data from Gaia parallax with reasonable uncertainty from Bayesian Neural Net. Generally, astroNN can handle 2D and 2D colored images too. Currently astroNN is a python package being developed by the main author to facilitate his research project on deep learning application in stellar and galactic astronomy using SDSS APOGEE, Gaia and LAMOST data.

For learning purpose, astroNN includes a deep learning toy dataset for astronomer - Galaxy10 Dataset.

astroNN Documentation

Quick Start guide

Uncertainty Analysis of Neural Nets with Variational Methods

Acknowledging astroNN

Please cite the following paper that describes astroNN if astroNN used in your research as well as consider linking it to
Deep learning of multi-element abundances from high-resolution spectroscopic data [arXiv:1804.08622][ADS]


  • Henry Leung - Initial work and developer - henrysky
    Astronomy Student, University of Toronto
    Contact Henry: henrysky.leung [at]
  • Jo Bovy - Project Supervisor - jobovy
    Astronomy Professor, University of Toronto


This project is licensed under the MIT License - see the LICENSE file for details

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for astroNN, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size astroNN-1.0.1.tar.gz (9.3 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page