https://github.com/quansight-labs/array-api-demo
Prototype for Python Array API use case. PyTorch Tensors with SciPy.
https://github.com/quansight-labs/array-api-demo
array demo pytorch scipy
Last synced: 2 months ago
JSON representation
Prototype for Python Array API use case. PyTorch Tensors with SciPy.
- Host: GitHub
- URL: https://github.com/quansight-labs/array-api-demo
- Owner: Quansight-Labs
- License: gpl-3.0
- Created: 2021-10-07T20:40:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-08T14:13:22.000Z (over 3 years ago)
- Last Synced: 2025-01-19T19:56:08.707Z (4 months ago)
- Topics: array, demo, pytorch, scipy
- Language: Jupyter Notebook
- Homepage: https://quansight-labs.github.io/array-api-demo/
- Size: 4.51 MB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Array API Demo
This notebook reproduces key plots in the data guide paper (https://arxiv.org/abs/1908.11170) in python. The demo focuses on gravitational wave event GW150914, and covers issues such as windowing and Fourier transforms, power spectral estimation, maximizing the likelihood for numerical relativity templates and exploring correlations in the data and residuals. For code used to
produce published figures, see https://github.com/gw-odw/Data-Guide-Paper. This demo is inspired and built on top of https://github.com/losc-tutorial/Data_Guide. We would like to extend credits to the original implementation. We use the https://jupyterbook.org/ to build the executable notebooks.The main idea behind this demo is to showcase the use of PyTorch Tensors with SciPy modules. This is possible with [NEP 47](https://numpy.org/neps/nep-0047-array-api-standard.html) or [Array API](https://data-apis.org/array-api/latest/).
Please use [this](https://github.com/AnirudhDagar/scipy/tree/array-api-demo) SciPy branch for this demo.
### Build & Deploy Instructions
First build the jupyter book html files using the following command. This will execute all the markdown and ipynb files and create a `_build/html` dir with the website built.
```bash
jupyter-book build .
```Branch `gh-pages` holds the deployed website. To update the deployment, use `ghp-import`. Inside the repo, run the following to update the deployed website with the current build.
```
ghp-import -n -p -f _build/html
```For more information, please refer to https://jupyterbook.org/start/your-first-book.html.
## Acknowledgement
Work done during the development of this demo was generously supported by [Quansight Labs](https://labs.quansight.org/).