Skip to main content

Utilities for design research analysis workflows

Project description

design-research-analysis

CI Coverage Examples Passing Public API In Examples Docs PyPI Version Python Versions

[!IMPORTANT] Current monthly release: Carnegie Calculus - May 2026
Due: June 1, 2026
Tracks: May 2026 work

design-research-analysis is the unified-table analysis layer in the cmudrc design research ecosystem.

It provides typed, reusable workflows for sequence, language, embedding-map, and statistical analysis over recurring event logs.

Overview

This package centers on reproducible analysis workflows with a small top-level API:

  • Unified-table coercion, validation, and mapper-based derived columns
  • Dataset profiling, schema checks, and codebook generation
  • Sequence modeling (Markov chains, discrete HMM, Gaussian HMM)
  • Language analysis (semantic convergence trajectories, topic modeling, sentiment scoring)
  • Embedding maps (PCA, t-SNE, UMAP, PaCMAP, TriMap) with clustering, comparison, and trajectory-plotting helpers
  • Statistical wrappers (group comparisons, OLS regression, mixed-effects models, nonparametrics, and power)
  • Runtime provenance capture for reproducibility manifests
  • Top-level artifact handoff helpers for experiment exports
  • A thin CLI for deterministic pipeline runs

Quickstart

Requires Python 3.12+. Maintainer workflows target Python 3.12 (.python-version).

Install from PyPI:

python -m pip install --upgrade pip
pip install design-research-analysis

Common install profiles:

pip install "design-research-analysis[seq]"
pip install "design-research-analysis[lang,embeddings]"
pip install "design-research-analysis[maps]"
pip install "design-research-analysis[stats,data]"
pip install "design-research-analysis[all]"

Unified-table coercion, validation, and derived-column helpers ship in the base install, so there is no separate table extra.

For contributor workflows:

python -m venv .venv
source .venv/bin/activate
make dev
make test

Run a compact end-to-end example:

PYTHONPATH=src python examples/basic_usage.py

For dependency profiles and release-check guidance, see Dependencies and Extras.

CLI

The package installs a design-research-analysis CLI:

design-research-analysis validate-table --input data/events.csv --summary-json artifacts/validate.json
design-research-analysis run-sequence --input data/events.csv --summary-json artifacts/sequence.json --mode markov
design-research-analysis run-language --input data/events.csv --summary-json artifacts/language.json --trajectory-csv artifacts/language_trajectory.csv
design-research-analysis run-embedding-maps --input data/events.csv --summary-json artifacts/embedding_maps.json --map-csv artifacts/embedding_maps.csv
design-research-analysis run-stats --input data/events.csv --summary-json artifacts/stats.json --mode regression --x-columns x1,x2 --y-column y

The Python API can start from files too at the main ingestion points, for example coerce_unified_table("data/events.csv") and profile_dataframe("data/events.csv").

Examples

Start with examples/README.md for runnable scripts across all analysis families.

Docs

See the published documentation for quickstart, workflow guidance, schema details, CLI reference, and API docs.

Build docs locally with:

make docs

Public API

The supported public surface is whatever is exported from design_research_analysis.__all__.

Top-level exports include:

  • Package metadata: __version__
  • Artifact handoff helpers: validate_experiment_events, build_condition_metric_table_from_artifacts, build_event_table_from_artifacts
  • Table contracts: UnifiedTableConfig, UnifiedTableValidationReport, coerce_unified_table, derive_columns, validate_unified_table
  • Sequence: fit_markov_chain_from_table, fit_discrete_hmm_from_table, fit_text_gaussian_hmm_from_table, decode_hmm, plotting helpers, and result types
  • Language: compute_language_convergence, compute_semantic_distance_trajectory, fit_topic_model, score_sentiment
  • Embedding maps: embed_records, build_embedding_map, cluster_embedding_map, compare_embedding_maps, plot_embedding_map, plot_embedding_map_grid
  • Statistics: compare_groups, fit_regression, fit_mixed_effects, permutation_test, bootstrap_ci, power helpers
  • Dataset + runtime: profile_dataframe, validate_dataframe, generate_codebook, capture_run_context, attach_provenance, write_run_manifest

Contributing

Contribution workflow and validation gates are documented in CONTRIBUTING.md.

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

design_research_analysis-0.2.0.tar.gz (101.1 kB view details)

Uploaded Source

Built Distribution

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

design_research_analysis-0.2.0-py3-none-any.whl (76.3 kB view details)

Uploaded Python 3

File details

Details for the file design_research_analysis-0.2.0.tar.gz.

File metadata

  • Download URL: design_research_analysis-0.2.0.tar.gz
  • Upload date:
  • Size: 101.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for design_research_analysis-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1f50a0193e02bc0ae8f5c9cd9a26811e68516b69dc2106bc8c47ffa8d2475e0c
MD5 e900720dd546afebc667f52d0a29f9c0
BLAKE2b-256 e450ca0c23010e5367c840587765a37cae57a3c1e360403dbe5352401410e02a

See more details on using hashes here.

Provenance

The following attestation bundles were made for design_research_analysis-0.2.0.tar.gz:

Publisher: workflow.yml on cmudrc/design-research-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file design_research_analysis-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for design_research_analysis-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87ab99047531f0cb3edd1fcc90319f79ffad483a1ce40a5e94dbc0e91da04634
MD5 2cc71109eba78f0c31e23b5e16fd26d2
BLAKE2b-256 53509eb1d97466d796b295b6dd0e237dcc1f36c64f55262d1db5894bcacbae24

See more details on using hashes here.

Provenance

The following attestation bundles were made for design_research_analysis-0.2.0-py3-none-any.whl:

Publisher: workflow.yml on cmudrc/design-research-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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