-
Advice on describing Bayesian analysis of neutron and X-ray reflectometry
Authors:
Andrew R. McCluskey,
Andrew J. Caruana,
Christy J. Kinane,
Alexander J. Armstrong,
Tom Arnold,
Joshaniel F. K. Cooper,
David L. Cortie,
Arwel V. Hughes,
Jean-François Moulin,
Andrew R. J. Nelson,
Wojciech Potrzebowski,
Vladimir Straostin
Abstract:
Driven by the availability of modern software and hardware, Bayesian analysis is becoming more popular in neutron and X-ray reflectometry analysis. The understandability and replicability of these analyses may be harmed by inconsistencies in how the probability distributions central to Bayesian methods are represented in the literature. Herein, we provide advice on how to report the results of Bay…
▽ More
Driven by the availability of modern software and hardware, Bayesian analysis is becoming more popular in neutron and X-ray reflectometry analysis. The understandability and replicability of these analyses may be harmed by inconsistencies in how the probability distributions central to Bayesian methods are represented in the literature. Herein, we provide advice on how to report the results of Bayesian analysis as applied to neutron and X-ray reflectometry. This includes the clear reporting of initial starting conditions, the prior probabilities, and results of any analysis, and the posterior probabilities that are the Bayesian equivalent of the error bar, to enable replicability and improve understanding. We believe that this advice, grounded in our experience working in the field, will enable greater analytical reproducibility among the reflectometry community, as well as improve the quality and usability of results.
△ Less
Submitted 22 January, 2023; v1 submitted 21 July, 2022;
originally announced July 2022.
-
emcee v3: A Python ensemble sampling toolkit for affine-invariant MCMC
Authors:
Daniel Foreman-Mackey,
Will M. Farr,
Manodeep Sinha,
Anne M. Archibald,
David W. Hogg,
Jeremy S. Sanders,
Joe Zuntz,
Peter K. G. Williams,
Andrew R. J. Nelson,
Miguel de Val-Borro,
Tobias Erhardt,
Ilya Pashchenko,
Oriol Abril Pla
Abstract:
emcee is a Python library implementing a class of affine-invariant ensemble samplers for Markov chain Monte Carlo (MCMC). This package has been widely applied to probabilistic modeling problems in astrophysics where it was originally published, with some applications in other fields. When it was first released in 2012, the interface implemented in emcee was fundamentally different from the MCMC li…
▽ More
emcee is a Python library implementing a class of affine-invariant ensemble samplers for Markov chain Monte Carlo (MCMC). This package has been widely applied to probabilistic modeling problems in astrophysics where it was originally published, with some applications in other fields. When it was first released in 2012, the interface implemented in emcee was fundamentally different from the MCMC libraries that were popular at the time, such as PyMC, because it was specifically designed to work with "black box" models instead of structured graphical models. This has been a popular interface for applications in astrophysics because it is often non-trivial to implement realistic physics within the modeling frameworks required by other libraries. Since emcee's release, other libraries have been developed with similar interfaces, such as dynesty (Speagle 2019). The version 3.0 release of emcee is the first major release of the library in about 6 years and it includes a full re-write of the computational backend, several commonly requested features, and a set of new "move" implementations.
△ Less
Submitted 18 November, 2019;
originally announced November 2019.
-
Automated Weed Detection in Aerial Imagery with Context
Authors:
Delia Bullock,
Andrew Mangeni,
Tyr Wiesner-Hanks,
Chad DeChant,
Ethan L. Stewart,
Nicholas Kaczmar,
Judith M. Kolkman,
Rebecca J. Nelson,
Michael A. Gore,
Hod Lipson
Abstract:
In this paper, we demonstrate the ability to discriminate between cultivated maize plant and grass or grass-like weed image segments using the context surrounding the image segments. While convolutional neural networks have brought state of the art accuracies within object detection, errors arise when objects in different classes share similar features. This scenario often occurs when objects in i…
▽ More
In this paper, we demonstrate the ability to discriminate between cultivated maize plant and grass or grass-like weed image segments using the context surrounding the image segments. While convolutional neural networks have brought state of the art accuracies within object detection, errors arise when objects in different classes share similar features. This scenario often occurs when objects in images are viewed at too small of a scale to discern distinct differences in features, causing images to be incorrectly classified or localized. To solve this problem, we will explore using context when classifying image segments. This technique involves feeding a convolutional neural network a central square image along with a border of its direct surroundings at train and test times. This means that although images are labelled at a smaller scale to preserve accurate localization, the network classifies the images and learns features that include the wider context. We demonstrate the benefits of this context technique in the object detection task through a case study of grass (foxtail) and grass-like (yellow nutsedge) weed detection in maize fields. In this standard situation, adding context alone nearly halved the error of the neural network from 7.1% to 4.3%. After only one epoch with context, the network also achieved a higher accuracy than the network without context did after 50 epochs. The benefits of using the context technique are likely to particularly evident in agricultural contexts in which parts (such as leaves) of several plants may appear similar when not taking into account the context in which those parts appear.
△ Less
Submitted 19 November, 2019; v1 submitted 1 October, 2019;
originally announced October 2019.
-
SciPy 1.0--Fundamental Algorithms for Scientific Computing in Python
Authors:
Pauli Virtanen,
Ralf Gommers,
Travis E. Oliphant,
Matt Haberland,
Tyler Reddy,
David Cournapeau,
Evgeni Burovski,
Pearu Peterson,
Warren Weckesser,
Jonathan Bright,
Stéfan J. van der Walt,
Matthew Brett,
Joshua Wilson,
K. Jarrod Millman,
Nikolay Mayorov,
Andrew R. J. Nelson,
Eric Jones,
Robert Kern,
Eric Larson,
CJ Carey,
İlhan Polat,
Yu Feng,
Eric W. Moore,
Jake VanderPlas,
Denis Laxalde
, et al. (10 additional authors not shown)
Abstract:
SciPy is an open source scientific computing library for the Python programming language. SciPy 1.0 was released in late 2017, about 16 years after the original version 0.1 release. SciPy has become a de facto standard for leveraging scientific algorithms in the Python programming language, with more than 600 unique code contributors, thousands of dependent packages, over 100,000 dependent reposit…
▽ More
SciPy is an open source scientific computing library for the Python programming language. SciPy 1.0 was released in late 2017, about 16 years after the original version 0.1 release. SciPy has become a de facto standard for leveraging scientific algorithms in the Python programming language, with more than 600 unique code contributors, thousands of dependent packages, over 100,000 dependent repositories, and millions of downloads per year. This includes usage of SciPy in almost half of all machine learning projects on GitHub, and usage by high profile projects including LIGO gravitational wave analysis and creation of the first-ever image of a black hole (M87). The library 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. In this work, we provide an overview of the capabilities and development practices of the SciPy library and highlight some recent technical developments.
△ Less
Submitted 23 July, 2019;
originally announced July 2019.
-
Observations of Quantum Dynamics by Solution-State NMR Spectroscopy
Authors:
M. A. Pravia,
E. Fortunato,
Y. Weinstein,
M. D. Price,
G. Teklemariam,
R. J. Nelson,
Y. Sharf,
S. Somaroo,
C. H. Tseng,
T. F. Havel,
D. G. Cory
Abstract:
NMR is emerging as a valuable testbed for the investigation of foundational questions in quantum mechanics. The present paper outlines the preparation of a class of mixed states, called pseudo-pure states, that emulate pure quantum states in the highly mixed environment typically used to describe solution-state NMR samples. It also describes the NMR observation of spinor behavior in spin 1/2 nuc…
▽ More
NMR is emerging as a valuable testbed for the investigation of foundational questions in quantum mechanics. The present paper outlines the preparation of a class of mixed states, called pseudo-pure states, that emulate pure quantum states in the highly mixed environment typically used to describe solution-state NMR samples. It also describes the NMR observation of spinor behavior in spin 1/2 nuclei, the simulation of wave function collapse using a magnetic field gradient, the creation of entangled (or Bell) pseudo-pure states, and a brief discussion of quantum computing logic gates, including the Quantum Fourier Transform. These experiments show that liquid-state NMR can be used to demonstrate quantum dynamics at a level suitable for laboratory exercises.
△ Less
Submitted 18 June, 1999; v1 submitted 19 May, 1999;
originally announced May 1999.
-
Experimental Demonstration of Greenberger-Horne-Zeilinger Correlations Using Nuclear Magnetic Resonance
Authors:
Richard J. Nelson,
David G. Cory,
Seth Lloyd
Abstract:
The Greenberger-Horne-Zeilinger (GHZ) effect provides an example of quantum correlations that cannot be explained by classical local hidden variables. This paper reports on the experimental realization of GHZ correlations using nuclear magnetic resonance (NMR). The NMR experiment differs from the originally proposed GHZ experiment in several ways: it is performed on mixed states rather than pure…
▽ More
The Greenberger-Horne-Zeilinger (GHZ) effect provides an example of quantum correlations that cannot be explained by classical local hidden variables. This paper reports on the experimental realization of GHZ correlations using nuclear magnetic resonance (NMR). The NMR experiment differs from the originally proposed GHZ experiment in several ways: it is performed on mixed states rather than pure states; and instead of being widely separated, the spins on which it is performed are all located in the same molecule. As a result, the NMR version of the GHZ experiment cannot entirely rule out classical local hidden variables. It nonetheless provides an unambiguous demonstration of the "paradoxical" GHZ correlations, and shows that any classical hidden variables must communicate by non-standard and previously undetected forces. The NMR demonstration of GHZ correlations shows the power of NMR quantum information processing techniques for demonstrating fundamental effects in quantum mechanics.
△ Less
Submitted 7 May, 1999;
originally announced May 1999.