Keras 2.x Projects
eBook - ePub

Keras 2.x Projects

9 projects demonstrating faster experimentation of neural network and deep learning applications using Keras

Giuseppe Ciaburro

  1. 394 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Keras 2.x Projects

9 projects demonstrating faster experimentation of neural network and deep learning applications using Keras

Giuseppe Ciaburro

Book details
Book preview
Table of contents
Citations

About This Book

Demonstrate fundamentals of Deep Learning and neural network methodologies using Keras 2.x

Key Features

  • Experimental projects showcasing the implementation of high-performance deep learning models with Keras.
  • Use-cases across reinforcement learning, natural language processing, GANs and computer vision.
  • Build strong fundamentals of Keras in the area of deep learning and artificial intelligence.

Book Description

Keras 2.x Projects explains how to leverage the power of Keras to build and train state-of-the-art deep learning models through a series of practical projects that look at a range of real-world application areas.

To begin with, you will quickly set up a deep learning environment by installing the Keras library. Through each of the projects, you will explore and learn the advanced concepts of deep learning and will learn how to compute and run your deep learning models using the advanced offerings of Keras. You will train fully-connected multilayer networks, convolutional neural networks, recurrent neural networks, autoencoders and generative adversarial networks using real-world training datasets. The projects you will undertake are all based on real-world scenarios of all complexity levels, covering topics such as language recognition, stock volatility, energy consumption prediction, faster object classification for self-driving vehicles, and more.

By the end of this book, you will be well versed with deep learning and its implementation with Keras. You will have all the knowledge you need to train your own deep learning models to solve different kinds of problems.

What you will learn

  • Apply regression methods to your data and understand how the regression algorithm works
  • Understand the basic concepts of classification methods and how to implement them in the Keras environment
  • Import and organize data for neural network classification analysis
  • Learn about the role of rectified linear units in the Keras network architecture
  • Implement a recurrent neural network to classify the sentiment of sentences from movie reviews
  • Set the embedding layer and the tensor sizes of a network

Who this book is for

If you are a data scientist, machine learning engineer, deep learning practitioner or an AI engineer who wants to build speedy intelligent applications with minimal lines of codes, then this book is the best fit for you. Sound knowledge of machine learning and basic familiarity with Keras library would be useful.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Keras 2.x Projects an online PDF/ePUB?
Yes, you can access Keras 2.x Projects by Giuseppe Ciaburro in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Inteligencia artificial (IA) y semántica. We have over one million books available in our catalogue for you to explore.

Information

Reuters Newswire Topics Classifier in Keras

Natural language processing (NLP) is the process of automatic processing of information written or spoken in a natural language using an electronic calculator. This is made particularly difficult and complex due to the intrinsic characteristics of the ambiguity of human language. When it's necessary to make the machine learn methods of interaction with the environment typical of man, the question isn't so much that of storing data, but that of letting the machine learn how this data can be translated simultaneously to create a concept. Natural language interacts with the environment generating predictive knowledge.
In this chapter, Keras layers are used to build a model to classify Reuter's newswire topics. Data is available from a dataset that contains 11,228 newswires from Reuters with 46 labeled topics. This dataset is from Keras, and each wire is encoded as a sequence of word indexes.
The following topics will be covered in this chapter:
  • Natural language processing
  • The Natural Language Toolkit
  • Corpora
  • Word and sentence tokenize
  • Implementing a DNN to label sentences
In this chapter, we'll learn how to analyze, understand, and generate texts using Natural Language Toolkit. Then, we will analyze the most frequent applications using natural language processing. We'll learn about Keras sequential layers and understand training and validation procedures. Finally, we will explore a practical case: how to label sentences contained in the Reuters newswire topics dataset using a Keras Deep Neural Network.

Natural language processing

NLP aims to implement IT tools to analyze, understand, and generate texts that people can understand naturally, as if they were communicating with another human interlocutor and not a computer. By natural language, we mean the language that we use in everyday life, such as English, Chinese, or Arabic, and that's synonymous with human language, mainly to distinguish it from formal language, including computer language. Natural language is the most natural and common form of communication, not only in its spoken version, but also in its written one. Compared to formal language, natural language is much more complex and often contains implications and ambiguities, which makes it very difficult to elaborate. Two goals can be pursued: text analysis and text generation. These characteristics define the following disciplines:
  • Natural language analysis (NLA): This aims to study the understanding of natural language by machines. Deals with the reduction of a text in natural language in a formal and univocal representation.
  • Natural language generation (NLG): This aims to study how machines can generate sentences in natural language. It deals with the construction of applications capable of producing correct sentences in a specific language.
These activities have a certain complexity and require different types of skills ranging from computer science to linguistics.

NLP phases

NLP involves several phases in the text analysis that make it a layered structure. The fundamental levels on which the analysis of a sentence is based are listed in the following:
  • Morphology analysis
  • Syntax analysis
  • Semantic analysis
  • Pragmatic analysis
Let's understand in depth about each layer.

Morphology analysis

The purpose of this phase is to subdivide the language input strings into sets of tokens corresponding to discrete words, sub-words, and punctuation forms. The text is then fragmented through a tokenization process, forming a series of tokens—each token is associated with a word of the text. In this phase, two terms assume relevance: stem and lemma. The stem is the root of a word, obtainable by removing from its flexed form (for example the conjugation of a verb or the plural of a noun) the ending. The lemma is instead the canonical form of the word, which is the one that's conventionally chosen to represent all of the inflected forms.
This phase has the task of identifying the stem and lemma of each word through two different operations, stemming and lemmatization respectively. This information will then be used in the subsequent analysis phases; in fact, it's much less expensive, in terms of memory, to maintain rules based on the parts that make up a word and how their combinations go to form certain inflected forms, rather than managing each word as an atomic element within a huge inventory.

Syntax analysis

To understand the meaning of a sentence, it's not enough to know the meaning of the words that compose it, but it's also essential to know how they relate to each other. This phase deals with the syntact...

Table of contents

  1. Title Page
  2. Copyright and Credits
  3. About Packt
  4. Contributors
  5. Preface
  6. Getting Started with Keras
  7. Modeling Real Estate Using Regression Analysis
  8. Heart Disease Classification with Neural Networks
  9. Concrete Quality Prediction Using Deep Neural Networks
  10. Fashion Article Recognition Using Convolutional Neural Networks
  11. Movie Reviews Sentiment Analysis Using Recurrent Neural Networks
  12. Stock Volatility Forecasting Using Long Short-Term Memory
  13. Reconstruction of Handwritten Digit Images Using Autoencoders
  14. Robot Control System Using Deep Reinforcement Learning
  15. Reuters Newswire Topics Classifier in Keras
  16. What is Next?
  17. Other Books You May Enjoy
Citation styles for Keras 2.x Projects

APA 6 Citation

Ciaburro, G. (2018). Keras 2.x Projects (1st ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/868342/keras-2x-projects-9-projects-demonstrating-faster-experimentation-of-neural-network-and-deep-learning-applications-using-keras-pdf (Original work published 2018)

Chicago Citation

Ciaburro, Giuseppe. (2018) 2018. Keras 2.x Projects. 1st ed. Packt Publishing. https://www.perlego.com/book/868342/keras-2x-projects-9-projects-demonstrating-faster-experimentation-of-neural-network-and-deep-learning-applications-using-keras-pdf.

Harvard Citation

Ciaburro, G. (2018) Keras 2.x Projects. 1st edn. Packt Publishing. Available at: https://www.perlego.com/book/868342/keras-2x-projects-9-projects-demonstrating-faster-experimentation-of-neural-network-and-deep-learning-applications-using-keras-pdf (Accessed: 14 October 2022).

MLA 7 Citation

Ciaburro, Giuseppe. Keras 2.x Projects. 1st ed. Packt Publishing, 2018. Web. 14 Oct. 2022.