Code Monkey home page Code Monkey logo

pol_data's Introduction

Supervised Learning with political data

Guillaume Coqueret

This repository contains teaching and research material focused on supervised learning with political data.

Database

The original database (~60K rows, 29 columns) compiles answers from surveys by the American National Election Studies (ANES). Its construction and content are detailed in the companion paper. The dataset is featured in RData format and in CSV format. The RData file is more complete because (ordered) categories are coded as (ordered) factors.

Code

The code is written in R and tutorial is split in three sets of scripts:

  1. Datavisualization: plotting distribution, trends, etc.

  2. Classification exercises: try to predict the party affiliation based on 6 variables. Methods used: simple trees, boosted trees, support vector machines, neural networks (multilayer perceptron).

  3. Regression analysis: try to predict the feeling towards unions using 9 variables. Methods used: linear regression, simple trees, boosted trees, support vector machines, neural networks (multilayer perceptron).

For each task and each technique, the degrees of freedom are numerous and the purpose is to play with the choice of variables, the parameters and the hyper-parameters.


DISCLAIMER: the data and code are meant for pedagogical and research use only. The original collector of the data, ANES, and the author bear no responsibility for use of the data or for interpretations or inferences based upon such uses.


Citations

Whenever using this material, please cite the original collector of the data, ANES, and the related paper Supervised learning with political data by Guillaume Coqueret.

pol_data's People

Contributors

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