我应该将分类数据用于多层感知吗?
所有列的值都是类标签。例如:功能1的值“ 1”是< 50。也就是说,所有功能均已分类。在这种情况下,我可以直接将数据集用于多层perceptron吗?还是我应该将所有列转换为虚拟变量?
Dataset:
feature1 feature2 feature3 target
5 1 4 1
1 1 3 0
9 3 2 1
Dummy:
feature1_5 feature1_1 feature1_9
1 0 0
0 1 0 ...
0 0 1
All columns' values are class labels. For example: value "1" for feature1 is <50. Namely, all features were classified. In this case, can I use the dataset for multi layer perceptron directly? Or Should I convert all columns to dummy variables?
Dataset:
feature1 feature2 feature3 target
5 1 4 1
1 1 3 0
9 3 2 1
Dummy:
feature1_5 feature1_1 feature1_9
1 0 0
0 1 0 ...
0 0 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论