Skip to Main Content
Hands-On Application Development with PyCharm
book

Hands-On Application Development with PyCharm

by Quan Nguyen
September 2019
Beginner to intermediate content levelBeginner to intermediate
494 pages
13h
English
Packt Publishing
Content preview from Hands-On Application Development with PyCharm

One-hot encoding

In this context, an encoding technique is a method of converting the values of a dataset or of an attribute into a dataset so that data analysis techniques and machine learning models can process them more easily. One-hot encoding is a method that is to be used on categorical data.

Let's discuss the theory of one-hot encoding first. Say we have a simple table with the following data:

Sample tabular – categorical data

Now, the string data in the City column is not very machine-friendly. There are, of course, a number of machine learning models that will have no problem processing this attribute (for example, random forests), ...

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

MASTERING PYCHARM

MASTERING PYCHARM

Nafiul Islam

Publisher Resources

ISBN: 9781789348262Supplemental Content