Kaggle competition: Titanic - Machine Learning from Disaster
<SOS> metric: categorizationaccuracy Kaggle data source: titanic-machine-learning-from-disaster<load_from_csv>
train_data = pd.read_csv('.. /input/titanic/train.csv')
 test_data = pd.read_csv('.. /input/titanic/test.csv')
 features = ["Pclass", "Sex", "SibSp", "Parch"]
X_train = pd.get_dummies(train_data[features])
 y_train = train_data["Survived"]
final_X_test = pd.get_dummies(test_data[features])
 classifier = XGBClassifier(n_estimators=750,learning_rate=0.02,max_depth=3)
 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 )