Giter Site home page Giter Site logo

mrmorgan17 / imdb Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.23 MB

IMDB US Movies project for the Kaggle competition: IMDB Score Prediction. This was an in-class competition in which I placed 1st out of 18 students who submitted predictions.

Home Page: https://www.kaggle.com/c/imdbusmovies

R 100.00%
r xgboost feature-engineering feature-selection data-cleaning movies imdb caret

imdb's Introduction

IMDB

This repository includes exploratory analysis and predictive modeling for the IMDB Score Prediction Kaggle competition. All code was done using the R programming language.

The .R file IMDBCleaning.R includes the code for the methodology used for the data cleaning process. This R script showcases feature selection, feature engineering, mode, mean, and stochastic regression imputation, among other methods to create a clean dataset, CleanedIMDBData.csv.

The .R file IMDB.R includes the modeling done on the CleanedIMDBData.csv dataset. This R script created two different xgbTree models using the caret package and the xgboost package. Both models performed similarly, and due to randomness, sometimes the caret model's predictions, caret-preds.csv would outperform the xgboost model's preditions, xgboost-preds.csv.

A notebook was created on Kaggle for this competition as well and can be found here.

The goal of this competition was to use a variety of data about a movie (actors, director, facebook likes, budget, gross, etc) to predict what its score out of 10 on IMDB would be. This dataset, IMDBTrain.csv and IMDBTest.csv had information on approximately 3400 domestic (USA) movies. Since the end result was a score out of 10, this meant that the competition was a regression problem and not a classification problem. A unique aspect of this project was the depth of data cleaining that had to be done beforehand. Much of the basis for what I did in my data cleaning comes from Dr. Heaton's IMDBDataCleaning.R file. It gave me great new insights into using tidyverse and new methods of data cleaning!

The best model that was fit to the data was an xgbTree model (caret) or an xgboost model with a gbtree booster (xgboost). Models were fit using the caret package and the xgboost package. While the competition was only an in-class competition, one the private leaderboard, my best submission achieved an RMSE score of .66826 which placed me 1st among the 18 students who submitted predictions during the time that this Kaggle competition was active.

Additional improvements could possibly be made in the areas of data cleaning as I am sure that there is more that could be done with this dataset. Also, it is possible that a different model besides the xgbTree models that I used could outperform my current score. Additionally, the model parameters I chose for my xgbTree models could possibly be improved as well.

imdb's People

Contributors

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