Skip to content

Improve the feature schema mismatch error to list added/removed/reordered columns separately #742

Description

@Inkman007

Description:
The README states RiskScorer.score() raises a RuntimeError 'detailing the mismatched columns' when feature_schema_hash doesn't match. Review the actual message and confirm it separates the mismatch into clearly labelled 'missing from input', 'unexpected extra', and (if detectable) 'reordered' column groups, rather than a single flat list — this is the difference between an operator fixing the issue in one read versus having to manually diff two lists.

Acceptance Criteria:

  • The error message groups mismatched columns under clear headers (missing / extra / reordered) rather than one undifferentiated list.
  • A test in tests/test_model_inference.py constructs a mismatch with at least one column in each category and asserts each appears under the correct heading.

Relevant files:
detection/model_inference.py, tests/test_model_inference.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions