Git Product home page Git Product logo

amishamurarka / facebook-comment-volume-prediction Goto Github PK

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

Data in the social networking services is increasing day by day. So, there is heavy requirement to study the highly dynamic behavior of the users towards these services. The task here is to estimate the comment count that a post is expected to receive in next few(H) hours. Data has been scraped from one of the most popular social networking sites - Facebook.

Jupyter Notebook 100.00%
decision-tree-regressor facebook-comments grid-search-cross-validation grid-search-hyperparameters hold-out-cross-validation linear-regression machine-learning python random-forest-regressor regression-models

facebook-comment-volume-prediction's Introduction

Facebook-Comment-Volume-Prediction

Problem Statement

Data in the social networking services is increasing day by day. So, there is heavy requirement to study the highly dynamic behavior of the users towards these services. The task here is to estimate the comment count that a post is expected to receive in next few(H) hours. Data has been scraped from one of the most popular social networking sites - Facebook.

Dataset Source Link

https://archive.ics.uci.edu/ml/datasets/Facebook+Comment+Volume+Dataset

Approach

  • Cleaning the data [Adding feature names, Dropping static columns, Standardization(Optional)]
  • Merging the training data variants
  • Using Hold Out Cross Validation to split training data into train and test data. Test Cases provided are used as validation set
  • Performing regression using following techniques-
    • Linear Regression
    • Decision Tree Regressor
    • Random Forest Regressor (BEST MODEL)
    • XGB Regressor
  • Determining Feature Importances

Note:

  1. Regression techniques like SVR due to their extensive memory requirement and hence are not suitable for large dataset.
  2. Even though Random Forest Regressor gave the best results from the selected algorithms, it still is not able to extrapolate the information gained on unseen data.

Evaluation Metric

  • For the given problem statement, I have chosen Root Mean Squared Error and Mean Squared Error as my evaluation metric as the goal is not to predict the exact number of comments a facebook post receives but a value which can be used as a target value by business users to monitor their page engagement rate.
  • Since RMSE/MSE metric greatly penalizes outlier values, I have chosen the given metric as the dataset consists of very few values which are not really outliers but have an effect on regression models.

Inferences

  • Through this project we have inferred that contrary to popular beliefs, the number of post likes and page visitors are not influential features when determining the predicting the number of facebook comments.
  • Instead the share count is one of the important features. Talking from a business perspective, while likes determine the reach of a post, the share count is an important metric which determines the reach and engagement rate.
  • The base time selected is another important feature for determining the number of comments a post receives. The base time and share count combined will determine how often a post trends and in view on the audiences feed.
  • Another important feature is C2: Comment count in last 24 hrs with respect to selected base date/time

Research Paper Link

Do give the below research paper from which this project was inspired a read as well. It uses a different and more advanced approach. https://ijssst.info/Vol-16/No-5/paper16.pdf

facebook-comment-volume-prediction's People

Contributors

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