dmlc / dmlc/xgboost

Node not parsed correctly by xgb.model.dt.tree if split criteria is "<Inf"

Open
#3,900 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
28.8k
Forks
8.9k
Avg merge
1d 12h
Merged PRs (30d)
54

Description

Hi,

I noticed that in the table produced by `xgb.model.dt.tree` some nodes have NA in the "Feature" column, e. g.:
```
Tree Node ID Feature Split Yes No Missing Quality Cover
0 55 0-55 NA 0-NA 0-NA 0-NA NA NA
```
Afer looking through the code of the function, I think the issue is due to a regex that parses the text dump. Here's the raw text:

`55:[f279

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.