Book Image

Keras 2.x Projects

By : Giuseppe Ciaburro
Book Image

Keras 2.x Projects

By: Giuseppe Ciaburro

Overview of this book

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.
Table of Contents (13 chapters)

Improving the model performance by removing outliers

In the Data visualization section, we saw that some predictors have outliers. Outliers are the values that, when compared to others, are particularly extreme. Outliers are a problem because they tend to distort data analysis results, in particular, in descriptive statistics and correlations. Outliers have a large influence on the fit, because squaring the residuals magnifies the effects of these extreme data points. For these reasons, it may be necessary to remove these values first to improve the performance of the model.

In some cases, you may be tempted to remove outliers that are influential or have an excessive impact on the synthesis measures you want to consider (such as the mean or the linear correlation coefficient). However, this way of proceeding isn't always cautious, unless the reasons for an abnormal observation...