Preparing the variables to modeling¶
We will need to work with numeric variables, so we will transform input data that is in category format to numbers.
We can convert possible values of Sex to {‘male’:0, ‘female’:1}. Regarding the Embarked variable, we can apply the concept of dummy variables.