我应该将分类数据用于多层感知吗?

发布于 2025-01-31 08:13:35 字数 456 浏览 3 评论 0原文

所有列的值都是类标签。例如:功能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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文