Skip to main content

TESSERA

Topological Entity Similarity Structure for Emergent Response Analysis

A domain-general framework for detecting and exploiting geometric structure in multi-dimensional feature spaces for predictive classification.

Targeting: Nature Computational Science

Core Hypothesis

When entities are characterized by multi-dimensional features and outcomes depend on relational position in feature space, similarity network topology carries predictive information that direct feature-based classifiers miss.

Three Failure Geometries

TESSERA detects geometrically distinct response regions in entity similarity space:

  1. Ecotone — responses cluster at boundaries between stable operational domains (analogous to ecological transition zones)
  2. Isolated cluster — responses occupy a distinct region, separate from main domains
  3. Diffuse — responses scattered within domains, driven by individual feature thresholds

Three Demonstration Domains

Ecology Manufacturing HPC
Entity Reef survey Production run Job
Features Environmental conditions Sensor measurements Resource usage
Outcome Bleaching Defect Failure
Dataset Global Coral Bleaching DB UCI SECOM Synthetic / NØMAD
N ~35,000 1,567 5,000+

Validation Protocol

  1. Phase 1 — Ablation: GNN vs. MLP, RF, XGBoost, LogReg (justify network)
  2. Phase 2 — Similarity: 7 measures compared (Simpson, Cosine, Bray-Curtis, Jaccard, Pearson, Euclidean, Mahalanobis)
  3. Phase 3 — Bin sensitivity: n_bins = 2, 3, 4, 5 (Simpson only)
  4. Phase 4 — Temporal: 5-fold temporal cross-validation

Using TESSERA as a classifier (0.3.0)

TesseraClassifier trains and scores the full stack (similarity network, communities, GNN, LSTM, community autoencoders, performance-weighted blend) in two calls:

import numpy as np
from tessera.models import TesseraClassifier

clf = TesseraClassifier(gnn_epochs=150, lstm_epochs=80, ae_epochs=80)
clf.fit(X, y, time_windows=tw)      # y: 1, 0, or -1 where the outcome isn't known
risk = clf.predict_proba()          # one score per entity, the -1 ones included
clf.component_weights               # {"gnn": ..., "lstm": ..., "ae": ...}
  • Transductive. Every entity passed to fit is a node of the similarity graph; predict_proba() scores all of them. To score new entities, include them in fit with label -1.
  • Nothing learns from an unlabelled entity, nor from the internal validation split that sets the blend weights: the components train on the training split, and the community outcome rates the LSTM sees come from it alone (prepare_lstm_data(..., rate_mask=)).
  • An honest held-out check: hide a set's labels as -1, fit, and compare its scores with the labels you kept aside. In-sample scores of labelled entities are optimistic (the GNN saw their place in the graph and their labels).
  • Large populations: above dense_max entities (5000) the similarity is the sparse kNN one (core/sparse_similarity.py: memory N x k, not N x N).
  • Needs the ML extras: pip install 'tessera-ml[ml]'. device defaults to CUDA when available.

Project Structure

tessera/
├── __init__.py                    # Package init (v0.1.0)
├── core/
│   ├── __init__.py
│   ├── similarity.py              # 7 similarity measures
│   └── network.py                 # Graph construction (threshold, kNN, weighted)
├── synthetic/
│   ├── __init__.py
│   ├── landscape.py               # Feature space topology builder
│   ├── outcomes.py                # Failure pattern assignment (3 types + mixed)
│   └── visualize.py               # Diagnostic plots
├── data_acquisition.py            # Real dataset download & preprocessing
├── test_generator.py              # Synthetic data validation
└── test_pipeline.py               # End-to-end pipeline test

Current Status

  • Synthetic data generator (3 patterns + mixed, with entity injection)
  • Similarity engine (7 measures, vectorized)
  • Network construction (threshold, kNN, weighted)
  • Pipeline validation (data → similarity → graph)
  • GNN model
  • Real dataset acquisition (coral bleaching, SECOM)
  • Validation pipeline (4 phases)
  • Methods section
  • Results
  • Introduction, Discussion, Conclusions

Paper Writing Order

  1. Methods
  2. Results
  3. Introduction
  4. Discussion
  5. Conclusions
  6. Abstract (last)

References

  • van Woesik, R. & Kratochwill, C. (2022). A global coral-bleaching database, 1980–2020. Scientific Data, 9(20).
  • McCann, M. & Johnston, A. (2008). SECOM Dataset. UCI ML Repository.
  • Tonini, J. (2025). NØMAD-HPC. Journal of Open Research Software.

Metadata

Release files for tessera-ml 0.3.0

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

Source distribution (sdist)

Source distribution for tessera-ml 0.3.0
File Size Uploaded Provenance Actions
tessera_ml-0.3.0.tar.gz 96.9 kB Without provenance Details for tessera_ml-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tessera-ml 0.3.0
File Interpreter ABI Platform Actions
tessera_ml-0.3.0-py3-none-any.whl Python 3 none any Details for tessera_ml-0.3.0-py3-none-any.whl

Total release size: 194.8 kB

Release files / tessera_ml-0.3.0.tar.gz

Download URL tessera_ml-0.3.0.tar.gz
Size 96.9 kB
Tags Source
SHA-256 checksum
How to use checksums
784049eb2ca2285d5c401689885afc5d29f86a4c27692314b4487d42282467d1
BLAKE2b-256 checksum
How to use checksums
1a7245ffb8c54449b80048cdb6fee033f54e5155f2c2c1ef8f9461ef611dd4ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.7

Release files / tessera_ml-0.3.0-py3-none-any.whl

Download URL tessera_ml-0.3.0-py3-none-any.whl
Size 97.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ab9de64ed1f34095338e75cb20e7f095f1b55f97523afb62867ad49c838c8f1
BLAKE2b-256 checksum
How to use checksums
2bf56747721cac2635a62e2a70555a36db0cb766b5cfd43caea04d183fab23f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Security for tessera-ml 0.3.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

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