Git Product home page Git Product logo

abzdel / machine-learning-serverless Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 75 KB

A linear model used to classify breast cancer instances using UCI'S breast cancer diagnostic data set. Model is trained using AWS Sagemaker and invoked using Amazon API Gateway and an AWS Lambda function.

License: Creative Commons Zero v1.0 Universal

Makefile 0.47% Jupyter Notebook 94.54% Python 5.00%

machine-learning-serverless's Introduction

Makefile CI

Serverless Machine Learning Model

A linear model used to classify breast cancer instances using UCI'S breast cancer diagnostic data set. Model is trained using AWS Sagemaker and invoked using Amazon API Gateway and an AWS Lambda function.

adapted from this AWS Blog Post

Architectural Diagram

project3 drawio

Steps to reproduce

How to run

  1. Clone repository
git clone https://github.com/nogibjj/Machine-Learning-Serverless.git
  1. Install dependencies
make install
  1. Set up AWS Permissions. More info on this can be found here

  2. Run the Breast Cancer Prediction notebook inside the setup folder. This allows you to train your model and host it with an Amazon Sagemaker endpoint.

  3. Now that the model & endpoint are setup, you can invoke the API by running

python invoke.py

To enter more predictions, simply change the values inside json.dumps() within this file.

  1. Turn off your resources! You can either run the last cell in the notebook, or do this through the AWS Management Console. On the console, you should only need to delete your endpoint and model (under Amazon Sagemaker) as the Lambda function will not incur costs unless invoked.

machine-learning-serverless's People

Contributors

abzdel avatar

Watchers

Noah Gift avatar  avatar

Forkers

analyticsworld1

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.