Skip to content

feat: add ER evaluation - #4

Merged
YongboYu merged 3 commits into
mainfrom
feature/eval-er
Jul 25, 2026
Merged

feat: add ER evaluation#4
YongboYu merged 3 commits into
mainfrom
feature/eval-er

Conversation

@YongboYu

@YongboYu YongboYu commented Dec 28, 2025

Copy link
Copy Markdown
Owner

Note

Adds a fast, refactored entropic relevance evaluation pipeline with scripts and utilities, generating per-window and summary metrics.

  • New pmf_benchmark.metrics.entropic_relevance package: DFGConstructor, BackgroundModel, ER automaton/calculator, and orchestration (er_evaluation.py, run_fast.py) producing CSV/JSON and using caching
  • CLI entry run_er_evaluation.py and Hydra runner scripts/run_er_evaluation_hydra.py with config configs/er/er_fast.yaml
  • Packaging/tooling: update pyproject.toml to setuptools layout, add dev extras and Ruff config
  • Update .gitignore to include project data/results paths and uv.lock
  • Remove legacy configs under config/ (base and model/preprocessing YAMLs)

Written by Cursor Bugbot for commit af6f986. This will update automatically on new commits. Configure here.

Repository owner deleted a comment from codecov Bot Jul 24, 2026
Brings the feature branch up to date with main (adds CI scaffold,
.deepsource.toml, tests placeholder) and reworks the tooling to mirror
the pmf-tsfm project:

- ci.yml: two-job layout — pre-commit (ruff lint+format) then
  test (pytest + coverage); uv + checkout@v6 / setup-uv@v7; codecov@v5.
- .pre-commit-config.yaml: ruff-only (pre-commit-hooks v5 + ruff v0.15.4);
  drop mypy, bandit, and the pre-commit.ci block. Scope hooks to the
  maintained src/ package — legacy top-level code (models/, preprocessing/,
  utils/, train.py) is excluded and left for a separate cleanup.
- pyproject.toml: drop mypy/bandit from dev extras and their tool config.
- Fix ruff lint/format in the ER evaluation code (SIM118, dict.fromkeys,
  combined conditionals, import sorting, formatting).

DeepSource error on the PR is resolved: main (the default branch) now
carries .deepsource.toml, so re-analysis finds the config.
Repository owner deleted a comment from codecov Bot Jul 24, 2026
@YongboYu
YongboYu merged commit 38264b5 into main Jul 25, 2026
6 checks passed
@YongboYu
YongboYu deleted the feature/eval-er branch July 25, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant