Sign in

1

Table of Contents

This is a brief guide aimed at helping you determine whether or not you should use an ordinal encoder for your category encoding. Near the bottom of this post, there are examples of how to use OrdinalEncoder from the category_encoders library in Python.

Statistical Data Measurement Scales

There are a few main data types in statistics (not to be confused with programming language data types):

  • Nominal
  • Ordinal
  • Interval
  • Ratio

In this post we will focus on nominal and…


Overlooking some mountains near Fresno, California
Overlooking some mountains near Fresno, California
Overlooking mountains near Fresno, California

Exactly 355 days ago, I took this photo while on a family hike in Central California. The mountain air was so crisp and refreshing, the sights were breathtaking, and food we cooked on our portable gas stove tasted like a feast fit for a king. Little did I know that this basic nature photo that I took on my phone in passing would so poignantly symbolize themes throughout my life.

I was born and raised in Springfield VA, and then moved and spent most of my middle and high school years in Ashburn, VA. After graduating from high school in…

Leo Choi

Student of All Things Data Science

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store