Explain One-hot encoding and Label Encoding. How do they affect the dimensionality of the given dataset?
- One-Hot Encoding converts categorical variables into binary vectors, increasing dimensionality.
- Label Encoding assigns a unique integer to each category, preserving dimensionality.