dmlc / dmlc/xgboost

[Feature request] Multi-categorical input features

Open
#9,009 3 comments 1 reaction 0 assignees View on GitHub
feature-request
Dominant language
C++
Stars
28.8k
Forks
8.9k
Avg merge
1d 12h
Merged PRs (30d)
54

Description

It's good to see XGBoost supporting categorical features. In a project we were looking at using native XGBoost categories, though our dataset also includes a multi-categorical feature. My question is if these type of features will also be supported natively within XGBoost.

So for example:
| feat1 |
|-|
| a |
| a,c |
| b,d |

Which should be interpreted as:
| feat1_a | feat1_b | feat1_c | feat1_d |
|-|-|-|-|
|1|0|0|0|
|1|0|1|0|
|0|1|0|1|

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.