简体   繁体   English

如何为keras提供多个数据功能的输入?

[英]How to provide input to keras for multiple data features?

I know this is really basic question but since I am new to keras I am not able to find the right way to provide input of the dataset mentioned below to keras model. 我知道这确实是一个基本的问题,但是由于我是keras的新手,所以无法找到正确的方法将下面提到的数据集输入到keras模型中。

Subject, message, origin_date, is_logged_in, use_cate

and a target variable which has total 41 classes. 目标变量总共有41个类。

Subject, Message and Targe variable has string values and remaining columns has numeric values. Subject,Message和Targe变量具有字符串值,其余的列具有数字值。 I dont know how can I pipe this dataset to a simple CNN model? 我不知道如何将该数据集管道传输到简单的CNN模型?

Thank you in advance!!! 先感谢您!!!

I guess simple ANN works for you case, any reasons for going to CNN. 我想简单的ANN可以帮助您解决任何情况,而无需任何理由就可以使用CNN。 BTW you can give the multiple inputs to Keras as shown here https://github.com/naveenkambham/MachineLearningModels/blob/master/NeuralNetwork.py this is a ANN that accpets 5 features as input features and 2 output features. 顺便说一句,您可以将多个输入提供给Keras,如下所示:https://github.com/naveenkambham/MachineLearningModels/blob/master/NeuralNetwork.py。这是一个ANN,它具有5个输入特征和2个输出特征。 Please refer this and build the model. 请参考并构建模型。 Lemme know if you need any clarifications. 莱姆知道您是否需要任何澄清。 Please mark this as answer or vote if you find it helpful. 如果您认为有帮助,请标记为答案或投票。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM