Giter VIP home page Giter VIP logo

data-science-main's Introduction

Titanic Notebook

This notebook uses machine learning algorithms to get the best accuracy of predictions for who survived the sinking of the Titanic given the attributes in the dataset.

Setup

  • Install Python 3.12.2
    • Run python --version to ensure you have the correct version
  • and/or create a Python virtual environment with Python 3.12.2
    • If you have the right python version, simply create a new python virtual environment using the following CLI python -m venv /path/to/new/virtual/environment (I prefer placing the virtual environment inside the project folder so that VS code can automatically detect the right kernel)
  • Activate your virtual environment
  • Once your environment is activated, navigate to the folder containing the project/repo files and run the following command in the terminal to install all required packages:
    • pip install -r requirements.txt
  • In VS Code, open the "Titanic - Abdullah.ipynb" file and ensure the right kernel is connected
  • To be able to view the decision tree in the output, you will need to install the graphviz library.
    • I used graphviz version 10.0.1 (post installation you can check the version and correct installation by running dot -V in the terminal)
    • I simply used scoop on windows to install graphviz. You can use brew on Mac/Linux to install graphviz.
  • Make sure that you have the python and jupyter extention installed on VS Code.

You can compare my implementation of the notebook (Titanic - Abdullah.ipynb) with that of Claudia's and Iemejia's side-by-side.

data-science-main's People

Contributors

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