Git Product home page Git Product logo

sentiment-classification's Introduction

Sentiment-classification

IMDB Movie reviews sentiment classification

  1. Import required libraries and the dataset
  2. Visualise a sample of dataset
  3. Data preprocessing
  4. Sequential Model Building with Activation for each layer
  5. Compile with binary CE loss and metric accuracy
  6. Train Model with cross validation, with total time taken shown for 20 epochs
  7. Visualise Loss and Accuracy history
  8. Show Confusion Matrix for validation dataset

Hyperparameter Experiments

  1. Network Depth : 1 Hidden Layer of 64 units 2 Hidden Layer of 64-32 units
  2. Regularisations :
    1. Dropout of ratio 0.25
    2. Dropout of ratio 0.25 with L2 regulariser with factor 1e-04
  3. Activations :
    1. ReLU for every hidden layer
    2. Sigmoid for every hidden layer (sigmoid for final layer)
  4. Batch Size :
    1. 64
    2. 256
  5. Optimisers :
    1. Adam with lr 1e-03
    2. SGD with lr 1e-02 and momentum 0.95

Summarise the results mentioning which of the above combinations gives highest accuracy and which one the lowest, providing your understanding behind them

sentiment-classification's People

Contributors

dotnand avatar

Watchers

James Cloos avatar  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.