GithubHelp home page GithubHelp logo

eprate's Introduction

eprate

Text mining of IMDB episode descriptions to look for associations with episode rating.

The scripts are written in Python 3, and depend on numpy, pandas, scikit-learn and the IMDbPy module.

Downloading Data

To download data, run the gather_data.py script. The script takes the name of the show as a command line argument.

$ python3 gather_data.py "Doctor Who"
Downloading data on Doctor Who

Predicting on New Data

To predict the rating for a new episode description, use the predict_rating.py script. The prediction is made based on a gradient boosting machine with 100 iterations and a learning rate of 0.01.

$ python3 predict_rating.py "Doctor Who" "The Doctor adopts a baby Dalek"
[ 8.10292221]

Benchmarking Models

The script benchmark_models.py can be used to assess the performance of different algorithms on predicting ratings for a particular show through h2o. The h2o leaderboard is printed to screen.

$ python3 benchmark_models.py "Doctor Who"

Visualization

In addition to the main Python scripts, there is an R script make_plots.R for visualization. Examples of the output are shown below.

Doctor Who

Doctor Who

The West Wing

The West Wing

Game of Thrones

Game of Thrones

eprate's People

Contributors

erleholgersen avatar

Stargazers

Nate 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.