小编Eyt*_*tan的帖子

Can sklearn DecisionTreeClassifier truly work with categorical data?

While working with the DecisionTreeClassifier I visualized it using graphviz, and I have to say, to my astonishment, it seems it takes categorical data and uses it as continuous data.

All my features are categorical and for example you can see the following tree (please note that the first feature, X[0], has 6 possible values 0, 1, 2, 3, 4, 5: 在此处输入图片说明 From what I found here the class uses a tree class which is a binary tree, so it …

python machine-learning decision-tree scikit-learn categorical-data

6
推荐指数
1
解决办法
2321
查看次数

Android Xml属性android:onClick ="..."如何在幕后工作?

我问这个有点因为我很感兴趣,主要是因为我害怕使用我不理解的属性\代码.根据我的理解,通过实现适合于事件的侦听器接口,java工作中的所有事件.如果我在我的活动中为2个按钮实现onClick并且第三个使用android:onClick ="..."属性定义一个方法会发生什么?我找到了这篇文章,所以在阅读之后我明白它可以使用一个实现OnClickListener的匿名类来实现,但是我想确定\更多地了解它,以及我可能以什么方式破坏某些东西\使用这些知识我的advantege?android 引用不清楚它是如何工作的,

java xml android

4
推荐指数
1
解决办法
637
查看次数