O'Reilly logo

Deep Learning with TensorFlow by Ahmed Menshawy, Md. Rezaul Karim, Giancarlo Zaccone

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Titanic survival predictor

In this tutorial, we will learn to use TFLearn and TensorFlow to model the survival chance of titanic passengers using their personal information (such as gender, age, and so on). To tackle this classic machine learning task, we are going to build a DNN classifier.

Let's take a look at the dataset (TFLearn will automatically download it for you).

For each passenger, the following information is provided:

survivedSurvived (0 = No; 1 = Yes) pclass            Passenger Class (1 = st; 2 = nd; 3 = rd) name Name sex  Sex age  Age sibsp   Number of Siblings/Spouses Aboard parch   Number of Parents/Children Aboard ticket  Ticket Number fare    Passenger Fare

Here are some samples extracted from the dataset:

survived pclass name sex age ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required