GithubHelp home page GithubHelp logo

mmcardle / vote-herder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from farsetlabs/vote-herder

0.0 1.0 0.0 40 KB

Slightly Easier than Herding Cats.

License: Creative Commons Zero v1.0 Universal

Python 91.66% HTML 8.34%

vote-herder's Introduction

vote-herder

Slightly Easier than Herding Cats.

Registered Domains

  • voteherder.com
  • voteherder.org

Potential Datasources

Getting started

Previous Northern Ireland Elections covered by ElectionsNI

A management command is provided for importing existing election data into the data set.

This pulls in Election and Candidate data from elections.democracyclub.org.uk, and tries to match these with the Stage count data. There are currently two 'matching' heuristics in place for 'historical' election matching;

  • Scan the DemocracyClub sourced list of Candidates for a given election/ballot and take the candidate who's name has the highest SequenceMatcher ratio (as long as it's > 0.5)
  • Somehow, if that's not enough, check with DemocracyClub if the presented Candidate_ID has been rolled up/deduplicated

** THIS WILL DROP ALL BALLOTS/STAGE/STAGECELL DATA FOR THE SPECIFIED CONTEST **

python manage.py populate_nia_count nia.2017-03-02

For a lazy copy-paste job, here you go;

python manage.py populate_nia_count nia.2017-03-02
python manage.py populate_nia_count nia.2016-05-05

2011 doesn't exist, see here

High level concepts

Taken from DemocracyClub

Candidates are a mix of a person and a candidacy. A candidacy is the person on a ballot. Ballots have elections and divisions (areas, currently called posts).

A person can stand in more than one election, that is, they can have many candidacies on different ballots.

Ballots make up the main structure of the data, with each ballot being grouped by elections or divisions.

Apart from the base data model, there are two other concepts in this API.

Firstly, the data will change over time, from a ballot being announced through to results being entered.

vote-herder's People

Contributors

andrewbolster avatar mmcardle avatar tyndyll 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.