Giter Site home page Giter Site logo

kshitizrohilla / titanic-survival-prediction-using-naive-bayes-classifier-algorithm Goto Github PK

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

This project aims to predict the survival of passengers aboard the Titanic using the Naive Bayes classifier algorithm. The dataset used in this project contains information about Titanic passengers, such as their age, gender, passenger class, and other relevant features.

Jupyter Notebook 100.00%
titanic-data-analytics titanic-dataanalysis titanic-dataset titanic-dataset-predictions titanic-datasets titanic-kaggle titanic-machine-learning titanic-survival titanic-survival-exploration titanic-survival-prediction

titanic-survival-prediction-using-naive-bayes-classifier-algorithm's Introduction

Titanic Survival Prediction using Naive Bayes Classifier Algorithm

This project aims to predict the survival of passengers aboard the Titanic using the Naive Bayes classifier algorithm. The dataset used in this project contains information about Titanic passengers, such as their age, gender, passenger class, and other relevant features. By training a Naive Bayes classifier on this data, we can predict whether a given passenger would have survived the Titanic disaster.

Dataset

The dataset used in this project is the Titanic dataset, which contains information about passengers from the Titanic ship. It consists of the following columns:

  • survived: 0 if the passenger did not survive, 1 if the passenger survived (target variable).
  • p_class: Passenger class (1, 2, or 3).
  • gender: Gender of the passenger.
  • age: Age of the passenger.
  • sib_sp: Number of siblings/spouses aboard the Titanic.
  • parch: Number of parents/children aboard the Titanic.
  • fare: Fare paid by the passenger.
  • embarked: Port of embarkation (C = Cherbourg, Q = Queenstown, S = Southampton).

Naive Bayes Classifier Algorithm

The Naive Bayes classifier algorithm is a probabilistic machine learning algorithm that is based on Bayes' theorem. It assumes that all features are independent of each other, hence the term "naive." Despite this assumption, the Naive Bayes classifier has been proven to perform well in many real-world applications, including text classification and spam filtering.

The steps involved in using the Naive Bayes classifier algorithm for the Titanic survival prediction are as follows:

  1. Load the Titanic dataset.
  2. Preprocess the data by handling missing values, encoding categorical variables, and scaling numerical features if necessary.
  3. Split the data into training and testing sets.
  4. Train a Naive Bayes classifier on the training data.
  5. Evaluate the performance of the classifier on the testing data using appropriate metrics, such as accuracy, precision, recall, or F1 score.
  6. Predict the survival outcome for new, unseen data using the trained classifier.

titanic-survival-prediction-using-naive-bayes-classifier-algorithm's People

Contributors

kshitizrohilla avatar

Watchers

 avatar

Forkers

devujjawal123

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.