Skip to main content

EduBehaviors-Kit

PyPI version

EduBehaviors-kit is a Python package for annotating educational dialogues with observable behavioral indicators and using them to model more complex educational constructs. It implements the EduBehaviors Framework , combining LLM-generated annotations, efficient encoders, and interpretable machine learning to support scalable, low-cost analysis of student–educator conversations.

This toolkit complements EduBehaviors-Studio, an LLM-assisted interface for iterative, auditable development of assertion-based schemas from a construct codebook or definition and corpus annotation. Studio exports LLM-annotated assertions as CSV files, which can be used to train custom encoders or combined with the kit’s existing behavioral features for construct modeling.

Links to the framework paper and EduBehaviors-Studio repository will be added when available.

Features

  • WordAnnotator — counts or flags a word list in text
  • AssertionAnnotator — scores text against the EduBehaviors assertions with their SetFit models
  • standard_classifier — ridge logistic regression with sensible defaults
  • ClassificationPipeline — annotate, split, train and evaluate a labelled dataframe in one step

Assertions

See the assertions page for the list of published assertion classifiers with their cross-LLM agreement and test F1 scores.

Usage

Quickstart

Open In Colab Demo script

import pandas as pd

from edubehaviors import ClassificationPipeline

data = pd.read_csv("examples/talkmoves.csv")
pipeline = ClassificationPipeline(
    data,
    words="all",
    assertions=["contains_a_question"],
    label_column="label_press_for_reasoning",
    group_column="transcript",
    random_state=2026_09_17,
)

print(pipeline.report())

See the usage docs for details.

Documentation

Documentation is built with Zensical and deployed to GitHub Pages.

API documentation is auto-generated from docstrings using mkdocstrings.

Docs deploy automatically on push to main via GitHub Actions. To enable this, go to your repo's Settings > Pages and set the source to GitHub Actions.

Development

To set up for local development:

# Clone your fork
git clone git@github.com:your_username/edubehaviors-kit.git
cd edubehaviors-kit

# Install the project and its dev dependencies
uv sync

This installs the package in editable mode, so any changes you make to the source code are picked up immediately.

Run tests:

uv run pytest

Run quality checks (format, lint, type check, test):

just qa

Author

EduBehaviors-Kit was created in 2026 by Xander Beberman, Julian Bernado, Ana T. Ribeiro, and Susanna Loeb at The SCALE Initiative at Stanford University.

Built with Cookiecutter and the audreyfeldroy/cookiecutter-pypackage project template.

Metadata

Release files for edubehaviors-kit 0.2.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 edubehaviors-kit 0.2.0
File Size Uploaded
edubehaviors_kit-0.2.0.tar.gz 262.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for edubehaviors-kit 0.2.0
File Interpreter ABI Platform
edubehaviors_kit-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 278.6 kB

Release files / edubehaviors_kit-0.2.0.tar.gz

Download URL edubehaviors_kit-0.2.0.tar.gz
Size 262.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1230caa2d0b129fbdfd69a29d40f3847f59edfd15fabd31d48435c8eebf9ea9c
BLAKE2b-256 checksum
How to use checksums
c7d5c499ca9dfcfe28d9c495693285069eb1fc8b5002472122ebdec915e8c1be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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

Transparency log

Release files / edubehaviors_kit-0.2.0-py3-none-any.whl

Download URL edubehaviors_kit-0.2.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e82442298ec6580ae6648aebbb16ee7f422cb5142829c7cfefa3cbfdeceb3d8
BLAKE2b-256 checksum
How to use checksums
5e48b6863564fc4bbb9f49851ef238127af4f070a7718e4e7a2e226d3afd1352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

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