Giter Site home page Giter Site logo

vanisingh-24 / deploying-a-sentiment-analysis-model Goto Github PK

View Code? Open in Web Editor NEW

This project forked from starkblaze01/deploying-a-sentiment-analysis-model

0.0 0.0 0.0 401 KB

Deploying a Sentiment Analysis Model on AWS Sagemaker

HTML 80.03% Jupyter Notebook 17.65% Python 2.32%

deploying-a-sentiment-analysis-model's Introduction

Deploying-a-Sentiment-Analysis-Model

This project is an assignment for Deep Learning Nanodegree provided by Udacity.

Here are steps you need to follow in order to complete this project on Udacity:

  1. Create an AWS account.
  2. Request for AWS credits from Udacity here. This might take up to 48 hours. You will receive a promo code which you will use on your AWS account.
  3. Now, you need to request for resource limit increase. For deployment we are using ml.m4.xlarge machine but for training we need ml.p2.xlarge. Here is an article by udacity on how to file a ticket to get resource limit increased. This might take time depending upon your region. So, to save time you can use ml.m4.xlarge instance for training too but training model can take up to 2-3 hours(Still less than the average time it takes to get ml.p2.xlarge resource limit increased).
  4. ml.m4.xlarge usually comes under free tier. But the number of instances are still limited so make sure to remove any running instances on this machine in any region before you use it. You might face one more issue when you try to deploy your model using ml.m4.xlarge, because this resource is different for deployment and training, and not included in free-tier for some of the regions. So, you have to file the ticket for this also as you did in above setp for ml.p2.xlarge. Make sure you choose Sagemaker hosting instead of Sagemaker training this time. And resource for which you want to get limit increased is ml.m4.xlarge by instance 1(Make sure you delete other endpoints if already running).
  5. At last you need to make changes in code also which is not listed in TODO. In the function test_reviews change int(predictor.predict(review_input)) to float(predictor.predict(review_input)). These steps should be enough to get your project running if you have set up IAM role, Lambda function, and API Gateway properly.

deploying-a-sentiment-analysis-model's People

Contributors

starkblaze01 avatar vanisingh-24 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.