Skip to Main Content
Hands-On Artificial Intelligence for Beginners
book

Hands-On Artificial Intelligence for Beginners

by David Dindi, Patrick D. Smith
October 2018
Beginner content levelBeginner
362 pages
9h 32m
English
Packt Publishing
Content preview from Hands-On Artificial Intelligence for Beginners

Predicting events with a convolutional neural network

Now that we have our embedding structure, it's time to predict off of that structure with a CNN. When you typically think of a CNN, and the work that we have completed on them, you're probably thinking of computer vision tasks such as recognizing an object in an image. Although this is what they were designed for, CNNs can also be great at detecting features in text.

When we use CNNs in NLP, we replace the standard input of pixels with word embeddings. While in typical computer vision tasks you utilize the CNNs filters over small patches of the image, for NLP tasks, we use the same sliding window over the rows of a matrix of embeddings. The width of the sliding window, therefore, becomes ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Artificial Intelligence and Machine Learning Fundamentals

Artificial Intelligence and Machine Learning Fundamentals

Zsolt Nagy

Publisher Resources

ISBN: 9781788991063Supplemental Content