12. Productionizing Your AI Applications
Activity 12.01: Predicting the Class of a Passenger on the Titanic
Solution
- Create the
Activity12.01
directory in theChapter12
directory to store the files for this activity. Make sure that theDatasets
directory contains theTitanic
dataset subdirectory with two files in it:train.csv
andtest.csv
. - Start Jupyter Notebook and create a new Python 3 notebook in the
Activity12.01
directory. Give the notebook the namedevelopment
. - Let's start by installing the
pandas
andsklearn
Python libraries for model building. Enter the following code in the first cell:!pip install pandas !pip install sklearn
It should give the following output:
It will download the libraries and install them within your active Anaconda environment. There is a good chance that both frameworks are already available in your system, as part of Anaconda or from previous installations. If they are already installed...