Skip to Main Content
Machine Learning Quick Reference
book

Machine Learning Quick Reference

by Rahul Kumar
January 2019
Intermediate to advanced content levelIntermediate to advanced
294 pages
6h 43m
English
Packt Publishing
Content preview from Machine Learning Quick Reference

Example of the training and test set

Let's take a use case and work it out in Python. We are going to use Titanic data from Kaggle. The data has been split into two groups:

  • Training set (train.csv)
  • Test set (test.csv)

The data is about the passengers who traveled on the Titanic. It captures their features:

  • pclass: Ticket class 1 = 1st, 2 = 2nd, 3 = 3rd
  • gender: Gender
  • Age: Age in years
  • sibsp: Number of siblings/spouses aboard the Titanic
  • parchNumber of parents/children aboard the Titanic
  • ticket: Ticket number
  • fare Passenger: Fare
  • cabin: Cabin number
  • embarked: Port of embarkation C = Cherbourg, Q = Queenstown, and S = Southampton

We have got to build the model to predict whether or not they survived the sinking of the Titanic. Initially, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Mining and Machine Learning Applications

Data Mining and Machine Learning Applications

Rohit Raja, Kapil Kumar Nagwanshi, Sandeep Kumar, K. Ramya Laxmi
Advanced Machine Learning with R

Advanced Machine Learning with R

Cory Lesmeister, Dr. Sunil Kumar Chinnamgari
Natural Language Processing and Computational Linguistics

Natural Language Processing and Computational Linguistics

Brian Sacash, Bhargav Srinivasa-Desikan, Reddy Anil Kumar
TensorFlow Machine Learning Projects

TensorFlow Machine Learning Projects

Ankit Jain, Dr. Amita Kapoor

Publisher Resources

ISBN: 9781788830577Supplemental Content