Skip to content

[v638][TMVA][Python] Fix feature name handling for RBDT::LoadText#20568

Merged
guitargeek merged 1 commit intoroot-project:v6-38-00-patchesfrom
guitargeek:bp_3
Nov 28, 2025
Merged

[v638][TMVA][Python] Fix feature name handling for RBDT::LoadText#20568
guitargeek merged 1 commit intoroot-project:v6-38-00-patchesfrom
guitargeek:bp_3

Conversation

@guitargeek
Copy link
Contributor

Backport of #20565

If the XGBoost model encodes feature names, they will also be used in
the `.txt` dump of the model. We have to use these names in
`RBDT::LoadTxt` as well, so that the `.txt` file can be read correctly
without errors.

The RBDT unit test is also updated to cover this case of custom feature
names, which happens when the training data comes from a pandas
DataFrame.

Also implement some suggestions by ruff.

Closes root-project#20267.

(cherry picked from commit 8c83c8f)
@guitargeek guitargeek self-assigned this Nov 28, 2025
@guitargeek guitargeek merged commit 85c7ba8 into root-project:v6-38-00-patches Nov 28, 2025
25 of 30 checks passed
@guitargeek guitargeek deleted the bp_3 branch November 28, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant