Kaggle competition: Titanic - Machine Learning from Disaster
<prepare_x_and_y><EOS> 
train_data = pd.read_csv('.. /input/titanic/train.csv')
 test_data = pd.read_csv('.. /input/titanic/test.csv')
 features = ["Pclass", "Sex", "SibSp", "Parch", "Embarked"]
X_train = pd.get_dummies(train_data[features])
 y_train = train_data["Survived"]
final_X_test = pd.get_dummies(test_data[features])
 classifier = RandomForestClassifier(max_features='auto', min_samples_leaf=10)
 classifier.fit(X_train, y_train)
 predictions = classifier.predict(final_X_test)
 output = pd.DataFrame({'PassengerId': test_data.PassengerId,
'Survived': predictions})
 output.to_csv('submission.csv', index=False )