Skip to main content

Earth Science PRoblems for the Evaluation of Strategies, Solvers and Optimizers

Project description

Espresso

PyPI version build Documentation Status Slack

Related repositories by InLab

Introduction

Earth Science PRoblems for the Evaluation of Strategies, Solvers and Optimizers (Espresso) is a collection of datasets, and associated simulation codes, spanning a wide range of geoscience problems. Together they form a suite of real-world test problems that can be used to support the development, evaluation and benchmarking of a wide range of tools and algorithms for inference, inversion and optimisation. All problems are designed to share a common interface, so that changing from one test problem to another requires changing one line of code.

The Espresso project is a community effort - if you think it sounds useful, please consider contributing an example or two from your own research. The project is currently being coordinated by InLab, with support from the CoFI development team.

For more information, please visit our documentation.

Installation

$ pip install geo-espresso

Check Espresso documentation - installation page for details on dependencies and setting up with virtual environments.

Basic usage

Once installed, each test problem can be imported using the following command:

from espresso import <testproblem>

Replace <testproblem> with an actual problem class in Espresso, such as SimpleRegression and FmmTomography. See here for a full list of problems Espresso currently includes.

Once a problem is imported, its main functions can be called using the same structure for each problem. For instance:

from espresso import FmmTomography

problem = FmmTomography(example_number=1)
model = problem.good_model
data = problem.data
pred = problem.forward(model)
fig_model = problem.plot_model(model)

You can access related metadata programatically:

print(FmmTomography.metadata["problem_title"])
print(FmmTomography.metadata["problem_short_description"])
print(FmmTomography.metadata["author_names"])

Other problem-specific parameters can be accessed through the problem instance. For instance:

print(problem.extent)
print(problem.model_shape)

Which additional values are set is highly problem-specific and we suggest to consult the Espresso Documentation on the problems.

Contributing

Interested in contributing? Please check out our contributor's guide.

Licence

Espresso is a community driven project to create a large suite of forward simulations to enable researchers to get example data without the need to understand each individual problem in detail.

Licensing is done individually by each contributor. If a contributor wants to freely share their code example we recommend the MIT licence or a 2-clause BSD licence. To determine the licence of an existing Espresso problem, please consult the documentation section of that problem.

All the other core functions of Espresso written by InLab Espresso developer team are distributed under a 2-clause BSD licence. A copy of this licence is provided with distributions of the software.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geo-espresso-0.3.13.tar.gz (73.8 MB view hashes)

Uploaded Source

Built Distributions

geo_espresso-0.3.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (75.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

geo_espresso-0.3.13-cp311-cp311-macosx_10_9_x86_64.whl (74.2 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

geo_espresso-0.3.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (75.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

geo_espresso-0.3.13-cp310-cp310-macosx_10_9_x86_64.whl (74.2 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

geo_espresso-0.3.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (75.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

geo_espresso-0.3.13-cp39-cp39-macosx_10_9_x86_64.whl (74.2 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

geo_espresso-0.3.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (75.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

geo_espresso-0.3.13-cp38-cp38-macosx_10_9_x86_64.whl (74.2 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page