Giter Site home page Giter Site logo

bahau88 / breastcancer-predictor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from batmanscode/breastcancer-predictor

1.0 0.0 0.0 5.79 MB

Web app to demo predicting breast cancer using BMI, Glucose, Insulin, HOMA and Resistin.

Home Page: https://breastcancer-predictor.streamlit.app/

License: MIT License

Shell 1.09% Python 98.58% Procfile 0.33%

breastcancer-predictor's Introduction

Breast Cancer Prediction Using Artificial Intelligence 🤖

Streamlit App

Live at: https://breastcancer-predictor.herokuapp.com/ (heroku couldn't install numpy)

             × Encountered error while trying to install package.
             ╰─> numpy

Live at: https://breastcancer-predictor.streamlit.app

This web app uses machine learning to predict whether a person has breast cancer using some of their clinical data.

It takes the following input:

  • BMI (kg/m2)
  • Glucose (mg/dL)
  • Insulin (µU/mL)
  • HOMA
  • Resistin

And returns either "no breast cancer" or "breast cancer present" along with their probabilities.

Dataset used: Breast Cancer Coimbra

Details described in: Patrício, M., Pereira, J., Crisóstomo, J. et al. Using Resistin, glucose, age and BMI to predict the presence of breast cancer. BMC Cancer 18, 29 (2018)

Demo

demo

How to Run Locally

Clone this repository, create a new environment, and enter the following in your terminal:

streamlit run app.py

This will create a local web server which should open in your default browser. If not just use one of the links returned in your terminal.

Additional Info

  • Web app built with Streamlit (which is an amazing tool, if you haven't heard of it already).
  • pipeline.py is the code used to generate model.pkl. TPOT was used to create this pipeline.

Possible Issues

If your cloned version gives you an error, please generate a new model.pkl by running pipeline.py and try again. This will overwrite the existing model.pkl.

I ran into ValueError: Buffer dtype mismatch, expected 'SIZE_t' but got 'int' when trying to deploy on Heroku despite it working in my local env. Turns out you can't pickle on one architecture and unpickle on a different one (32/64-bit). Thanks to this answer for helping me understand what the issue was.

breastcancer-predictor's People

Contributors

batmanscode avatar dependabot[bot] avatar

Stargazers

Bahauddin Habibullah 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.