Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Python Data Science Essentials. - Third Edition

You're reading from  Python Data Science Essentials. - Third Edition

Product type Book
Published in Sep 2018
Publisher Packt
ISBN-13 9781789537864
Pages 472 pages
Edition 3rd Edition
Languages
Author (1):
Alberto Boschetti Alberto Boschetti
Profile icon Alberto Boschetti

Table of Contents (11) Chapters

Preface 1. First Steps 2. Data Munging 3. The Data Pipeline 4. Machine Learning 5. Visualization, Insights, and Results 6. Social Network Analysis 7. Deep Learning Beyond the Basics 8. Spark for Big Data 9. Strengthen Your Python Foundations 10. Other Books You May Enjoy

Working with temporal sequences

The last example in this chapter is about dealing with temporal sequences; more specifically, we will see how to deal with text, which is a variable-length sequence of words.

Some data-science algorithms deal with text using the bag-of-words approach; that is, they don't care where the words are and how they're placed in the text, they just care about their presence/absence (and maybe their frequency). Instead, a special class of deep networks is specifically designed to operate on sequences, where the order is important.

Some examples are as follows:

  • Predict a future stock price, given its historical data: In this case, the input is a sequence of numbers, and the output is a number

  • Predict whether the market will go up or down: In this case, given a sequence of numbers, we want to predict a class (up or down)

  • Translate an English...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}