GithubHelp home page GithubHelp logo

debajyoti94 / myheartwillnotgoon Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 219 KB

Finding out who survived on Titanic ship using Logistic Regression.

Jupyter Notebook 93.45% Python 6.55%
machine-learning logistic-regression oop python

myheartwillnotgoon's Introduction

Who will survive on Titanic?

Building a predictive model to see who will survive on titanic ship. Dataset is taken from here.

The repository has multiple directories, with each serving a different purpose:

  • input/: contains the dataset, split into train and test files.
  • model/: consists of baseline logistic regression models. Stratified Kfold validation was applied while training the model, with number of folds=5, hence you see 5 models.
  • notebooks/: Consists of one jupyter notebook. It was used for EDA purpose and also experiment with some functions used for feature engineering.
  • src/: this directory consists of the source code for the project.
    • config.py: consists of variables which are used all across the code.
    • create_folds.py: used for implementing stratified kfold cross validation.
    • feature_engg.py: used for cleaning the data (test & train) and apply data imputation for missing values in the features.
    • test_functionalities: using pytest module, i define some data sanity checks on the training data.
    • train.py: this file contains the code for implementing the model. The train and the inference stage.

To train the model use the following command:

python train.py --train skfold

For inference stage, use:

python train.py --test inference

myheartwillnotgoon's People

Contributors

debajyoti94 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.