Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

eyetrajectoriespy

PyPI version GitHub Release Python Documentation

Functional analysis of continuous and sparse eye-tracking trajectories in Python.

Instead of immediately reducing gaze to fixation counts, dwell summaries, or symbolic scanpaths, eyetrajectoriespy treats gaze as a time-indexed functional process

$$ \mathbf G_i(t)= \begin{bmatrix} x_i(t)\ y_i(t) \end{bmatrix}. $$

Stable: 1.0.0 · 1.1 release candidate under qualification: 1.1.0rc1 · Python: 3.11–3.13

pip install eyetrajectoriespy
# exact reproducible stable release
pip install eyetrajectoriespy==1.0.0

Documentation · Quick start · Choose a workflow · Mathematics · Visual gallery · Validation

Current stable release: 1.0.0
1.0.0 freezes the evidence-backed 1.0 compatibility boundary over the production-observed 1.0.0rc1 scientific/API surface without adding a new estimator or changing scientific behavior. Release qualification, immutable hashes, OIDC/attestation evidence, and publication chronology are retained in the 1.0.0 release notes and validation records rather than repeated on this landing page.

1.1 release candidate under qualification: 1.1.0rc1
The post-1.0 sparse/irregular scientific programme (#158) and integration/readiness tranches R1–R4 (#183) are complete. R4 recorded eligible_for_rc_decision=true, so R5 is qualifying the same supported module-scoped 1.1 APIs under the literal 1.1.0rc1 identity. The frozen 1.0.0 root compatibility boundary is unchanged, fresh RC evidence is kept separate from historical 1.0/R4 records, and publication readiness remains jointly disarmed.

Sparse planar covariance structure estimated by eyetrajectoriespy

What can it model?

Scientific object Main route Status
Dense/common-grid continuous x/y gaze fit_mfpca() stable 1.0
Sparse/irregular single-coordinate gaze fit_sparse_fpca() + PACE stable 1.0
Sparse/irregular paired planar x/y gaze fit_sparse_mfpca() + joint PACE stable 1.0
Repeated participant/trial functions functional mixed effects / multilevel FPCA stable 1.0
Conditional uncertainty for sparse PACE and joint PACE scores sparse_score_uncertainty / sparse_multivariate_score_uncertainty supported 1.1 RC module API
Audited sparse smoothing-bandwidth selection sparse_bandwidth_selection / sparse_multivariate_bandwidth_selection supported 1.1 RC module API
Candidate-sample observation-process diagnostics observation_process supported 1.1 RC module API
Sparse participant/trial hierarchical decomposition sparse_multilevel supported 1.1 RC module API
Coordinate-specific asynchronous sparse planar gaze sparse_multivariate_async supported 1.1 RC module API
Future/partially observed sparse trajectory prediction and participant-aware conformal bands sparse_partial_prediction / sparse_partial_conformal supported 1.1 RC module API

The post-1.0 module-scoped APIs are documented in the 1.1 module API and integration audit. They are intentionally not root re-exports and should not be interpreted as already-published 1.1.0 functionality.

Which workflow do I need?

Scientific question Start here
What are the dominant modes of continuous gaze variation? Continuous gaze exploration + FPCA
How does an experimental predictor change a continuous functional response? Experimental functional regression
How do repeated participant trials affect functional inference? Repeated-trial functional mixed effects
How do predictors change repeated binary or count functional responses? Generalized binary/count responses
Is recurrence or nonlinear temporal organization the scientific target? Nonlinear/recurrence analysis

Minimal dense/common-grid example

from eyetrajectoriespy import fit_mfpca, simulate_planar_trajectories

gaze = simulate_planar_trajectories(
    n_participants=20,
    trials_per_participant=6,
    random_state=7,
)

fit = fit_mfpca(gaze, n_components=0.95, scaling="dimension_sd")
print(fit.explained_variance_ratio)

Minimal sparse paired-planar example

import numpy as np
from eyetrajectoriespy import fit_sparse_mfpca

fit = fit_sparse_mfpca(
    irregular,
    dimensions=("x", "y"),
    n_components=2,
    evaluation_grid=np.linspace(0.0, 1.0, 41),
    mean_bandwidth=0.20,
    covariance_bandwidth=0.30,
    measurement_error="diagonal",
    measurement_error_variance=(0.0025, 0.0025),
    psd_action="project",
    score_failure_action="retain_nan",
)

The sparse estimator uses native paired observations to estimate a joint population mean/covariance model. Evaluating fitted population functions at native times for PACE is not raw-trajectory interpolation.

What eyetrajectoriespy refuses to hide

Consequential choices stay explicit: missingness, interpolation, smoothing, registration, time/coordinate normalization, analysis support, measurement-error assumptions, PSD policy, family/model selection, resampling unit, denominator/exposure semantics, and failure/status codes.

Scope

eyetrajectoriespy starts once gaze has a scientifically interpretable time and coordinate representation. Event detection, general gaze QC, survival analysis, AOI perturbation robustness, and symbolic sequence models belong upstream or in specialist packages.

The package deliberately separates stable public methods, advanced diagnostics, external-backend interoperability, and experimental methods. Scientific product qualification matters more than estimator count.

Where is the full advanced API?

The README is intentionally a compact entry point rather than the exhaustive function catalogue.

Release lineage and reproducibility

The stable pre-1.0 sequence remains explicit: 0.10.0 introduced the native sparse univariate FPCA/PACE line, the immutable 0.11.0rc1 prerelease preceded final 0.11 known-truth recovery infrastructure, and 0.12.0 added the native sparse planar MFPCA/joint-PACE line. 1.0.0 closes that stabilization programme as the frozen stable compatibility baseline. Published tags and distributions remain immutable historical records. The completed A1–C1 and R1–R4 work is now being qualified under the non-published 1.1.0rc1 identity; a green RC still does not authorize publication.

Documentation and reproducibility

Development checks:

python -m pytest --cov=eyetrajectoriespy
python -m compileall -q src
python scripts/generate_function_equation_index.py --check
python scripts/generate_docs_gallery.py
python scripts/generate_sparse_mfpca_docs_figure.py
python scripts/validate_docs_contracts.py
mkdocs build --strict

Citation and license

See CITATION.cff for citation metadata. MIT © 2026 Stefanos Balaskas.

Metadata

Release files for eyetrajectoriespy 1.1.0rc1

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

Source distribution (sdist)

Source distribution for eyetrajectoriespy 1.1.0rc1
File Size Uploaded Provenance Actions
eyetrajectoriespy-1.1.0rc1.tar.gz 540.3 kB With provenance Details for eyetrajectoriespy-1.1.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eyetrajectoriespy 1.1.0rc1
File Interpreter ABI Platform Actions
eyetrajectoriespy-1.1.0rc1-py3-none-any.whl Python 3 none any Details for eyetrajectoriespy-1.1.0rc1-py3-none-any.whl

Total release size: 976.9 kB

Release files / eyetrajectoriespy-1.1.0rc1.tar.gz

Download URL eyetrajectoriespy-1.1.0rc1.tar.gz
Size 540.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f67cf81f93aef8e47d47d918f0945bdaaa437d542381f60316ff0996e2370846
BLAKE2b-256 checksum
How to use checksums
369dbb5f4d49604b4f717b0416471d1f8097033f3a27b057257410e97e8d285c
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 6, 2026.

Transparency log

Release files / eyetrajectoriespy-1.1.0rc1-py3-none-any.whl

Download URL eyetrajectoriespy-1.1.0rc1-py3-none-any.whl
Size 436.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
875242e0c7cd1fae0fdb9e472a33ecf687e99e886e3f36302748563dddede151
BLAKE2b-256 checksum
How to use checksums
12d6fc3be531a0c28c05998a0196d6fee327727a04ff5daa77f74a895d75446c
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 6, 2026.

Transparency log

Security for eyetrajectoriespy 1.1.0rc1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for eyetrajectoriespy-1.1.0rc1.tar.gz

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 6, 2026.

Transparency log

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.

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