def get_x_and_y(data):
    """Splits dataset into feature matrix X and vector valid answers y."""
    feature_list = ['Age', 'SibSp', 'Parch',
                    'Sex_0', 'Sex_1', 'Embarked_0',
                    'Embarked_1', 'Embarked_2',
                    'Embarked_3', 'Pclass_1.0',
                    'Pclass_2.0', 'Pclass_3.0']
    X = data[feature_list]
    y = data[['Survived']]
    return X, y