#Titanic Project ##Introduction
##Feature Engineering on dataset
PassengerId | Survived | Pclass | Name | Sex | Age | SibSp | Parch | Ticket | Fare | Cabin | Embarked |
---|---|---|---|---|---|---|---|---|---|---|---|
714/891 | 204/891 | 889/891 | |||||||||
convert | fix missed | convert to fare_bin, fare_id | fix missed | fix missed, convert | |||||||
int64 | int64 | int64 | object | object | float64 | int64 | int64 | object | float64 | object | object |
0/1 | convert to vector | convert to title | to 0/1 | float64 | int64 | int64 | object | float64 | object | object |
####Operation
- fix missed values: Embarked, Age, Cabin.
- convert data: Sex, fare_bin, fare_id, Embarked.
####Pclass
3 | 2 | 1 |
---|---|---|
(1,0,0) | (1,1,0) | (1,1,1) |
####Convert 'Name' to 'Title' #####convert
'Lady', 'Countess','Capt','Col', 'Don', 'Dr', 'Major', 'Rev', 'Sir', 'Jonkheer', 'Dona' #####to
'Rare'
#####convert 'Mlle', 'Ms' to 'Miss' #####convert 'Mme' to 'Mrs'
No title | Mr | Miss | Mrs | Master | Rare |
---|---|---|---|---|---|
(0,0,0,0,0) | (1,0,0,0,0) | (1,1,0,0,0) | (1,1,1,0,0) | (1,1,1,1,0) | (1,1,1,1,1) |
What does master mean? Master is a title for an underage male. If a person is under 18, master would be used. Once a person turns 18 and enters adulthood, mister would be used.
--https://writingexplained.org/master-vs-mister-difference
####Connection
- use Title predict Age.