Baseline
Explore the basics of binary classification by implementing and evaluating a simple baseline algorithm that predicts passenger survival. Understand how to measure accuracy and why considering class prevalence is crucial in assessing model performance.
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.
A random classifier
We import the random number generator in line 1 ...