Creating a linear regression model

A simple linear regression is easy to understand, but represents the basis of regression techniques. Once these concepts are understood, it will be easier for us to address the other types of regression. To begin with, let's take an example of applying linear regression that's been taken from the real world.

Consider some data that has been collected on a group of bikers, which consists of the following aspects:

  • Number of years of use
  • Number of kilometers traveled in one year
  • Number of falls

Through these techniques, we find that, on average, when the number of kilometers traveled increases, the number of falls also increases. By increasing the number of years of motorcycle usage and by increasing the ...

Get Keras 2.x Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.