Coder Social home page Coder Social logo

akashbangalkar / cancer-diagnosis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.34 MB

Machine Learning - Multiclass Classification

Jupyter Notebook 100.00%
machine-learning classification cancer-diagnosis exploratory-data-analysis knn-classification naive-bayes logistic-regression linear-svm random-forest stacking-ensemble

cancer-diagnosis's Introduction

Personalized Cancer Diagnosis

Business Problem

Data: Memorial Sloan Kettering Cancer Center (MSKCC)

Download training_variants.zip and training_text.zip from Kaggle.

Context: Source: https://www.kaggle.com/c/msk-redefining-cancer-treatment/discussion/35336#198462

Problem statement: Classify the given genetic variations/mutations based on evidence from text-based clinical literature.

Real-World/Business Objectives and Constraints

  • No low-latency requirement.
  • Interpretability is important.
  • Errors can be very costly.
  • Probability of a data-point belonging to each class is needed.

Data Overview

  • Source: https://www.kaggle.com/c/msk-redefining-cancer-treatment/data
  • We have two data files: one conatins the information about the genetic mutations and the other contains the clinical evidence (text) that human experts/pathologists use to classify the genetic mutations.
  • Both these data files are have a common column called ID Data file's information:
    • training_variants (ID , Gene, Variations, Class)
    • training_text (ID, Text)

Preprocessing Text Data

Checking Null Values

Merging both gene variations and text data

Perform Exploratory Data Analysis

Univariate Analysis

  • Response Coding with Laplace Smoothing
  • Univariate Analysis on Gene Feature
  • Featurizing Gene Feature
  • Univariate Analysis on Variation Feature
  • Featurizing Variation Feature
  • Univariate Analysis on Text Feature

Click Here To Check Total Work on Case Study.

Machine Learning Models

Stacking all the three types of features

Model Log Loss
Naive Bayes 1.3007
KNN Classification 1.0827
Logistic Regression (With Class Balancing) 1.2266
Logistic Regression (Without Class Balancing) 1.2201
Linear Support Vector Machines 1.2283
Random Forest Classifier 1.1755
Stacking Model 1.2749
Maximum Voting Classifier 1.2356

cancer-diagnosis's People

Contributors

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