Skip to content

Preserve size groups in outputs - #10

Merged
Yuning598 merged 1 commit into
mainfrom
fix/size-grp-ranking
Aug 8, 2026
Merged

Preserve size groups in outputs#10
Yuning598 merged 1 commit into
mainfrom
fix/size-grp-ranking

Conversation

@Yuning598

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 8, 2026 05:18
@Yuning598
Yuning598 merged commit 7683df5 into main Aug 8, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CIZ characteristic pipeline to preserve the precomputed size-bucket label (size_grp) through both raw and ranked outputs, so downstream consumers can segment results by size group without recomputing it.

Changes:

  • Include size_grp in the output “observation/info” columns list (OBS_VARS) so it is retained and excluded from imputation.
  • Exclude size_grp from cross-sectional ranking/standardization by treating it as an info column in standardize().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
chars_ciz/impute_rank_output.py Keeps size_grp in the preserved observation columns and excludes it from imputation.
chars_ciz/functions.py Treats size_grp as an info column so it is not transformed into a rank_ feature and is preserved in ranked outputs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Yuning598
Yuning598 deleted the fix/size-grp-ranking branch August 8, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants