GithubHelp home page GithubHelp logo

ninawekunal / applied-ml-algorithms Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 356 KB

A ML project that takes the titanic dataset and plays with different ML models in scikit-learn and hyper-parameter tuning.

Home Page: https://github.com/ninawekunal/Applied-ML-Algorithms/blob/main/Final/Titanic_Predictions_5_models.ipynb

Jupyter Notebook 100.00%

applied-ml-algorithms's Introduction

Applied-ML-Algorithms

Link: Titanic Prediction 5 models: (Open in new tab)

Objective:

  • Take dataset from Kaggle and play with various Machine Learning models to get the best model which has highest accuracy in prediction.
  • Preprocess the dataset by explore and cleaning it.
  • Scenarios on when to use each model.
  • Learn practical application of Machine Learning models like:
  • Fine tune hyper-parameters of each model to improve accuracy:
    • Learning Rate
    • Depth of Decision Tree
    • num_estimators of decision tree
    • Regularization parameter C
    • Kernel
    • activation functions
    • hidden_layer_size
    • and much more...
  • Choosing optimal model by testing each model on test dataset and evaulating against each other's score.

Result:

  • After training 5 different models on the titanic dataset's validation data, I got an performance metrics as follows:
    • LR -- Accuracy: 0.758 / Precision: 0.778 / Recall: 0.675 / Latency: 2.2ms
    • SVM -- Accuracy: 0.753 / Precision: 0.767 / Recall: 0.675 / Latency: 4.3ms
    • MLP -- Accuracy: 0.742 / Precision: 0.776 / Recall: 0.627 / Latency: 11.5ms
    • RF -- Accuracy: 0.787 / Precision: 0.846 / Recall: 0.663 / Latency: 9.5ms
    • XGB -- Accuracy: 0.798 / Precision: 0.862 / Recall: 0.675 / Latency: 6.9ms
  • XGB performs the best in terms of Accuracy of 79.8% and Precision of 86.2%, and ties with LR with a high recall of 67.5% with a low latency.
  • On the test data, metrics were:
    • XGB -- Accuracy: 0.832 / Precision: 0.792 / Recall: 0.655 / Latency: 4.5ms
    • High Accuracy with a slightly low precision and recall with a low latency.

applied-ml-algorithms's People

Contributors

ninawekunal avatar

Watchers

James Cloos avatar  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.