feat: add ER evaluation - #4
Merged
Merged
Conversation
YongboYu
force-pushed
the
feature/eval-er
branch
from
December 28, 2025 15:44
2e7953b to
163e685
Compare
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.
YongboYu
force-pushed
the
feature/eval-er
branch
from
July 24, 2026 13:30
299675e to
92cf067
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Adds a fast, refactored entropic relevance evaluation pipeline with scripts and utilities, generating per-window and summary metrics.
pmf_benchmark.metrics.entropic_relevancepackage:DFGConstructor,BackgroundModel, ER automaton/calculator, and orchestration (er_evaluation.py,run_fast.py) producing CSV/JSON and using cachingrun_er_evaluation.pyand Hydra runnerscripts/run_er_evaluation_hydra.pywith configconfigs/er/er_fast.yamlpyproject.tomlto setuptools layout, adddevextras and Ruff config.gitignoreto include project data/results paths anduv.lockconfig/(base and model/preprocessing YAMLs)Written by Cursor Bugbot for commit af6f986. This will update automatically on new commits. Configure here.