Olaroti commited on
Commit
6876efa
·
verified ·
1 Parent(s): c73d259

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +119 -75
README.md CHANGED
@@ -1,102 +1,146 @@
1
  ---
2
  license: cc-by-4.0
 
 
3
  task_categories:
4
  - tabular-classification
5
  - tabular-regression
6
- tags:
7
- - governance
8
- - anti-corruption
9
- - accountability
10
- - sub-saharan-africa
11
- - synthetic
12
- - lmic
13
- - transparency
14
- - enforcement
15
- - public-sector
16
- pretty_name: African Anti-Corruption Enforcement
17
  size_categories:
18
  - 10K<n<100K
19
- configs:
20
- - config_name: baseline
21
- data_files: data/baseline.csv
22
- - config_name: strengthened_enforcement
23
- data_files: data/strengthened_enforcement.csv
24
- - config_name: weakened_accountability
25
- data_files: data/weakened_accountability.csv
26
- data_type: synthetic
 
 
 
 
 
 
 
 
 
 
 
 
27
  ---
28
 
29
- > ⚠️ **Synthetic dataset** Parameterized from published SSA literature, not real observations. Not suitable for empirical analysis or policy inference.
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
- # African Anti-Corruption Enforcement
32
 
33
- Synthetic dataset modelling anti-corruption enforcement outcomes across 12 Sub-Saharan African countries under three policy scenarios. Parameters are anchored to real-world statistics from Transparency International, the EFCC (Nigeria), SIU/Zondo Commission (South Africa), EACC (Kenya), the African Union's Common African Position on Asset Recovery, and the G20 2025 Accountability Report on Whistleblower Protection.
34
 
35
- ## Dataset Summary
36
 
37
- | Property | Value |
38
  |---|---|
39
- | Total records | 30,000 (10,000 per scenario) |
40
- | Countries | 12 SSA nations |
41
- | Variables | 15 per record |
42
- | Scenarios | baseline, strengthened_enforcement, weakened_accountability |
43
-
44
- ## Scenarios
45
-
46
- - **baseline** Calibrated to observed 2023–2025 enforcement statistics. Median prosecution rate ~25%, median asset recovery rate ~7%.
47
- - **strengthened_enforcement** Simulates higher agency independence (+18), stronger whistleblower protection (+20), increased prosecution (+45%), doubled asset recovery, and +8 CPI points.
48
- - **weakened_accountability** Models institutional erosion: agency independence −15, whistleblower protection −15, prosecution −40%, asset recovery −60%, and −10 CPI points.
49
-
50
- ## Countries
51
-
52
- Nigeria, South Africa, Kenya, Ghana, Tanzania, Uganda, Ethiopia, Senegal, Mozambique, Zambia, Rwanda, Botswana.
53
-
54
- ## Variables
55
-
56
- | Variable | Type | Description |
57
- |---|---|---|
58
- | `country` | str | Country name |
59
- | `scenario` | str | Policy scenario |
60
- | `corruption_perception_index` | float | TI CPI score (0–100, higher = cleaner) |
61
- | `cases_investigated` | int | Number of corruption cases under investigation |
62
- | `cases_prosecuted` | int | Cases forwarded to prosecution |
63
- | `prosecution_rate` | float | cases_prosecuted / cases_investigated |
64
- | `convictions` | int | Number of convictions secured |
65
- | `conviction_rate` | float | convictions / cases_prosecuted |
66
- | `assets_confiscated_usd_millions` | float | Value of confiscated assets (USD millions) |
67
- | `asset_recovery_rate` | float | Fraction of estimated stolen assets recovered |
68
- | `whistleblower_reports` | int | Number of whistleblower submissions |
69
- | `whistleblower_protection_score` | float | Protection framework quality (0–100) |
70
- | `agency_independence_score` | float | Anti-corruption agency independence (0–100) |
71
- | `enforcement_effectiveness_score` | float | Composite effectiveness index (0–100) |
72
- | `enforcement_class` | str | strong / moderate / weak |
73
-
74
- ## Research Sources
75
-
76
- 1. **Transparency International CPI 2025** – SSA average score 32/100; Seychelles (68) highest, Somalia/South Sudan (9) lowest.
77
- 2. **EFCC Nigeria 2024** – 15,724 petitions → 12,928 investigated → 5,083 prosecuted → 4,111 convictions; $214.5M recovered.
78
- 3. **South Africa SIU 2023/24** – 1,919 investigations closed, 583 criminal referrals, R8B saved, ~80% conviction rate in commercial cases.
79
- 4. **Kenya EACC 2023/24** – 5,171 reports, 534 files under probe, 26.7% conviction rate, Ksh2.9B recovered.
80
- 5. **AU Common African Position on Asset Recovery** – Africa loses ~$150B annually through illicit financial flows; asset recovery typically <10%.
81
- 6. **G20 2025 Accountability Report on Whistleblower Protection** – Most SSA countries lack dedicated whistleblower legislation; protection gaps in developing countries.
82
 
83
  ## Usage
84
 
85
  ```python
86
  from datasets import load_dataset
87
 
88
- ds = load_dataset("electricsheepafrica/african-anti-corruption-enforcement", "baseline")
89
- df = ds["train"].to_pandas()
 
 
 
 
 
90
  ```
91
 
92
- ## Generation & Validation
 
 
 
93
 
94
- ```bash
95
- pip install -r requirements.txt
96
- python generate_dataset.py --scenario all --n-records 10000
97
- python validate_dataset.py --data-dir data --plot-dir plots
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  ```
99
 
100
  ## License
101
 
102
- CC-BY-4.0
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ language:
4
+ - en
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
8
+ multilinguality: monolingual
 
 
 
 
 
 
 
 
 
 
9
  size_categories:
10
  - 10K<n<100K
11
+ tags:
12
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "governance-security"
17
+ - "csv"
18
+ - "tabular"
19
+ - "text"
20
+ - "governance"
21
+ - "anti-corruption"
22
+ - "accountability"
23
+ - "sub-saharan-africa"
24
+ - "synthetic"
25
+ - "lmic"
26
+ - "transparency"
27
+ - "enforcement"
28
+ - "public-sector"
29
+ - "corruption"
30
+ pretty_name: "African Anti-Corruption Enforcement | Africa (Electric Sheep Africa metadata inventory)"
31
  ---
32
 
33
+ # African Anti-Corruption Enforcement | Africa (Electric Sheep Africa metadata inventory)
34
+
35
+ **Size category:** `10K<n<100K` - **Formats:** `csv` - **Sector:** governance_security - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
36
+
37
+ ![size](https://img.shields.io/badge/size-10K%3Cn%3C100K-blue)
38
+ ![sector](https://img.shields.io/badge/sector-governance_security-green)
39
+ ![downloads](https://img.shields.io/badge/HF_downloads-103-orange)
40
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
41
+
42
+ ## TL;DR
43
+
44
+ This dataset is part of the Electric Sheep Africa catalog on Hugging Face. It is indexed for African data discovery with standardized metadata, loading guidance, provenance notes, and analyst-oriented context.
45
+
46
+ ## What This Dataset Covers
47
 
48
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
49
 
50
+ Dataset context from the existing Hugging Face card: ⚠️ Synthetic dataset — Parameterized from published SSA literature, not real observations. Not suitable for empirical analysis or policy inference. African Anti-Corruption Enforcement Synthetic dataset modelling anti-corruption enforcement outcomes across 12 Sub-Saharan African countries under three policy scenarios. Parameters are anchored to real-world statistics from Transparency International, the EFCC (Nigeria), SIU/Zondo Commission (South Africa), EACC (Kenya), the African See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-synth-governance-anti-corruption-enforcement-all.
51
 
52
+ ## Dataset Profile
53
 
54
+ | Field | Value |
55
  |---|---|
56
+ | Hugging Face repo | [`electricsheepafrica/africa-synth-governance-anti-corruption-enforcement-all`](https://huggingface.co/datasets/electricsheepafrica/africa-synth-governance-anti-corruption-enforcement-all) |
57
+ | Sector | governance_security |
58
+ | Topic tags | governance, anti-corruption, accountability, sub-saharan-africa, synthetic, lmic, transparency, enforcement, public-sector |
59
+ | Modalities | `tabular`, `text` |
60
+ | Formats | `csv` |
61
+ | Size category | `10K<n<100K` |
62
+ | Countries | Africa-wide or source-defined African coverage |
63
+ | ISO3 coverage | `not declared` |
64
+ | Last modified on HF | `2026-04-14 22:58:07+00:00` |
65
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
66
+
67
+ ## How To Read This Dataset
68
+
69
+ - Start from the repository files and the dataset viewer when available.
70
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
71
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
72
+ - Preserve missing values until you have a defensible imputation rule.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
  ## Usage
75
 
76
  ```python
77
  from datasets import load_dataset
78
 
79
+ ds = load_dataset("electricsheepafrica/africa-synth-governance-anti-corruption-enforcement-all")
80
+ print(ds)
81
+
82
+ split_name = next(iter(ds))
83
+ table = ds[split_name]
84
+ print(table.features)
85
+ print(table[:3])
86
  ```
87
 
88
+ ### Convert To Pandas When Tabular
89
+
90
+ ```python
91
+ from datasets import Dataset
92
 
93
+ first_split = ds[next(iter(ds))]
94
+ if isinstance(first_split, Dataset):
95
+ df = first_split.to_pandas()
96
+ print(df.head())
97
+ ```
98
+
99
+ ## Data Quality Notes
100
+
101
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
102
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
103
+ - Metadata gaps from the inventory: country, upstream_publisher, language.
104
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
105
+
106
+ ## Source And Provenance
107
+
108
+ - **Source context:** Electric Sheep Africa metadata inventory
109
+ - **Publisher/source attribution:** Public dataset metadata
110
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
111
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-synth-governance-anti-corruption-enforcement-all](https://huggingface.co/datasets/electricsheepafrica/africa-synth-governance-anti-corruption-enforcement-all)
112
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
113
+
114
+ ## Suggested Analyses
115
+
116
+ - Inspect schema and missingness before modeling.
117
+ - Profile variables by geography, time, and subgroup columns where present.
118
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
119
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
120
+
121
+ ## Citation
122
+
123
+ ```bibtex
124
+ @misc{electric_sheep_africa_africa_synth_governance_anti_corruption_enforcement_all_2026,
125
+ title = {African Anti-Corruption Enforcement | Africa (Electric Sheep Africa metadata inventory)},
126
+ author = {Public dataset metadata},
127
+ year = {2026},
128
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-synth-governance-anti-corruption-enforcement-all},
129
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
130
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-synth-governance-anti-corruption-enforcement-all}}
131
+ }
132
  ```
133
 
134
  ## License
135
 
136
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
137
+
138
+ Original source rights remain with the original publisher or data provider. Electric Sheep Africa engineering standardizes discovery metadata, documentation, and usage guidance for analysis on Hugging Face.
139
+
140
+ ## About Electric Sheep Africa
141
+
142
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
143
+
144
+ ---
145
+
146
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.