Skip to main content

Python package for Bayesian Change Point Segmentation

Project description

Bayesian Change Point Segmentation

Build Status PyPI version Coffee

Bayesian Change Point Segmentation (BCPS).

Install

If you dont already have numpy and scipy installed, it is best to download Anaconda, a python distribution that has them included.

    https://continuum.io/downloads

Dependencies can be installed by:

    pip install -r requirements.txt

PyPI install, presuming you have all its requirements installed:

	pip install bcpseg

Usage

from bcpseg import bcpseg
import numpy as np

# Create data
np.random.seed(10)
x = np.random.random(300000)
x[10000:20000] = x[10000:20000] + 0.1
x[25000:27000] = x[25000:27000] - 1

# Calculate segments
segments = bcpseg(x)
for segment in segments:
   print(segment)

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

bcpseg-1.0.0.tar.gz (135.8 kB view details)

Uploaded Source

File details

Details for the file bcpseg-1.0.0.tar.gz.

File metadata

  • Download URL: bcpseg-1.0.0.tar.gz
  • Upload date:
  • Size: 135.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for bcpseg-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e92a510d9e671ee8b83f9adf0b35bd7dba1e63327524c8e4b8f1476effe26a8a
MD5 e101018a70898a7a77c512788a675e07
BLAKE2b-256 193783fa3afddec2f1bce9df458fb5095d6a9d13baff318d95f4a3a2a3ddb1a4

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