[Python] HistGradientBoostingClassifier - ValueError: could not convert string to float

Discussão em 'Python' iniciado por Stack, Dezembro 17, 2024.

  1. Stack

    Stack Membro Participativo

    I'm running a HistGradientBoostingClassifier with some categorical features and getting a 'ValueError: Columns must be same length as key' error. I defined the categorical features through the categorical_features parameter.

    The documentation on HistGradientBoostingClassifier shows that it accepts categorical variables as features. Why is this happening?

    I tried different inputs for the categorical_features (boolean, indeces) thinking that I'm doing something wrong with that but, I still can't make it work.

    Continue reading...

Compartilhe esta Página