Book Image

Practical Machine Learning Cookbook

By : Atul Tripathi
Book Image

Practical Machine Learning Cookbook

By: Atul Tripathi

Overview of this book

Machine learning has become the new black. The challenge in today’s world is the explosion of data from existing legacy data and incoming new structured and unstructured data. The complexity of discovering, understanding, performing analysis, and predicting outcomes on the data using machine learning algorithms is a challenge. This cookbook will help solve everyday challenges you face as a data scientist. The application of various data science techniques and on multiple data sets based on real-world challenges you face will help you appreciate a variety of techniques used in various situations. The first half of the book provides recipes on fairly complex machine-learning systems, where you’ll learn to explore new areas of applications of machine learning and improve its efficiency. That includes recipes on classifications, neural networks, unsupervised and supervised learning, deep learning, reinforcement learning, and more. The second half of the book focuses on three different machine learning case studies, all based on real-world data, and offers solutions and solves specific machine-learning issues in each one.
Table of Contents (21 chapters)
Practical Machine Learning Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
14
Case Study - Forecast of Electricity Consumption

Markov chains - the car rental agency service


Suppose a car rental agency has three locations in Ottawa: A downtown location (labeled A), A East End location (labeled B), and a West End location (labeled C). The agency has a group of delivery drivers to serve all three locations. The agency's statistician has determined the following:

  • Of the calls to the Downtown location, 30% are delivered in the Downtown area, 30% are delivered in the East end, and 40% are delivered in the West end
  • Of the calls to the East end location, 40% are delivered in the downtown area, 40% are delivered in the East end, and 20% are delivered in the West end
  • Of the calls to the West end location, 50% are delivered in the Downtown area, 30% are delivered in the East end, and 20% are delivered in the West end

After making a delivery, a driver goes to the nearest location to make the next delivery. This way, the location of a specific driver is determined only by their previous location.

How to do it...

Let's get into the...