Skip to Content
Predictive Analytics For Dummies, 2nd Edition
book

Predictive Analytics For Dummies, 2nd Edition

by Dr. Anasse Bari, Dr. Mohamed Chaouchi, Dr. Tommy Jung
October 2016
Beginner to intermediate
456 pages
11h 17m
English
For Dummies
Content preview from Predictive Analytics For Dummies, 2nd Edition

Chapter 12

Creating Basic Prediction Examples

IN THIS CHAPTER

Installing the machine-learning software

Working with a sample dataset

Creating simple predictive models

Visualizing and evaluating your results

This chapter is about installing and setting up the machine-learning software and using the Python programming language to create a few simple predictive models. There are some modules to install and it will take a bit of time, so make sure you have plenty of battery life left if you're working on your laptop. If you already have Python installed prior to reading this book, make sure you're installing the correct versions of the machine-learning modules and dependencies for the Python version you're using.

In this book, Python version 2.7.11 is being used on a Windows 10 machine, but the installation instructions should work on older versions of Windows.

If you're following along in this chapter, you'll dive right in and start working with a sample dataset. Don't worry too much about the coding involved; most of the code will be provided and you can run it directly in the Python interactive interpreter, line by line. For most lines of code, you'll see what the output is. If, for some reason, an error crops up, you'll know exactly which line caused the error. Easy stuff.

Installing the Software Packages

The goal here is to build a couple of predictive models using different classification algorithms. To do that, you'll need to install Python, its machine-learning modules, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Predictive Analytics For Dummies

Predictive Analytics For Dummies

Anasse Bari, Mohamed Chaouchi, Tommy Jung
Data Mining and Predictive Analytics, 2nd Edition

Data Mining and Predictive Analytics, 2nd Edition

Chantal D. Larose, Daniel T. Larose

Publisher Resources

ISBN: 9781119267003Purchase book