Do Intelligent Robots Need Emotion?

What's your opinion?

One-Hot Encoding vs Word Embedding

 .

Machine learning and deep learning models, like those in Keras, require all input and output variables to be numeric.

This means that if your data contains categorical data, you must encode it to numbers before you can fit and evaluate a model.

The two most popular techniques are an integer encoding and a one hot encoding, although a newer technique called learned embedding may provide a useful middle ground between these two methods.

In this tutorial, you will discover how to encode categorical data when developing neural network models in Keras.

After completing this tutorial, you will know:

(1) The challenge of working with categorical data when using machine learning and deep learning models.

(2) How to integer encode and one hot encode categorical variables for modeling.

(3) How to learn an embedding distributed representation as part of a neural network for categorical variables.

https://machinelearningmastery.com/how-to-prepare-categorical-data-for-deep-learning-in-python/

Read More