Git Product home page Git Product logo

oscar_movie_analysis's Introduction

Oscar_Movie_Analysis

The software packages in our project are consist of three parts: java programs for processing Amazon dataset to prepare for clustering; cluster-movies.sh shell file for clustering Amazon dataset; and the Pig scripts for processing Yahoo dataset. For the java programs, three java programs named Parse.java, Modify.java and Replace.java. Parse.java works as a parser to get the movie reviews of whole dataset. Replace.java will scan these reviews and remove those insignificant words for our expected results such as “he”, “she”, “is” etc. Modify.java is going to parse the result file and get each review to a single .txt file. For the cluster-movies.sh shell file, it is modified from cluster-reuters.sh, which is contained in examples in Mahout. By running it we can get movies dataset and prepares it for clustering, then cluster the dataset using any of these four algorithms: k-means, fussy k-means, lda and streaming k- means. In our project, after trying all these algorithms, we found the best algorithm for our project is k-means.

For the Pig scripts, there are two scripts, one is for analyze the age distribution, the other is for gender distribution. Age distribution • Download Pig • export PATH=//pig- n.n.n/bin:$PATH • Make sure that your JAVA_HOME has been correctly set. • Run your pig code in local mode pig -x local • Replace “PATH-TO-dataset” with your own. The datasets include ratings.csv, ydata-ymovies- mapping-to-eachmovie-v1_0.txt and user_data.txt. • Follow the order of the code and the comment, type them into the terminal one by one. • Replace “PATH-TO-19X0s” with your own path and this is used to store the result of the ranking list of movies of a certain generation. Gender distribution • Download pig. • export PATH=//pig- n.n.n/bin:$PATH • Make sure that your JAVA_HOME has been correctly set. • Run your pig code in local mode pig -x local • Replace “PATH-TO-dataset” with your own. The datasets include ratings.csv, ydata-ymovies- mapping-to-eachmovie-v1_0.txt and user_data.txt. • Follow the order of the code and the comment, type them into the terminal one by one. • Replace “PATH-TO-male_results” and “PATH-TO- female_results” with your own path and this is used to store the result of the ranking list of movies of males and females.

oscar_movie_analysis's People

Contributors

jerry13466 avatar

Watchers

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