Giter Site home page Giter Site logo

pedro-acunha / sheep Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.66 MB

Machine Learning pipeline to classify astronomical sources into galaxies, quasars and stars using photometric data.

License: MIT License

Python 100.00%
astronomy astronomy-software classification machine-learning photometric-redshifts photometry

sheep's Introduction

SHEEP: an ML pipeline for astronomy classification

Photometric redshift-aided classification pipeline using ensemble learning to classify astronomical sources into galaxies, quasars and stars.



It was built to deal with tabular data, while allowing the use of sparse data. Our approach uses SDSS and WISE photometry, however others types of data (if tabular) are compatible with our architecture, e.g. radio fluxes/magnitudes. You can read the paper here: https://arxiv.org/pdf/2204.02080.pdf .

How to use

This work was made using Python and Jupyter Notebooks. For better visualisation and interactivity, use Jupyter Notebook. The code is ready to be used and reproduced the results in the paper. If you use it with a different dataset, please remember that the models are optimised for SDSS DR15+WISE. Do not forget to change them according to your dataset.

Data

To create the data you can use the SQL queries provided in the file "sql_query_casjobs". The data can be retrieved from https://skyserver.sdss.org/CasJobs/ .

All the feature engineering process can be seen in the file "create_data.py". Make the necessary changes, creating and eliminating features, as needed for your project.

Photo-z predictions

The chain-regressor approach used is described in the file "photo_z.py".

Galaxy, QSO and star classification

The two methodologies are described in separate files:

  • Multi-class: see file "clf_multi.py".
  • One vs all: see file "clf_1vsall.py".

The hyper-parameters obtained using FLAML are described. It is recommended to re-run FLAML everytime changes are made in the input data.

Cite us

Thank you for your interest in the SHEEP pipeline. If this work was helpful, please do not forget to cite us in your publications.

https://doi.org/10.1051/0004-6361/202243135

sheep's People

Contributors

pedro-acunha avatar

Stargazers

 avatar

Watchers

 avatar

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.