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

set_feature_names does not set names properly #2090

Closed
liaison opened this issue May 17, 2022 · 0 comments
Closed

set_feature_names does not set names properly #2090

liaison opened this issue May 17, 2022 · 0 comments
Assignees

Comments

@liaison
Copy link

liaison commented May 17, 2022

Problem: for some reason, the API set_feature_names does not set the feature names properly afterward. I have a model trained with 430 features in RAW values (e.g. pandas.DataFrame.values). Later, I tried to reset its feature names on the trained model, with the set_feature_names call. However, the last 3 features in the model were not reset.

More specifically, the missing features are text features.

model.set_feature_names(feature_list)

print(model.feature_names_) 
...
"a_proper_name"
"428"
"429"
"430",

catboost version: 1.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants