Skip to content

An auto-scaling ML application to predict medical expenditures hosted on AWS.

Notifications You must be signed in to change notification settings

DerekLW6/MLModelDeployment

 
 

Repository files navigation

Project Description

This project is a containerized auto-scaling ML application to predict medical expenditures hosted on AWS.

Demo Video

https://www.loom.com/share/42666a4787a140ab8680d42d2931d8b3

Architecture

Architecture

User Interface

Index Page

Index

Prediction Page

Prediction

Sample Web API Call

Here is a sample call to the API with the following parameters:

Age: 23

BMI: 25

Number of Children: 3

Sex: Male

Smoking Status: Yes

Region: Southwest

Host IP Address: 54.224.27.206

curl -v -H "Content-Type:application/json" -X POST -d "{\"age\":23, \"bmi\":25, \"children\":3, \"female\":0, \"male\":1, \"no\":1, \"yes\":0, \"northeast\":1, \"northwest\":0, \"southeast\":0, \"southwest\":0}" 54.224.27.206/:8080/predict

Here is the response:

{"prediction":[3284.857731772743]}

Team Members

Derek Wales, Duke MIDS

Joe Krinke, Duke MIDS

About

An auto-scaling ML application to predict medical expenditures hosted on AWS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 96.8%
  • Python 1.8%
  • Other 1.4%