Giter Site home page Giter Site logo

joeldan192 / predictive-model-for-the-voting-system-in-se-network Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 54.66 MB

Semester project Spring 2016 as part of Master's program at EPFL. Supervisor: Dr. Elisa Celis. Lab: LCA-3.

Python 0.13% Jupyter Notebook 99.83% R 0.04%

predictive-model-for-the-voting-system-in-se-network's People

Contributors

joelcastellona avatar

Stargazers

JoelCastellon avatar

Watchers

James Cloos avatar JoelCastellon avatar

Forkers

denyslamotte

predictive-model-for-the-voting-system-in-se-network's Issues

Plot RSS with test data

In Kranks(2) effects model there's evidence that the model is quite relevant at 0.03. However current R^2 is fit on the training data. Plot RSS or R^2 in test data.

Extend examination model for votes with Question features

Whether an Answer is voted on or not might be correlated with:

  • Common features with Question. (max mutual information with question?)
  • Inherent question quality. (higher quality on questions might induce user to examine answers more thoroughly ...thus vote)

Set AnswerId as categorical variables in Dataframe

  • This is kind of tricky for the moment. Unstack method won't behave as expected.
    TODO: once this is achieved, there is the issue of choosing the reference parameter for the categorical variable parameters (standard R convention).

Get first time series Tableau

Votes are sampled per day and per answer.
Goals:
a)
Votes ~ score + age + nb_comments + nb_ans + position
TODO: nb_ans, position

b) For now the actual models is:
Votes ~ Poisson(e^(quality + position_bias+ age + social_influence(score + TODO in goal a) )))

quality parameter is by post (answer)
position_bias by post and by_observation (changes with time)

Exploratory analysis

Reproduce and asses some results in first week's papers.

Features that entail cognitive bias:

  • display position
  • simple text statistics (length in characters, nbr of words, capitalization/spelling errors)
  • nbr of questions present when voter arrives (cognitive load)

Sugested features (from context):

  • reputation
  • previous voting history

To try:

  • diversity: do voters select answers in an heterogeneous manner?
    (define such sets by clustering over bag of w/model profiles)

Account for dependence within Question and within AnsId

Fixed effects (because of plm implementation).
Multinomial model assumens independence across individuals Q-t pairs. TAnd so does
the 'arellano'( vcovHC) correction. Introduce fixed effects for Qid.
Same for AnsId. As an answer moves through time. and Qi-tk is independent of Qi-tj so we
could account for that dependence.
Warning: the number of parameters would then be very large.
Can be done only with random effects with lme4 package. But there are no covariance estimator
corrections working there

Regularize PageViews model

ReScore has very good performance. Test if this result is robust enough with a few different regularizers.

Define "stable" time intervals for votes

"Stable" time intervals: number of answers doesn't change. (sub-divide with rank doesn't change?)
Such intervals would permit a nested mixed effects model:
time intervals *>(evaluate this part, nested or crossed eff) nb_ans > ans_id > rank

Set parameters for k-ranks

Users might optimize k-ranks. (Consecutive groups of answers from first to last).
This implies one group parameter per answer in voting data.

Normalize by classes

Mean values for ReScore(s) and Pbias(s) are too low.
Might consider another normalization strategy...
By classes perhaps(Ans_count)

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.