P2-04: Dead code in ensemble.py — majority_decision computed but never used #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: P2 (Medium)
File:
decider/ensemble.pylines 83-88Problem
majority_decisionis computed at line 83-86 but never referenced afterward.decisionis recomputed identically at lines 90-95:Duplicated threshold logic is a maintenance hazard. Change either threshold and the other silently diverges.
Fix
Remove the duplicated
if/elif/elseblock and reusemajority_decisionasdecision.