feat(extraction): add TrapPruner, MissingnessRecognizer, TargetLeakageAuditor#70
Merged
feat(extraction): add TrapPruner, MissingnessRecognizer, TargetLeakageAuditor#70
Conversation
69a140a to
2ccb620
Compare
…eAuditor - TrapPruner: statistical profiling + LLM verification of Gaussian noise columns - MissingnessRecognizer: MNAR pattern detection with sandbox-compiled encoders - TargetLeakageAuditor: semantic timeline evaluation for target leakage
…o public API - Add all three to extraction/__init__.py lazy imports - Add Loclean class methods + module-level convenience functions - Update __all__ in loclean/__init__.py
…r, TargetLeakageAuditor - 13 tests each (39 total) covering profiling, prompt construction, verdict parsing, verification, and mock-LLM integration
2ccb620 to
67c5e49
Compare
Pull Request Summary by devActivityMetricsAchievements
|
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.
Summary
Adds three new LLM-driven extraction modules for automated data quality analysis:
New Modules
TrapPrunerloclean.prune_traps()MissingnessRecognizerloclean.recognize_missingness(){col}_mnarfeature flagsTargetLeakageAuditorloclean.audit_leakage()Design
compile_sandboxedChanges
src/loclean/extraction/trap_pruner.py[NEW]src/loclean/extraction/missingness_recognizer.py[NEW]src/loclean/extraction/leakage_auditor.py[NEW]src/loclean/extraction/__init__.py— lazy importssrc/loclean/__init__.py— Loclean class methods + module-level functions +__all__Tests
39 unit tests (13 per module) covering profiling, prompt construction, verdict parsing, and mock-LLM integration.