Git Product home page Git Product logo

kaggletitanic's Introduction

KaggleTitanic

Data Exploration, Preprocessing and Model Training for the Kaggle Challenge "Machine Learning from Disaster".

Two model classes were used to solve this problem:

  • Support Vector Classifier
  • Random Forest Classifier

Preprocessing:

  • Encoding of feature 'sex'
  • One-hot encoding for first letter of feature 'Cabin' and for feature 'Embarked'
  • Missing value strategy for features 'Age' and 'Fare': Median
  • Log transformation for feature 'Fare'
  • Standard scaling for numerical features 'Fare' and 'Age'

For both models, hyperparameter optimization via Grid Search was done.

  • SVC Parameters: C, kernel
  • RFC Parameters: n_estimators, max_depth, max_features

Results (after submitting predictions in csv-format):

  • SVC: 0.76555
  • RFC: 0.75358

Looking forward to make improvements in the future. :)

Scripts:

  • data_exploration.py -> visualizations and data exploration
  • preprocessing.py -> all preprocessing steps that were done
  • tune_train_test_rf.py -> Tuning, training and predictions for Random Forest Classifier
  • tune_train_test_svm.py -> Tuning, training and predictions for Support Vector Classifier

Link to challenge: https://www.kaggle.com/competitions/titanic/overview

kaggletitanic's People

Contributors

supraano avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.