简体   繁体   English

如何将流派列转换为数值,以便我可以将其提供给神经网络 model?

[英]How to convert genre column to numerical value so that I can feed it to the neural network model?

In the image attached below, the genre column has multiple attributes for a single entry.在下图中,流派列具有单个条目的多个属性。 I am trying to build a neural network model and for that I need to encode it.我正在尝试构建一个神经网络 model,为此我需要对其进行编码。 I am having problems regarding that.我对此有问题。

There are tree options:有树选项:

  • One Hot Encoding: each label is mapped to a binary vector;一次Hot Encoding:每个label映射到一个二进制向量;
  • Integer Encoding: each unique label is mapped to an integer; Integer 编码:每个唯一的 label 映射到一个 integer;
  • Use Embedding: will map each of the unique category into a N-dimensional vector;使用Embedding:将map中每一个唯一的类转化为一个N维向量;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用生成器运行我的神经网络模型? - How can I use a generator to run my Neural Network model? 如何在神经网络模型中正确初始化所需的向量? - How can I properly initialize the needed vectors in a Neural Network Model? 如何将.wav文件转换为Pandas DataFrame以将其馈送到神经网络? - How to convert .wav files into a Pandas DataFrame in order to feed it to a neural network? 如何将.csv训练数据提供给mxnet中的卷积神经网络? - How can I feed .csv training data to a convolutional neural network in mxnet? 前馈神经网络语言模型 - Feed Forward Neural Network Language Model 如何使用神经网络同时预测期望值和方差? - How can I predict the expected value and the variance simultaneously with a neural network? 如何根据另一列的值拆分数字列? - How can I split a numerical column depending on the value of another column? 神经网络-ValueError:无法输入形状的值 - Neural Network - ValueError: Cannot feed value of shape 我们可以采取什么样的技巧来进一步完善训练后的神经网络模型,使其具有较低的目标函数值? - What kind of tricks we can play with to further refine the trained neural network model so that it has lower objective function value? Tensorflow:如何将Tensor馈送到经过训练的神经网络? - Tensorflow: How to feed a Tensor to a trained neural network?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM