Baseline

Learn how we can implement and evaluate a classifier.

Now, we have our input data and the resulting labels, and we’ve separated it into a training and testing set. The only thing left is our algorithm.

Our algorithm should predict whether a passenger survived the Titanic shipwreck. This is a classification task since there are distinct outcome values. Specifically, it is a binary classification task because there are precisely two possible predictions, survived or died.

Before developing a quantum machine learning algorithm, let’s implement the simplest algorithm we can imagine: a classifier guess.

Get hands-on with 1200+ tech skills courses.