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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
dataset_info:
|
| 3 |
+
- config_name: processed_events_campaign_finance
|
| 4 |
+
data_files:
|
| 5 |
+
- split: train
|
| 6 |
+
path: data/processed/events_campaign_finance.csv
|
| 7 |
+
- config_name: processed_events_geographical_industry
|
| 8 |
+
data_files:
|
| 9 |
+
- split: train
|
| 10 |
+
path: data/processed/events_geographical_industry.csv
|
| 11 |
+
- config_name: processed_events_lobbying
|
| 12 |
+
data_files:
|
| 13 |
+
- split: train
|
| 14 |
+
path: data/processed/events_lobbying.csv
|
| 15 |
+
|
| 16 |
+
- config_name: raw_527_committees
|
| 17 |
+
data_files:
|
| 18 |
+
- split: train
|
| 19 |
+
path: data/raw/527_data_open_secrets/cmtes527.csv
|
| 20 |
+
- config_name: raw_527_expenditures
|
| 21 |
+
data_files:
|
| 22 |
+
- split: train
|
| 23 |
+
path: data/raw/527_data_open_secrets/expends527.csv
|
| 24 |
+
- config_name: raw_527_receipts
|
| 25 |
+
data_files:
|
| 26 |
+
- split: train
|
| 27 |
+
path: data/raw/527_data_open_secrets/rcpts527.csv
|
| 28 |
+
|
| 29 |
+
- config_name: raw_voteview_members
|
| 30 |
+
data_files:
|
| 31 |
+
- split: train
|
| 32 |
+
path: data/raw/HSall_members_VoteView.csv
|
| 33 |
+
- config_name: raw_voteview_rollcalls
|
| 34 |
+
data_files:
|
| 35 |
+
- split: train
|
| 36 |
+
path: data/raw/HSall_rollcalls.csv
|
| 37 |
+
- config_name: raw_voteview_votes
|
| 38 |
+
data_files:
|
| 39 |
+
- split: train
|
| 40 |
+
path: data/raw/HSall_votes.csv
|
| 41 |
+
- config_name: raw_voteview_ideology
|
| 42 |
+
data_files:
|
| 43 |
+
- split: train
|
| 44 |
+
path: data/raw/ideology_scores_quarterly_VoteView.csv
|
| 45 |
+
|
| 46 |
+
- config_name: raw_cf_candidates
|
| 47 |
+
data_files:
|
| 48 |
+
- split: train
|
| 49 |
+
path: data/raw/campaign_finance_open_secrets/cands*.csv
|
| 50 |
+
- config_name: raw_cf_committees
|
| 51 |
+
data_files:
|
| 52 |
+
- split: train
|
| 53 |
+
path: data/raw/campaign_finance_open_secrets/cmtes*.csv
|
| 54 |
+
- config_name: raw_cf_expenditures
|
| 55 |
+
data_files:
|
| 56 |
+
- split: train
|
| 57 |
+
path: data/raw/campaign_finance_open_secrets/expenditures*.csv
|
| 58 |
+
- config_name: raw_cf_individuals
|
| 59 |
+
data_files:
|
| 60 |
+
- split: train
|
| 61 |
+
path: data/raw/campaign_finance_open_secrets/indivs*.csv
|
| 62 |
+
- config_name: raw_cf_pac_other
|
| 63 |
+
data_files:
|
| 64 |
+
- split: train
|
| 65 |
+
path: data/raw/campaign_finance_open_secrets/pac_other*.csv
|
| 66 |
+
- config_name: raw_cf_pacs
|
| 67 |
+
data_files:
|
| 68 |
+
- split: train
|
| 69 |
+
path: data/raw/campaign_finance_open_secrets/pacs*.csv
|
| 70 |
+
|
| 71 |
+
- config_name: raw_committee_assignments
|
| 72 |
+
data_files:
|
| 73 |
+
- split: train
|
| 74 |
+
path: data/raw/committee_assignments.csv
|
| 75 |
+
- config_name: raw_company_sic
|
| 76 |
+
data_files:
|
| 77 |
+
- split: train
|
| 78 |
+
path: data/raw/company_sic_data.csv
|
| 79 |
+
- config_name: raw_congress_terms
|
| 80 |
+
data_files:
|
| 81 |
+
- split: train
|
| 82 |
+
path: data/raw/congress_terms_all_github.csv
|
| 83 |
+
- config_name: raw_sec_financials
|
| 84 |
+
data_files:
|
| 85 |
+
- split: train
|
| 86 |
+
path: data/raw/sec_quarterly_financials.csv
|
| 87 |
+
|
| 88 |
+
- config_name: raw_district_industries_estimates
|
| 89 |
+
data_files:
|
| 90 |
+
- split: train
|
| 91 |
+
path: data/raw/district_industries/*_CB_estimates.csv
|
| 92 |
+
- config_name: raw_district_industries_surveys
|
| 93 |
+
data_files:
|
| 94 |
+
- split: train
|
| 95 |
+
path: data/raw/district_industries/*_CB_survey.csv
|
| 96 |
+
- config_name: raw_district_industries_dates
|
| 97 |
+
data_files:
|
| 98 |
+
- split: train
|
| 99 |
+
path: data/raw/district_industries/survey_release_dates.csv
|
| 100 |
+
|
| 101 |
+
- config_name: raw_naics_2012_crosswalk
|
| 102 |
+
data_files:
|
| 103 |
+
- split: train
|
| 104 |
+
path: data/raw/industry_codes_NAICS/2012-NAICS-to-SIC-Crosswalk.csv
|
| 105 |
+
- config_name: raw_naics_2013_mappings
|
| 106 |
+
data_files:
|
| 107 |
+
- split: train
|
| 108 |
+
path: data/raw/industry_codes_NAICS/2013-CAT_to_SIC_to_NAICS_mappings.csv
|
| 109 |
+
- config_name: raw_naics_2017_crosswalk
|
| 110 |
+
data_files:
|
| 111 |
+
- split: train
|
| 112 |
+
path: data/raw/industry_codes_NAICS/2017-NAICS-to-SIC-Crosswalk.csv
|
| 113 |
+
- config_name: raw_naics_2022_crosswalk
|
| 114 |
+
data_files:
|
| 115 |
+
- split: train
|
| 116 |
+
path: data/raw/industry_codes_NAICS/2022-NAICS-to-SIC-Crosswalk.csv
|
| 117 |
+
- config_name: raw_naics_effective_dates
|
| 118 |
+
data_files:
|
| 119 |
+
- split: train
|
| 120 |
+
path: data/raw/industry_codes_NAICS/classification_effective_dates.csv
|
| 121 |
+
|
| 122 |
+
- config_name: raw_lobbyview_bills
|
| 123 |
+
data_files:
|
| 124 |
+
- split: train
|
| 125 |
+
path: data/raw/lobbying_data_lobbyview/bills.csv
|
| 126 |
+
- config_name: raw_lobbyview_clients
|
| 127 |
+
data_files:
|
| 128 |
+
- split: train
|
| 129 |
+
path: data/raw/lobbying_data_lobbyview/clients.csv
|
| 130 |
+
- config_name: raw_lobbyview_issue_text
|
| 131 |
+
data_files:
|
| 132 |
+
- split: train
|
| 133 |
+
path: data/raw/lobbying_data_lobbyview/issue_text.csv
|
| 134 |
+
- config_name: raw_lobbyview_issues
|
| 135 |
+
data_files:
|
| 136 |
+
- split: train
|
| 137 |
+
path: data/raw/lobbying_data_lobbyview/issues.csv
|
| 138 |
+
- config_name: raw_lobbyview_network
|
| 139 |
+
data_files:
|
| 140 |
+
- split: train
|
| 141 |
+
path: data/raw/lobbying_data_lobbyview/network.csv
|
| 142 |
+
- config_name: raw_lobbyview_reports
|
| 143 |
+
data_files:
|
| 144 |
+
- split: train
|
| 145 |
+
path: data/raw/lobbying_data_lobbyview/reports.csv
|
| 146 |
+
license: cc-by-nc-sa-4.0
|
| 147 |
+
task_categories:
|
| 148 |
+
- graph-ml
|
| 149 |
+
- tabular-classification
|
| 150 |
+
tags:
|
| 151 |
+
- finance
|
| 152 |
+
- politics
|
| 153 |
+
- legal
|
| 154 |
+
- gnn
|
| 155 |
+
- temporal-graph
|
| 156 |
+
pretty_name: "HillStreet: Relational Congressional Trading Dataset"
|
| 157 |
+
size_categories:
|
| 158 |
+
- 10M<n<100M
|
| 159 |
+
---
|
| 160 |
+
|
| 161 |
+
# HillStreet: A Relational Dataset for Evaluating Information Channels in Congressional Trading
|
| 162 |
+
|
| 163 |
+
**HillStreet** is a large-scale, longitudinal dataset and multimodal dynamic graph formalizing the intersection of Capitol Hill and Wall Street. It spans **13.5 years** of mandatory STOCK Act disclosures (July 2012–December 2025), unifying the congressional trading ecosystem into a single, machine-learning-ready framework.
|
| 164 |
+
|
| 165 |
+
## Dataset Summary
|
| 166 |
+
The dataset represents the relationship between **1,137 legislators** and **6,825 companies**. By framing congressional trading as a **dynamic bipartite graph**, HillStreet allows researchers to treat trade signal validation as an edge classification task.
|
| 167 |
+
|
| 168 |
+
- **Nodes:** Legislators (session-specific) and Publicly Traded Companies.
|
| 169 |
+
- **Target Edges:** Individual stock trades.
|
| 170 |
+
- **Structural Edges:** Lobbying records, campaign finance (PAC/527) contributions, and geographical/industrial-constituency alignments.
|
| 171 |
+
|
| 172 |
+
## Dataset Structure
|
| 173 |
+
|
| 174 |
+
HillStreet is divided into pre-built graph objects for deep learning and a relational tabular database accessed via Hugging Face configurations.
|
| 175 |
+
|
| 176 |
+
### 1. Dynamic Graph Objects (`.pt` & `.npy`)
|
| 177 |
+
For immediate use in Graph Neural Networks (GNNs) and Temporal Graph Networks (TGNs), the core of HillStreet consists of annual **PyTorch Geometric Temporal** objects.
|
| 178 |
+
- **Graph Files:** `hillstreet_temporal_graph_YEAR.pt`
|
| 179 |
+
- **Temporal Integrity:** Every node feature and edge is instantiated based on its **public disclosure date**, not its reference date, ensuring a look-ahead-bias-free environment for backtesting.
|
| 180 |
+
- **Node Features:** Includes rolling DW-NOMINATE scores, SEC fiscal facts, and Census district employment statistics.
|
| 181 |
+
- **ID Mappings:** `src_id_map.npy` (Legislator Bioguide IDs) and `dst_id_map.npy` (Company Tickers).
|
| 182 |
+
|
| 183 |
+
### 2. Relational Tables (Hugging Face Configs)
|
| 184 |
+
For researchers using flat-feature models (XGBoost, LightGBM) or custom graph builders, the structural connective tissue is provided as multiple dataset configurations. You can load these individually using the Hugging Face `datasets` library (e.g., `load_dataset("benroodman/HillStreet", "processed_events_lobbying")`).
|
| 185 |
+
|
| 186 |
+
**Processed Edge Tables:**
|
| 187 |
+
- `processed_events_lobbying`: Mappings of legislative activity to corporate nodes.
|
| 188 |
+
- `processed_events_campaign_finance`: Itemized PAC/527 donations broadcasted to corporate sectors.
|
| 189 |
+
- `processed_events_geographical_industry`: Industrial-constituency edges linking legislators to companies in their districts.
|
| 190 |
+
|
| 191 |
+
**Raw Source Tables:**
|
| 192 |
+
The raw, underlying tables are also available as distinct configurations for custom aggregations and feature engineering:
|
| 193 |
+
- **Campaign Finance:** `raw_cf_*` and `raw_527_*` configs.
|
| 194 |
+
- **Legislator Data:** `raw_voteview_*` configs and `raw_committee_assignments`.
|
| 195 |
+
- **Corporate & Industry:** `raw_sec_financials`, `raw_naics_*` crosswalks, and `raw_district_industries_*` configs.
|
| 196 |
+
- **Lobbying:** `raw_lobbyview_*` configs.
|
| 197 |
+
|
| 198 |
+
## Feature Engineering & Normalization
|
| 199 |
+
To stabilize variance in graph training, continuous features are transformed using signed log-scaling:
|
| 200 |
+
$$x' = \text{sign}(x) \times \log(1 + |x|)$$
|
| 201 |
+
|
| 202 |
+
## Intended Use
|
| 203 |
+
- **Trade Signal Validation:** Determining if a trade constitutes a meaningful price signal based on political context.
|
| 204 |
+
- **Graph Representation Learning:** A benchmark for GNNs and TGNs.
|
| 205 |
+
|
| 206 |
+
> [!WARNING]
|
| 207 |
+
> **Non-Intended Use:** This dataset is for research purposes only. It is not designed for legal determinations of insider trading nor for real-time automated trading.
|