Skip to Content
Hands-On Unsupervised Learning with Python
book

Hands-On Unsupervised Learning with Python

by Giuseppe Bonaccorso
February 2019
Intermediate to advanced
386 pages
9h 54m
English
Packt Publishing
Content preview from Hands-On Unsupervised Learning with Python

Analysis of the Absenteeism at Work dataset using DBSCAN

The Absenteeism at Work dataset (follow the instructions at the beginning of the chapter to download it) is made up of 740 records containing information regarding employees who took some days off work. There are 20 attributes representing age, service time, education, habits, diseases, disciplinary failures, transportation expense, distance from home to office, and so on (a full description of the fields is available at https://archive.ics.uci.edu/ml/datasets/Absenteeism+at+work). Our goal is to preprocess the data and apply DBSCAN in order to discover dense regions with a specific semantic content.

The first step is loading the CSV file as follows (the placeholder <data_path> must ...

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.
Start your free trial

You might also like

Hands-On Unsupervised Learning Using Python

Hands-On Unsupervised Learning Using Python

Ankur A. Patel
Introduction to Machine Learning with Python

Introduction to Machine Learning with Python

Andreas C. Müller, Sarah Guido

Publisher Resources

ISBN: 9781789348279Supplemental Content