Pipeline Test Pickle
Pipeline Test Pickle
November 6, 2024
[23]: pipe.predict(test_input2)
C:\Users\home\AppData\Local\Programs\Python\Python312\Lib\site-
packages\sklearn\base.py:493: UserWarning: X does not have valid feature names,
but SimpleImputer was fitted with feature names
warnings.warn(
C:\Users\home\AppData\Local\Programs\Python\Python312\Lib\site-
packages\sklearn\base.py:493: UserWarning: X does not have valid feature names,
but SimpleImputer was fitted with feature names
warnings.warn(
# Define the feature names in the same order as the training data
feature_names = ['Pclass', 'Sex', 'Age', 'SibSp', 'Parch', 'Fare', 'Embarked']
[1]
1. Pclass: 1 (first class, often associated with higher survival)
2. Sex: female (higher survival rates for women)
1
3. Age: 22.0 (young age, more likely to survive)
4. SibSp: 0 (no siblings/spouses onboard, fewer dependencies)
5. Parch: 0 (no parents/children onboard, fewer dependencies)
6. Fare: 80.0 (a relatively high fare, often associated with first class)
7. Embarked: ‘C’ (Cherbourg, known for higher survival rates)
[ ]: