Giter Club home page Giter Club logo

quasarnn's Introduction

Deep Learning final project: DeepRedshift πŸ€–

By: Gabriel Missael Barco

Professor: Dra. Alma Xochitl GonzΓ‘lez Morales

The objective of this project is, given the light from a quasar, to predict its redshift. The redshift measures the distance to the quasar, an essential parameter in cosmology.

The data is taken from a simulation provided by the professor and it's composed of 40,000 quasars. An example of the data is shown below:

To assess this problem, we tried two different approaches:

  1. Fully connected neural network.
  2. Convolutional neural network.

For each of those approaches, we tried different architectures and hyperparameters. We obtained the best results with (surprisingly) a fully connected neural network. The summary of the best result is shown below:

To compare this result, we compare this best run with the results obtained by Niculas Busca, Christophe Ballan, 2018, QuasarNET: Human-level spectral classification and redshifting with Deep Neural Networks . Notably, we compare the distribution of the implied velocity difference between the predicted and the real redshift. In summary, this model is five times worse than QuasarNET in predicting the redshift.

QuasarNET obtains a $\Delta v = (8 \pm 664)km/s$, and this project $\Delta v = (-40 \pm 2582)km/s$. The difference is huge, but it's important to remember that this model was trained with only 40k examples, while QuasarNET was trained with about half a million examples.

Weights & biases magic ✨

We tracked all of the experiments with Weights and Biases. This tool is handy for keeping track of the experiments. The link to the project is here. You can see the experiments' results, the code, and the hyperparameters used.

How to run the code πŸƒβ€β™‚οΈ

To run the code, you need to have Python 3.9 and conda installed. Then, you need to create a new environment with the dependencies:

conda create -n quasar python=3.8
conda activate quasar
conda install --file requirements.txt

Then, you can start running the main notebook, and that's it! πŸŽ‰. There are two notebooks, one with all the project details, report.ipynb and code explained, and the other one with the code only, proyecto_final.ipynb. Part of the code used in the proyecto_final.ipynb notebook is in the DeepRedshift folder.

Finally, if you prefer to read the report, refer to the final_report.pdf file. Thanks for reading! πŸ™

References πŸ“š

quasarnn's People

Stargazers

 avatar

Watchers

 avatar  avatar  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.