How pardheevkrishna/amazon-ml-challenge-2026-entity-resolution works
This repository implements a per-country business entity resolution cascade: incoming records are normalized, candidate links retrieved and pruned, then ranked and scored before country-specific decisions and refinements produce matching and candidate-pair files. The graph preserves the documented model, rescue, France-rule, and output stages, plus the collective-feature layer. Most runtime connections are documented in the README; unsampled implementation details are not inferred beyond those statements.
Main entry points: stack.py Country stackers · p6_output.py Matching and candidate files · build_topk.py CatBoost ranker and CE-set · p4_predict.py Threshold and margin
Components 16
Retrieval and ranking
- Normalization
code/business_entity_resolution/src/pipeline/build_text.py - Country profiles
code/business_entity_resolution/src/pipeline/profiles/__init__.py - Inverted-index matcher
code/business_entity_resolution/src/work/outer_refit_v6_run/matcher.cpp - Candidate pruning
code/business_entity_resolution/src/pipeline/blocking/prune.py - CatBoost ranker and CE-set
code/business_entity_resolution/src/pipeline/build_topk.py
Scoring and features
- Cross-encoders
code/business_entity_resolution/src/pipeline/ce.py - Pair features
code/business_entity_resolution/src/pipeline/forensics/features.py - Collective features
code/business_entity_resolution/src/pipeline/robust/collective.py - Country stackers
code/business_entity_resolution/src/pipeline/stack.py
Decisions and rescues
- Threshold and margin
code/business_entity_resolution/src/pipeline/infer/p4_predict.py - India native-script rescue
code/business_entity_resolution/src/pipeline/infer/p5_rescue.py - Per-S1 ladder
code/business_entity_resolution/src/pipeline/infer/s1_ladder.py - Address rescue
code/business_entity_resolution/src/pipeline/infer/p5b_addr_rescue.py - France rules A-H
code/business_entity_resolution/src/pipeline/france_rules
Output
- Matching and candidate files
code/business_entity_resolution/src/pipeline/infer/p6_output.py
Other components
- Incoming records
Connections 18
- Incoming records → Normalization: normalizes
README.md - Country profiles → Normalization: selects country setup
README.md - Normalization → Inverted-index matcher: provides records
README.md - Inverted-index matcher → Candidate pruning: generates candidates
README.md - Candidate pruning → CatBoost ranker and CE-set: passes kept pairs
README.md - CatBoost ranker and CE-set → Cross-encoders: selects CE-set
README.md - Cross-encoders → Country stackers: provides logits
README.md - Pair features → Country stackers: provides pair features
README.md - Collective features → Country stackers: provides collective features
README.md - Country stackers → Threshold and margin: scores candidates
README.md - Threshold and margin → India native-script rescue: refines India links
README.md - India native-script rescue → Per-S1 ladder: passes refined links
README.md - Threshold and margin → France rules A-H: refines France links
README.md - Per-S1 ladder → Address rescue: passes unlinked records
README.md - India native-script rescue → Matching and candidate files: contributes links
README.md - Address rescue → Matching and candidate files: contributes links
README.md - France rules A-H → Matching and candidate files: produces links
README.md - CatBoost ranker and CE-set → Matching and candidate files: adds CE-set candidates
README.md