Skip to main content

Deep Learning for Astronomers with Tensorflow

Project description

Documentation Status GitHub license Build Status

Getting Started

astroNN is a python package to do various kinds of neural networks with targeted application in astronomy by using Keras API 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. 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 is used in your research as well as linking it to
Deep learning of multi-element abundances from high-resolution spectroscopic data [arXiv:1808.04428][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.

Source Distribution

astroNN-1.1.0.tar.gz (9.3 MB view hashes)

Uploaded Source

Built Distribution

astroNN-1.1.0-py3-none-any.whl (9.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page