search

Home  >  Q&A  >  body text

python - Is it necessary to onehot discrete variables in tree models?

Specifically, take sklearn's GBDT as an example
If the data is all discrete, can it be trained directly?
If there is continuity in the data, can it be trained directly?

黄舟黄舟2749 days ago841

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-18 10:48:59

    The tree model can originally be applied to discrete variables, while continuous variables are regression trees

    reply
    0
  • Cancelreply