TensorFlow Python Simple Multiclass NLP Poem Classification

preview_player
Показать описание
In this simple TensorFlow multiclass prediction problem in Python we will be an NLP model and attempt to classify poems as Affection, Death, Environment, or Love. Poems are a very difficult NLP classification due to the abstract nature of the writing makes this a very difficult dataset to get a very high score. Our goal will be an accuracy of .50, which is normally very low but very difficult to achieve on Poem classification.

We will build our model today in the Sequential model in TensorFlow. The first layer in our model will be an Embedding layer. We will follow our embedding layer with a special type of dropout layer called Spatial Dropout and this drops each neuron by changing not a certain percentage of each layer. This allows some epochs to have more or less total neurons turned off. This type of dropout works for NLP problems.

Python Basics

check out more data learning videos

One on one time with Data Science Teacher Brandyn

data science teacher brandyn on facebook
data science teacher brandyn on linkedin

Showcase your DataArt linkedin
Showcase your DataArt facebook

Python data analysis group, share your analysis

Machine learning in sklearn group

Join the deep learning with tensorflow for more info
Рекомендации по теме
welcome to shbcf.ru