项目作者: benstahl92

项目描述 :
Deep Learning of Supernova Ia Parameters
高级语言: Python
项目地址: git://github.com/benstahl92/deepSIP.git
创建时间: 2020-04-02T02:40:16Z
项目社区:https://github.com/benstahl92/deepSIP

开源协议:GNU General Public License v3.0

下载


deepSIP

Build Status Documentation Status
codecov License: GPL v3 Python 3.6

deepSIP (deep learning of Supernova Ia Parameters) is an open-source toolkit for measuring the phase and light-curve shape (parameterized by SNooPy’s Δm15) of a Type Ia Supernova (SN Ia) from an optical spectrum. The primary contents of the package are a set of three trained Convolutional Neural Networks (CNNs) for the aforementioned purposes, but tools for preprocessing spectra, modifying the neural architecture, training models, and sweeping through hyperparameters are also included.

If you use deepSIP in your research, please cite the following paper: Stahl et al. (2020)

Installation

First, you’ll need to clone deepSIP and enter its directory.

  1. git clone https://github.com/benstahl92/deepSIP.git
  2. cd deepSIP

(optional) It is recommended that you use a virtual environment for deepSIP and its dependencies.

  1. python -m venv dsenv # create virtual environment (one time only)
  2. source dsenv/bin/activate # each time you need to activate the environment
  3. deactivate # if/when you need to leave the environment

Install dependencies and deepSIP.

  1. pip install -r requirements.txt
  2. pip install .

Standard Usage

  1. from deepSIP import deepSIP
  2. ds = deepSIP()
  3. # spectra is a pd.DataFrame with columns including ['SN', 'filename', 'z']
  4. predictions = ds.predict(spectra, threshold = 0.5, status = True)

Full documentation is available on readthedocs.

Contributing

We welcome community involvement in the form of bug fixes, architecture improvements and new trained models, additional high-quality data (spectra and photometry), and expanded functionality. To those wishing to participate, we ask that you fork the this repository and issue a pull request with your changes (along with unit tests and a description of your contribution).

deepSIP is developed and maintained by Benjamin Stahl under the supervision of Prof. Alex Filippenko at UC Berkeley.