Table of Contents

Lab: Machine Learning: Supervised and Unsupervised

Before the lab

Entry quiz

Q&A

  1. A decision tree classifies every training example correctly, while a simpler tree makes several mistakes. Which model should we choose?
  2. A team tests twenty model variants and reports the one with the highest test-set accuracy. Is that still a fair test of future performance?
  3. A dataset has three known classes, but clustering produces three groups that do not match them. Has the clustering failed?
  4. Removing one feature lowers classification accuracy but improves the clustering score. Is that contradictory?

Notebook

Notebook: HCAI_Lab_Machine_Learning.ipynb (Work in Google Colab or download the .ipynb file to local environment)

Work in groups of 2-4. Every group member must be able to explain the results.

Challenge

Work in groups of 2-4 on the Spaceship Titanic challenge using the provided Starter Notebook.

Predict which passengers were transported to another dimension. Start with the working classification baseline, then improve it through controlled experiments with feature representation, preprocessing, model selection, and evaluation. Use cross-validation to compare your changes, and keep one successful and one unsuccessful experiment.

Next, hide the target labels and investigate whether the passengers form meaningful clusters. Describe at least one cluster and discuss whether the discovered groups align with `Transported` and why such alignment is not required.

Participation in the Kaggle leaderboard is optional.

Start the challenge during the lab and continue it as part of the self-study regarding classes. Selected groups may share their models and findings at the next lab, and effective solutions may receive bonus points.

Learn more!