Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Automatically reorder features in the xgboost raw model parser #508

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pltb
Copy link
Contributor

@pltb pltb commented Feb 7, 2025

A follow up to #500 that fixes a drawback of the parser by rearranging the features in the model to match the order in the feature set.

Motivation: the model and feature set have names assigned to features, but when the evaluation is happening, the features are being referenced by their ordinal number.
So in the implementation the features had to be submitted in the same order as they are in the model in order to produce a correct evaluation.
This PR is supposed tries to fix that by aligning the features ordering in the trees when the model is loaded.

@pltb pltb marked this pull request as ready for review February 10, 2025 10:48
@pltb pltb changed the title [WIP] BUGFIX: Automatically reorder features in the xgboost raw model parser BUGFIX: Automatically reorder features in the xgboost raw model parser Feb 10, 2025
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.

1 participant