Skip to main content

A package for optimization solvers

Project description

elex-solver

This packages includes solvers for:

  • Quantile regression
  • Transition matrices

Installation

Quantile Regression

Since we did not find any implementations of quantile regression in Python that fit our needs, we decided to write one ourselves. This uses cvxpy and sets up quantile regression as a normal optimization problem. We use quantile regression for our election night model.

Transition matrices

We also have a solver for transition matrices. While this works arbitrarily, we have used this in the past for our primary election night model. We can still use this to create the sankey diagram coefficients.

Development

We welcome contributions to this repo. Please open a Github issue for any issues or comments you have.

Set up a virtual environment and run:

> pip install -r requirements.txt
> pip install -r requirements-dev.txt 

Testing

> tox

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elex-solver-1.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

elex_solver-1.0.2-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file elex-solver-1.0.2.tar.gz.

File metadata

  • Download URL: elex-solver-1.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for elex-solver-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fff48f07bedd5e620e10d7646610f89f7cedb5a0ee4a288f84be700f26092406
MD5 20e357e2eee870d9f991e78f9ed8d72c
BLAKE2b-256 1c2f3b44b91069d8b05ac506482d7645b289bdf7a1bc55270cd386987fa89e12

See more details on using hashes here.

File details

Details for the file elex_solver-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for elex_solver-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 290c84e7b4cd10b1b3587950446b5948c0fc0f9d0c52393a086acf600a953b68
MD5 58724f08278999b9556a280332e56c42
BLAKE2b-256 59bf40f0b000f26f17836b8f70a5f63394122f14ebba40e8de270680552975ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page