Downloads · 30 days
0
thiruselvan-mle/Titanic-Survival-Prediction
Titanic-Survival-Prediction is a tabular classification model from thiruselvan-mle. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
- This is a RandomForest model trained on Kaggle's Titanic dataset. - It predicts whether a passenger survived or not.
Downloads · 30 days
0
Access
Public
Updated Oct 6, 2025
Repo size
2.3 MB
Likes
0
Public
Click a slice to open those files.
.pkl2.3 MB · 100%
From the Hugging Face model README
import joblib
import pandas as pd
# Load the model
model = joblib.load('titanic_model.pkl')
# Prepare input data
X_new = pd.DataFrame({
'Pclass':[3],
'Sex':[0],
'Age':[22],
'SibSp':[1],
'Parch':[0],
'Fare':[7.25],
'Embarked':[2],
'FamilySize':[2],
'IsAlone':[0]
})
## Make prediction
prediction = model.predict(X_new)
print("Survived" if prediction[0]==1 else "Not Survived")