ageron / ageron/handson-ml2

Chapter 3: Exercise 3 "Using Titanic dataset" Solution

Open
#153 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
30k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

'Survived' should be dropped before fitting the model, therefore adding:
`train_data = train_data.drop('Survived', axis=1)` or
`train_data.drop('Survived', axis=1, inplace=True)`
before Pipeline transformations.

This would be very helpful for newbies.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the Chapter 3 Titanic exercise notebook and read the training-data setup immediately before the Pipeline transformations. Verify that the target column is excluded before fitting, then run the notebook's relevant cells and confirm the model trains without using 'Survived' as an input feature.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.