Skip to main content

Hedging algorithms with lag

Project description

# ledge

[![Build Status](https://img.shields.io/travis/reichlab/ledge.svg?style=flat-square)](https://travis-ci.org/reichlab/ledge) [![Pypi](https://img.shields.io/pypi/v/ledge.svg?style=flat-square)](https://pypi.python.org/pypi/ledge)

Hedging algorithms with lag.

Besides the regular setting of ‘prediction with expert advice’, we are interested in working with truth values with _lags_. This results in a partially observed truth value for the present (and the past) at each step. In a discrete time setting with delays in accurate characterization of _final_ truth, a truth value is specified by:

  1. timepoint: The time itself

  2. lag: Time the value was revealed - timepoint

## Usage

ledge is a composed from a bunch of types and functions. It works with [DataArrays](http://xarray.pydata.org/en/stable/generated/xarray.DataArray.html#xarray.DataArray) for model _predictions_, _losses_ and _truths_.

There is no single model and the user is supposed to _compose_ a model using the components in here. Each module is written as a literate [org-mode](https://orgmode.org/) file and contains usage documentation for the containing functions. Start with the main file ./ledge/README.org.

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

ledge-0.0.8.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

ledge-0.0.8-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file ledge-0.0.8.tar.gz.

File metadata

  • Download URL: ledge-0.0.8.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ledge-0.0.8.tar.gz
Algorithm Hash digest
SHA256 21f82e6543ee97c25776101cc3767147a9ed29724a098eb9400c57271d6363d8
MD5 19c8c728daa1e8b3139a3f91fcf8f3b3
BLAKE2b-256 65dd038b985e7e1abf7ff279d5f440ccf40f2325bcd758bdf01b4f728fccadc3

See more details on using hashes here.

File details

Details for the file ledge-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for ledge-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 22e511b99f1541f8fc635cd74f2bc7807d6548f728df2d39c82dcf3915a4e79b
MD5 36e760452cd4fc496fb25b96bf1c0e35
BLAKE2b-256 1d81619d82c63ba6fbb18856c52efc601201f846c269c8618a7f11de4f0979b8

See more details on using hashes here.

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