Skip to main content

PyStexa

PyStexa (Python Spatio-Temporal EXplainable Architectures) is a PyTorch library for explainable spatio-temporal architectures. It provides reusable neural network components that integrate with standard PyTorch workflows.

Installation

PyStexa requires Python 3.10 or newer and PyTorch 2.9.1 or newer.

Install PyStexa from PyPI:

python -m pip install pystexa

Example

The following example shows how a PyStexa component can be combined with standard PyTorch operations.

import torch

from pystexa.nn.graph.masking import GlobalEdgeMask

mask_generator = GlobalEdgeMask(num_nodes=3)

adjacency = torch.tensor(
    [
        [0.0, 1.0, 0.5],
        [0.2, 0.0, 1.0],
        [1.0, 0.3, 0.0],
    ]
)
node_features = torch.randn(3, 2)

edge_mask = mask_generator()
masked_adjacency = adjacency * edge_mask
aggregated_features = masked_adjacency @ node_features

loss = aggregated_features.square().mean()
loss.backward()

Metadata

Release files for pystexa 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pystexa 0.0.1
File Size Uploaded
pystexa-0.0.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pystexa 0.0.1
File Interpreter ABI Platform
pystexa-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / pystexa-0.0.1.tar.gz

Download URL pystexa-0.0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b81d4c4891744ce3a13156774a4dc669d2031da318bafd510cefcef5da0064d0
BLAKE2b-256 checksum
How to use checksums
52ede97ab0e49a99f469b7d5844d3e751a9d5decf505a9ea17f63b7bf2592be6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / pystexa-0.0.1-py3-none-any.whl

Download URL pystexa-0.0.1-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be98f45b6f710153ebc8ce9a8d9007483b84adc1aa6e869074dc87a7a7b7161b
BLAKE2b-256 checksum
How to use checksums
669b096b32c113e9dd21fb8945eec18f58506db4301c1b9c7868cabadf29b63f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release 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