Code Monkey home page Code Monkey logo

breast-cancer-project's Introduction

Deploying model -- Flask, Streamlit and Heroku

Project Overview

Simple project using scikit learn to build and serve models via Flask API or Streamlit and deploy using Heroku. The goal is to create a ML pipeline starting with building model, transforming it to production ready code and then deploying the model via API or via Streamlit.

Model Overview

The model is constructed fairy simply with selecting only top 10 features and using SVM from scikit learn. If anyone wishes to improve model accuracy, consider adding more features and balancing the target class. As mentioned the purpose of this project is to build the entire ML pipeline from model building to deployment, so I kept the model as simple as I could.

Running Locally

Modularize local packages with python setup.py develop first.

streamlit app

For running Streamlit, run the app with streamlit run app.py on the localhost

Flask API

For running Flask API, set up Flask with set FLASK_APP = app.py and run with python run.py Flask API doesn't have html template, so I suggest running with Streamlit if anyone wants to play with the app.

Testing

Using Tox to automate training and testing model. Using pytest for testing both model and Flask API

breast-cancer-project's People

Contributors

dannylee1020 avatar

Stargazers

Shubham Suryavanshi 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.