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 13

Creating Basic Examples of Unsupervised Predictions

IN THIS CHAPTER

Working with a sample dataset

Creating simple predictive models using clustering algorithms

Visualizing and evaluating your results

This chapter is about creating a few simple predictive models using unsupervised learning with clustering algorithms such as K-means, DBSCAN, and mean shift. These examples use the Python programming language, version 2.7.4, on a Windows machine. See Chapter 12 if you need instructions on installing Python and the scikit-learn machine-learning package.

No prior knowledge of supervised learning is required to understand the concepts of unsupervised learning. Supervised learning is when the output categories are known in the historical data; unsupervised learning is when the output categories are unknown. Chapter 12 covers examples of supervised learning with classification and regression algorithms.

You can read Chapters 12 and 13 independently. One advantage of reading both chapters in the same session is that you'll be able to reuse the work that you did to load the Iris dataset into the Python interpreter (the command line where you enter the code statements or commands). So if you're continuing from Chapter 12, you may skip the next section.

Getting the Sample Dataset

The sample Iris dataset is included in the installation of scikit-learn — along with a set of functions that load data into the Python session.

To load the Iris dataset, follow these steps:

  1. Open a ...

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