Ultimate access to all questions.
In a machine learning dataset, you have a categorical feature 'Marital Status' with possible values 'Single', 'Married', 'Divorced', and 'Widowed'. You have decided to use one-hot encoding to transform this feature. Explain the process of one-hot encoding and discuss why this approach can be inefficient for tree-based models.