December 24, 2020
It depends on the type of categorical variables. If the categorical variables are hierarchical then they could be represented using a single column with numeric values corresponding to the hierarchy. If they aren’t hierarchical then we will use one hot encoding and create n-1 columns [n being the number of distinct values the categorical variable has].
by : Monis Khan
Quick Summary:
It depends on the type of categorical variables. If the categorical variables are hierarchical then they could be represented using a single column with numeric values corresponding to the hierarchy. If they aren’t hierarchical then we will use one hot encoding and create n-1 columns [n being the number of distinct values the categorical variable […]