Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 1.32 KB

README.md

File metadata and controls

17 lines (10 loc) · 1.32 KB

Sentiment analysis project

This repository contains a notebook and Python files that build up a simple web app which interacts with a deployed recurrent neural network (RNN) performing sentiment analysis on movie reviews using AWS SageMaker.

This project was submitted in partial fulfillment of the requirements for the Udacity Machine Learning Nanodegree.

1. Jupyter notebook:

  • How the data was processed, split and transformed to numerical representations.
  • How the model (and its artifacts) was built, tested and deployed to a SageMaker endpoint.
  • How the web app (client) accesses the deployed endpoint through AWS Lambda and API Gateway services. Given the right permissions, the lambda function is triggered when user submits a text for analysis and the code is executed. API Gateway provides a new endpoint that acts as an interface between the function and the web app.

2. train/train.py: how the model's training parameters are implemented. This file is picked up by the model object defined in the notebook and its parameters are sent as arguments when the script is executed.

3. serve/predict.py: how the model performs inference and computes the result when called with new data.

4. website/index.html: basic html structure to call the API endpoint, invoke the Lambda function and get its response.