Day 12 Part 2 Kaggle's 30 Days of ML

Day 12 Part 2 Kaggle's 30 Days of ML
フリーレン from 葬送のフリーレン.

Course Step 3 of Intermediate Machine Learning.


Categorical Variable:

  1. Nominal: no order (like gender)
  2. Ordinal: has order (like low-medium-high)

How to deal with categorical data:

  1. Give each var a lable number.
  2. Use binarization: give each var a number and binarize it.
  3. Delete the var
  1. One-Hot Encoding:
    create a new col to show the presence.

Code for method 2:

code for method 1:

code for method 3: