Skip to main content

Information-geometric early warning signals (KL rate and geodesic acceleration).

Project description

geoews

geoews is a pip-installable Python package for information-geometric early warning signals.

This package extracts the canonical implementations from the source research repository:

  • sliding-window Gaussian fitting
  • KL divergence rate between consecutive Gaussian windows
  • Fisher-Rao step distance (univariate exact, multivariate midpoint approximation)
  • geodesic acceleration indicator

Install

pip install .

Quick start

import numpy as np
from geoews.windows import estimate_gaussian_params
from geoews.indicators import kl_divergence_rate, geodesic_acceleration

x = np.sin(np.linspace(0, 12, 2000))
times, mus, sigmas = estimate_gaussian_params(x, window_size=50, step=1)

kl = kl_divergence_rate(mus, sigmas)
acc = geodesic_acceleration(mus, sigmas, cumul_window=30)

Canonical constants

  • COVARIANCE_REGULARIZATION = 1e-6

Development

pip install -e ".[dev]"
pytest

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

geoews-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geoews-0.1.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file geoews-0.1.0.tar.gz.

File metadata

  • Download URL: geoews-0.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for geoews-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ce198b63fba28d590dcd3bed9861a6b99442b7dc5a501ec8fe18d7be84e6e2f
MD5 c9ddc380d0097ad74f6bf98aeb62f578
BLAKE2b-256 a49bfde332794aae9ee840514af7ee9a23c70f61b5a73f798f4b05f8d841773e

See more details on using hashes here.

File details

Details for the file geoews-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: geoews-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for geoews-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 600c38e114daeda5fd0531585ccba96f9f5d97591159b4d6a9f14b6a3ee383ba
MD5 3fd1533b8b89fb46f5ccf220a75ba6e8
BLAKE2b-256 5d190099ec3f5dfdeb9853ec459194b6f8597ac234b6ad12e41fea52fb44856d

See more details on using hashes here.

Supported by

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