Giter Site home page Giter Site logo

konkyrkos / sentiment-classifier-classic-algorithms Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 294 KB

Tweet Sentiment Classifier using Classic Machine Learning Algorithms. This repository provides my solution for the 2nd Assignment for the course of Text Analytics for the MSc in Data Science at Athens University of Economics and Business.

License: MIT License

Jupyter Notebook 100.00%
sentiment-classifier classifier-metrics-precision f1-scores recall probabilistic-classifiers dummyclassfier sgd logistic-regression random-forest multinomial-naive-bayes

sentiment-classifier-classic-algorithms's Introduction

Sentiment Classifier using Classic Algorithms

This repository provides my solution for the 2nd Assignment for the course of Text Analytics for the MSc in Data Science at Athens University of Economics and Business.

Development of a sentiment classifier for tweets using the "Sentiment 140" dataset provided by Stanford University.

Created features corresponding to words and used feature selection and centroids of pre-trained word embeddings.

Tuned most hyperparameters used in the classifiers below either with grid search or using experiments.

Classifiers

  1. DummyClassifier
  2. SGDClassifier (Logistic regression)
  3. RandomForestClassifier
  4. MultinomialNB

Classifier metrics

Precision, recall, F1 scores for each class and classifier, using a classification threshold t = 0.5 for each class in probabilistic classifiers, computed on the training, development, and test subsets.

Classifier macro-average metrics

Macro-averaged precision, recall, F1 scores for each classifier, again using a classification threshold t = 0.5 for each class in probabilistic classifiers, computed on the training, development, and test subsets

Statistical significance tests

Bootstrap statistical significance tests to check if the difference between the test macro-averaged F1 of the best (in terms of test macro-averaged F1) classifier (e.g., logistic regression) and the test macro-averaged F1 of each other classifier (or baseline) you experimented with is statistically significant (p-value < 0.01)

Learning curves

Learning curves for macro-averaged F1 computed on (i) the training data the classifier has encountered, and (ii) the entire development subset.

Precision recall curves

Precision-recall curves using macro-averaged precision and recall, computed on the test subset. AUC values.

Preprocessing & Statistics

Statistics about the datasets (e.g., average document length, number of training/dev/test documents, vocabulary size) and preprocessing of data

sentiment-classifier-classic-algorithms's People

Contributors

konkyrkos avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

shiv6891

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.