Giter VIP home page Giter VIP logo

greenatom_assignment's Introduction

Assignment for greenatom internship

The original dataset ai.stanford.edu/~amaas/data/sentiment/

Overview

The project consists of two parts. Neural Network classifier (sources in /classifier) and web-server on django.

File presentation.ipynb allows you to run all experiment on google colab.

Classification results

I used 2 popular Neural net architectures: GRU and Conv net.

Nets predict review score from 1 to 10.

Both models trained on 3 epochs with Adam optimizer and negative log likehood loss.

There are results of several experiments. Although models predict score from 1 to 10, in the original task reviews with score more than 7 considered positive and less than 5 considered as negative. All columns except Real accuracy calculated according to this rule.

GRU

Model Real accuracy Binary Accuracy F1 Precision Recall
GRU 0.11 0.57 0.41 0.64 0.31
GRU + dropout 0.15 0.63 0.51 0.75 0.38

Neural net with conv layers

Model Real accuracy Binary Accuracy F1 Precision Recall
ConvNet 0.171 0.72 0.69 0.76 0.63
Big ConvNet + dropout 0.183 0.74 0.71 0.82 0.62

As we can see ConvNet has a better score. Thus, it is out choice for website.

All trained model parameters can be found here

greenatom_assignment's People

Contributors

zemerov avatar

Watchers

 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.