Skip to main content

semantic-boundaries

Utilities for constructing boundaries around 2D semantic spaces.

Installation

pip install semantic-boundaries

Usage

import numpy as np
from semantic_boundaries import boundary

P=np.column_stack([x,y])

x_with_boundary,x1,y1,xgrid,ygrid,h0=boundary(P)

P must be an (n,2) array containing x/y coordinates.

boundary(
    P,
    grid=50,
    density=0.40,
    box_offset=0.1,
    tightness="auto"
)

Returns:

  • x_with_boundary
  • x1
  • y1
  • xgrid
  • ygrid
  • h0

semantic-boundaries/ ├── pyproject.toml ├── README.md ├── src/ │ └── semantic_boundaries/ │ ├── init.py │ └── boundary.py └── tests/

Download files

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

Source Distribution

semantic_boundaries-0.1.0.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

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

semantic_boundaries-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: semantic_boundaries-0.1.0.tar.gz
  • Upload date:
  • Size: 45.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for semantic_boundaries-0.1.0.tar.gz
Algorithm Hash digest
SHA256 115ce28d8349b83b8c6bce9b98460b847be48f80f1b76477369e01d15b87d6a7
MD5 0a25020571814097b146d4ac6d878350
BLAKE2b-256 97b839433fc18b3a25aa2a7a91598c81aae1ba21e8b794d0047e0fbd6aaa6a70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for semantic_boundaries-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3b6292d2ca70c36ebd1aaa3e64b4e8a2b33b0a02ada6bfed3bb991e15eb4cfd
MD5 e15e3437b42a286d65529e426eec7d0b
BLAKE2b-256 56431660e73fe0270bc98d896f48006ad27b051e9a53283d9f6f9fe9ad0761e1

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page