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

Store feature names in booster. #122

Open
trivialfis opened this issue Oct 25, 2022 · 1 comment
Open

Store feature names in booster. #122

trivialfis opened this issue Oct 25, 2022 · 1 comment

Comments

@trivialfis
Copy link
Member

trivialfis commented Oct 25, 2022

handle::BoosterHandle

The attribute can be stored in booster and saved as long as json/ubj is used as file format.

@trivialfis trivialfis changed the title Store feature names.in booster. Store feature names in booster. Oct 25, 2022
@ExpandingMan
Copy link
Collaborator

I think you are referring to the fact that the other Julia struct fields, presently feature_names and params, don't get stored along with the underlying booster object.

I agree this is not ideal, but I don't see a way around it that does not have its own significant drawbacks. The real problem is that we want this stuff to be stored in the C struct, not the Julia struct. The biggest problem I foresee with saving the Julia struct fields is that the saved file would not be compatible with the loading functions provided by libxgboost, at least without extracting the booster first.

I'm open to suggestions.

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

No branches or pull requests

2 participants