Skip to content

Machines Learn to Infer Stellar Parameters Just by Looking at a Large Number of Spectra

Notifications You must be signed in to change notification settings

samibenabderazak/astro-machines

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astro-Machines:

Machines Learn to Infer Stellar Parameters Just by Looking at a Large Number of Spectra

Here you can find the code and (pointers to) the data used in the paper: arxiv.org/abs/2009.12872 (DOI:10.1093/mnras/staa3540)

alt

Please refer to the main project page under the ESO website, to try out the 'sliders' and 'RETR-SPECT' interfaces.

How to use

  • Clone the repository to a local directory of your choice. e.g. astro-machines.

    • git clone https://github.com/NimSed/astro-machines.git
    • cd astro-machines
  • Fetch the lists, metadata and labels for HARPS spectra:

    • cd lists
    • sh fetch_lists.sh
    • cd ..
  • Fetch the encoded HARPS dataset:

    • cd encoded
    • sh fetch_codes.sh
    • cd ..
  • Play with the provided notebook to visualize the learned features and finally reproduce the plots in section 6 of the paper.

    • cd notebooks
    • jupyter-notebook

Optional -- to pass individual HARPS-like spectra through pretrained networks

  • Fetch pretrained models:

    • cd models
    • sh fetch_models.sh
    • cd ..
  • Fetch sample spectrum:

    • cd models
    • sh fetch_sample_spectrum.sh
  • and test it:

    • python3 infer.py

You can of course use an arbitrarily chosen HARPS spectrum (in fits format). Just pass it to infer.py using the --fits_file argument.

Dependencies

pip3 install astropy

About

Machines Learn to Infer Stellar Parameters Just by Looking at a Large Number of Spectra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 98.9%
  • Other 1.1%