Sapsan

Sapsan: Framework for Supernovae Turbulence Modeling with Machine Learning - Published in JOSS (2021)

https://github.com/pikarpov-lanl/sapsan

Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

astrophysics machine-learning pytorch turbulence

Scientific Fields

Mathematics Computer Science - 37% confidence
Last synced: 6 months ago · JSON representation

Repository

ML-based turbulence modeling for astrophysics

Basic Info
Statistics
  • Stars: 14
  • Watchers: 4
  • Forks: 4
  • Open Issues: 2
  • Releases: 40
Topics
astrophysics machine-learning pytorch turbulence
Created over 6 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

Sapsan Sapsan logo

Sapsan is a pipeline for Machine Learning (ML) based turbulence modeling. While turbulence is important in a wide range of mediums, the pipeline primarily focuses on astrophysical applications. With Sapsan, one can create their own custom models or use either conventional or physics-informed ML approaches for turbulence modeling included with the pipeline (estimators). Sapsan is designed to take out all the hard work from data preparation and analysis, leaving you focused on ML model design, layer by layer.

Feel free to check out a website version at sapsan.app. The interface is identical to the GUI of the local version of Sapsan, except lacking the ability to edit the model code on the fly.

pypi pypi DOI

Documentation

Please refer to Sapsan's Wiki for detailed installation, tutorials, troubleshooting, and API, as well as to learn more about the framework's capabilities.

Quick Start

1. Install PyTorch (prerequisite)

Sapsan can be run on both CPU and GPU. Please follow the instructions on PyTorch to install the latest version (torch>=1.7.1 & CUDA>=11.0).

2. Install via pip (recommended)

pip install sapsan

OR Clone from git

git clone https://github.com/pikarpov-LANL/Sapsan.git cd Sapsan/ python setup.py install

Note: see Installation Page on the Wiki for complete instructions with Graphviz and Docker installation.

3. Test Installation

To make sure everything is alright, run a test of your setup: sapsan test

4. Run Examples

To get started and familiarize yourself with the interface, feel free to run the included examples (CNN, PIMLTurb, PICAE or on 3D data, and KRR on 2D data). To copy the examples, type: sapsan get_examples This will create a folder ./sapsan_examples with appropriate example jupyter notebooks.

5. Create Custom Projects!

To start a custom project, designing your own custom estimator, i.e., network, go ahead and run: sapsan create {name} where {name} should be replaced with your custom project name. As a result, a pre-filled template for the estimator, a jupyter notebook to run everything from, and Docker will be initialized.


Sapsan has a BSD-style license, as found in the LICENSE file.

© (or copyright) 2019. Triad National Security, LLC. All rights reserved. This program was produced under U.S. Government contract 89233218CNA000001 for Los Alamos National Laboratory (LANL), which is operated by Triad National Security, LLC for the U.S. Department of Energy/National Nuclear Security Administration. All rights in the program are reserved by Triad National Security, LLC, and the U.S. Department of Energy/National Nuclear Security Administration. The Government is granted for itself and others acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license in this material to reproduce, prepare derivative works, distribute copies to the public, perform publicly and display publicly, and to permit others to do so.

Owner

  • Name: Platon I. Karpov
  • Login: pikarpov-LANL
  • Kind: user
  • Company: Los Alamos National Laboratory

For my Ph.D. thesis, I am working on modeling turbulence with ML in core-collapse supernovae.

JOSS Publication

Sapsan: Framework for Supernovae Turbulence Modeling with Machine Learning
Published
November 26, 2021
Volume 6, Issue 67, Page 3199
Authors
Platon I. Karpov ORCID
Department of Astronomy & Astrophysics, University of California, Santa Cruz, CA, Los Alamos National Laboratory, Los Alamos, NM
Iskandar Sitdikov ORCID
Provectus IT Inc., Palo Alto, CA
Chengkun Huang ORCID
Los Alamos National Laboratory, Los Alamos, NM
Chris L. Fryer ORCID
Los Alamos National Laboratory, Los Alamos, NM
Editor
Dan Foreman-Mackey ORCID
Tags
machine learning astronomy supernovae turbulence

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 424
  • Total Committers: 3
  • Avg Commits per committer: 141.333
  • Development Distribution Score (DDS): 0.368
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Platon I Karpov 5****L 268
pikarpov p****v@u****u 126
Iskandar Sitdikov I****3 30
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 10
  • Total pull requests: 95
  • Average time to close issues: over 1 year
  • Average time to close pull requests: 5 days
  • Total issue authors: 6
  • Total pull request authors: 6
  • Average comments per issue: 1.6
  • Average comments per pull request: 0.05
  • Merged pull requests: 82
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • pikarpov-LANL (5)
  • MilesCranmer (1)
  • IceKhan13 (1)
  • kburns (1)
  • Agnes-U (1)
  • joanna-pk (1)
Pull Request Authors
  • pikarpov-LANL (85)
  • pikarpov (5)
  • dfm (2)
  • MilesCranmer (1)
  • dependabot[bot] (1)
  • IceKhan13 (1)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels
bug (1) dependencies (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 90 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 38
  • Total maintainers: 1
pypi.org: sapsan

Sapsan project

  • Versions: 38
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 90 Last month
Rankings
Dependent packages count: 10.0%
Stargazers count: 16.0%
Average: 16.3%
Downloads: 16.7%
Forks count: 16.9%
Dependent repos count: 21.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

requirements.txt pypi
  • Click >=7.1.2
  • Pillow >=8.1.0
  • catalyst >=21.5,<=21.12
  • graphviz >=0.14
  • h5py >=2.10.0
  • jupyter >=1.0.0
  • jupytext >=1.11
  • matplotlib >=3.3.2
  • mlflow >=1.20.1
  • notebook >=6.4.3
  • numpy >=v1.21.0
  • opencv-python >=4.5.4
  • pandas >=1.1.0
  • plotly >=5.2.0
  • protobuf ==3.20.
  • pytest >=6.2
  • safitty >=1.3
  • scikit-image >=0.19.3
  • scikit-learn >=1.0.2
  • scipy >=1.7.3
  • six >=1.15.0
  • streamlit ==0.84.2
  • tornado >=6.1.0
.github/workflows/manual.yml actions
  • actions/checkout master composite
  • actions/setup-python v1 composite
  • pypa/gh-action-pypi-publish master composite
.github/workflows/pypi-release.yml actions
  • actions/checkout master composite
  • actions/setup-python v1 composite
  • pypa/gh-action-pypi-publish master composite
.github/workflows/pythonpackage.yml actions
  • actions/checkout v1 composite
  • actions/setup-python v1 composite
.github/workflows/release-drafter.yml actions
  • release-drafter/release-drafter v5 composite
Dockerfile docker
  • python 3.8.5-slim build
sapsan/core/cli/templates/setup.py pypi
setup.py pypi