Classification tree in sklearn giving inconsistent answers

前端 未结 4 1149
忘了有多久
忘了有多久 2021-02-09 12:44

I am using a classification tree from sklearn and when I have the the model train twice using the same data, and predict with the same test data, I am getting diffe

4条回答
  •  醉话见心
    2021-02-09 13:08

    I don't know anything about sklearn but...

    I guess DecisionTreeClassifier has some internal state, create by fit, which only gets updated/extended.

    You should create a new one?

提交回复
热议问题