scispace - formally typeset
Open AccessJournal ArticleDOI

Array programming with NumPy

Reads0
Chats0
TLDR
In this paper, the authors review how a few fundamental array concepts lead to a simple and powerful programming paradigm for organizing, exploring and analysing scientific data, and their evolution into a flexible interoperability layer between increasingly specialized computational libraries is discussed.
Abstract
Array programming provides a powerful, compact and expressive syntax for accessing, manipulating and operating on data in vectors, matrices and higher-dimensional arrays. NumPy is the primary array programming library for the Python language. It has an essential role in research analysis pipelines in fields as diverse as physics, chemistry, astronomy, geoscience, biology, psychology, materials science, engineering, finance and economics. For example, in astronomy, NumPy was an important part of the software stack used in the discovery of gravitational waves1 and in the first imaging of a black hole2. Here we review how a few fundamental array concepts lead to a simple and powerful programming paradigm for organizing, exploring and analysing scientific data. NumPy is the foundation upon which the scientific Python ecosystem is constructed. It is so pervasive that several projects, targeting audiences with specialized needs, have developed their own NumPy-like interfaces and array objects. Owing to its central position in the ecosystem, NumPy increasingly acts as an interoperability layer between such array computation libraries and, together with its application programming interface (API), provides a flexible framework to support the next decade of scientific and industrial analysis. NumPy is the primary array programming library for Python; here its fundamental concepts are reviewed and its evolution into a flexible interoperability layer between increasingly specialized computational libraries is discussed.

read more

Content maybe subject to copyright    Report

Citations
More filters
Journal ArticleDOI

Atacama Cosmology Telescope: Constraints on prerecombination early dark energy

TL;DR: In this paper , the authors fit the EDE model to CMB data from the Atacama Cosmology Telescope (ACT) and found that EDE is favored over ΛCDM by these data at roughly 3σ significance.
Journal ArticleDOI

21-cm foregrounds and polarization leakage: cleaning and mitigation strategies

TL;DR: In this paper, the authors present a range of simulated foreground data from four different sky regions, with and without effects from polarization leakage, and analyze the contribution from foreground residuals.
Journal ArticleDOI

The Three Hundred project: dynamical state of galaxy clusters and morphology from multiwavelength synthetic maps

TL;DR: In this paper, the authors studied the connection between morphology and dynamical state of simulated clusters in the Three Hundredfolded Project (THFP) cluster sample and compared the results with other two relaxation criteria that come from observation measures: morphology in mock X-ray and Sunyaev-Zeldovich (SZ) effect images of galaxy clusters.
Journal Article

Distributional Generalization: A New Kind of Generalization

TL;DR: A new notion of generalization is introduced -- Distributional Generalization -- which roughly states that outputs of a classifier at train and test time are close *as distributions*, as opposed to close in just their average error.
Journal ArticleDOI

Surface rotation and photometric activity for Kepler targets. II. G and F main-sequence stars, and cool subgiant stars

TL;DR: Santos et al. as discussed by the authors analyzed the Kepler long-cadence data of 132,921 main-sequence F and G stars and late subgiant stars and provided rotation periods Prot and associated photometric activity proxy Sph for 39,592 targets.
References
More filters
Journal Article

Scikit-learn: Machine Learning in Python

TL;DR: Scikit-learn is a Python module integrating a wide range of state-of-the-art machine learning algorithms for medium-scale supervised and unsupervised problems, focusing on bringing machine learning to non-specialists using a general-purpose high-level language.
Journal ArticleDOI

Matplotlib: A 2D Graphics Environment

TL;DR: Matplotlib is a 2D graphics package used for Python for application development, interactive scripting, and publication-quality image generation across user interfaces and operating systems.
Journal ArticleDOI

SciPy 1.0--Fundamental Algorithms for Scientific Computing in Python

TL;DR: SciPy as discussed by the authors is an open source scientific computing library for the Python programming language, which includes functionality spanning clustering, Fourier transforms, integration, interpolation, file I/O, linear algebra, image processing, orthogonal distance regression, minimization algorithms, signal processing, sparse matrix handling, computational geometry, and statistics.
Proceedings ArticleDOI

TensorFlow: a system for large-scale machine learning

TL;DR: TensorFlow as mentioned in this paper is a machine learning system that operates at large scale and in heterogeneous environments, using dataflow graphs to represent computation, shared state, and the operations that mutate that state.
Related Papers (5)