Coder Social home page Coder Social logo

starnet's Introduction

This is a list of Jupyter notebooks associated with StarNet to apply on SDSS APOGEE data.

They have been tested with python-2.7 and python-3.5

Required packages:

  • numpy
  • h5py
  • random
  • keras
  • tensorflow or theano (backend for Keras)
  • matplotlib
  • seaborn
  • sklearn
  • jupyter
  • vos

All those packages can be installed with pip.

pip install <package>...<package>

If you have the Python anaconda distribution, you can (except for vos) also install the packages not already installed with

conda install <package>...<package>

You can then clone this repository:

git clone https://github.com/astroai/starnet.git
cd starnet
jupyter notebook

A new browser tab should pop up, if not, copy and paste the given link into your in your browser.

Before starting any of the other notebooks, be sure to read through 1_Download_Data.ipynb to find out what data you need for which notebooks. Not all of the available data is completely necessary depending on where you would like to begin, but reading through the notebooks will provide a more complete understanding of the necessary steps taken when creating a neural network model.

Below is a description of the available notebooks:

1_Download_Data.ipynb

  • provides descriptions of all of the available data, where the data is necessary, and the scripts needed to download the data
  • files available for download in this notebook: apStar_visits_main.h5, apStar_combined_main.h5, training_set.h5, mean_and_std.npy, test_data.h5

2_Preprocessing_of_Training_Data.ipynb

  • step by step preproceprocessing of the training data to create a training set
  • required files to run this notebook: apStar_visits_main.h5
  • files created in this notebooks: training_data.h5

3_Preprocessing_of_Test_Data.ipynb

  • step by step preproceprocessing of test data to create a test set
  • required files to run this notebook: apStar_combined_main.h5 and training_data.h5
  • files created in this notebooks: mean_and_std.npy and test_data.h5

4_Train_Model.ipynb

  • building model architecture, setting hyper-parameters, and training model using Keras
  • required files to run this notebook: mean_and_std.npy and training_data.h5
  • files created in this notebooks: starnet_cnn.h5

5_Test_Model.ipynb

  • obtain model predictions for the test set and plot the results against ASPCAP DR13 labels
  • required files to run this notebook: mean_and_std.npy, test_data.h5, starnet_cnn.h5

6_Error_Propagation.ipynb

  • obtain model statistical errors for a test set predictions
  • required files to run this notebook: mean_and_std.npy, test_data.h5, starnet_cnn.h5

starnet's People

Contributors

teaghan avatar sfabbro avatar spiffical avatar

Stargazers

Ananya Bhatnagar avatar Massimiliano Giordano Orsini avatar Matthieu Le Lain avatar Chris Kuethe avatar Jennifer Sobeck avatar dug avatar Yueyue Shen avatar  avatar Apichart Hortiangtham avatar Salman Chen avatar Jake Pember avatar BG7JAF avatar Maria Tsantaki avatar Geronimo Estellar Chan avatar Farbod Jahandar avatar Klemen Cotar avatar Steeve Bjornson avatar Henry Leung avatar Chris Lovell avatar Alexey Mints avatar Andy Casey avatar Daniel Thaagaard Andreasen avatar Jo Bovy avatar

Watchers

James Cloos avatar  avatar Salman Chen avatar

starnet's Issues

Train_model is not working. Graph execution error:

DNN library is not found.
[[{{node StarNet/conv1d/Conv1D}}]] [Op:__inference_train_function_1081]

This error is showing after successful loading of data, means_and_std.npz. Installing proper Tensrflow, keras and all. But training is not starting.

integrate continuum normalization

Whatever the StarNet model is, we should be able to add a layer to perform continuum normalization. Adding it to the model would allow to optimize it to obtain the best model according to our metric (accuracy, etc...).
Some potential ideas:

  • plain data augmentation: add bunch of fake continua to the data, and train with it
  • transfer learn from instrument configuration (such as only changing the first layer(s))
  • extra conv layer, or even a taylored cont norm layer which parameters get optimized

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.