docstr: Tets AutoML in the titanic dataset (binary classification) with categorial features
docstr_tok: ["Tets","AutoML","in","the","titanic","dataset","(","binary","classification",")","with","categorial","features"]
code: def test_titatic_dataset(self):
      """Tets AutoML in the titanic dataset (binary classification) with categorial features"""
      automl = AutoML(
          algorithms=["Xgboost"],
          mode="Explain",
          results_path=self.automl_dir,
      )
  
      df = pd.read_csv("tests/data/Titanic/train.csv")
  
      X = df[df.columns[2:]]
      y = df["Survived"]
  
      automl.fit(X, y)
  
      test = pd.read_csv("tests/data/Titanic/test_with_Survived.csv")
      test_cols = [
          "Parch",
          "Ticket",
          "Fare",
          "Pclass",
          "Name",
          "Sex",
          "Age",
          "SibSp",
          "Cabin",
          "Embarked",
      ]
      score = automl.score(test[test_cols], test["Survived"])
      self.assertGreater(score, 0.5)
  
imports: import os
  import unittest
  import tempfile
  import json
  import numpy
  import pandas
  import shutil
  from sklearn import datasets
  from sklearn.pipeline import make_pipeline
  from sklearn.decomposition import PCA
  from supervised import AutoML
  from supervised.exceptions import AutoMLException
label_desc: Use image node_id 13 for calling the AutoMLTest obj's underlying member method code with example usage: obj.test_titatic_dataset() without return types