Machine Learning Voting Right Act Tests
Centernoid X-Symetry
Uses weighted centernoid and K-Mean Clustering to determin the compactness of a district by mesuring the distance from Geographic Center and Boundry
weighted_centroind(df, District_ID, GEOID='GEOID20', Population='POP100', Lat='INTPTLAT20', Lon='INTPTLON20', dist_geo='geometry')
kmean_xSymetry(df, district_id, pop, lat, lon, geoid, district_geometry)
Ecological Inference
Uses Elecologic Ingernce Model from King 1999 using a default covariate as target vote share and lmbda as 0.5 to match what was writen in King's Paper
ecological_inference(Total_Population_Col, Target_Population_Col,
Target_Vote_Share_Percentage, covariate=None, lmbda=0.5)
Metadata
Release files for MLVRAtests 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| MLVRAtests-0.1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| MLVRAtests-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / MLVRAtests-0.1.0.tar.gz
| Download URL | MLVRAtests-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cf18ce08c09c8c8cc106cf814f84115ae038105d0f89cbbb00e0f698effc056
|
|
BLAKE2b-256 checksum How to use checksums |
8d0e26a620290d4e611cbb09c7995dcedfc9d01c4c22fd4bdb5c904f4da286f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|
Release files / MLVRAtests-0.1.0-py3-none-any.whl
| Download URL | MLVRAtests-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59de49aaf87a15c12b53d11c8816a326d987767cea0ef90e364659cfc432d561
|
|
BLAKE2b-256 checksum How to use checksums |
44b14de20610da732e3180c3dbc63063a60e87bef7ad3e9d499d6655628acad1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|