Closed Cheril311 closed 2 years ago
Hi,
The categorical_algorithm
argument controls the consumption of categorical features (for example, see the Random Forest API or the hyper-parameters page).
Quoting:
categorical_algorithm:
How to learn splits on categorical attributes.
An example of such condition: attribute_1 in ["cat", "lion", "tiger"]
An example of such condition: attribute_1 == "cat"
An example of such condition: attribute_1 in ["cat", "lion", "tiger"]
A fourth algorithm is available for categorical set features (e.g. feature values made of a set of categorical items). You can learn more with the categorical_set*
arguments.
An example of such condition: attribute_2 intersect ["cat", "lion", "tiger"]
Thanks a lot @achoum, sorry for the late reply
This is more of a question than an issue. I see that tensorflow decision forests can handle categorical features by itself, however I could not find the encoding strategy they use to convert categorical features. Can anyone help me understand this?