Dataset Factory★ EST. 2026 · BEST AT 800×600 ★
★ WELCOME TO THE DATASET FACTORY ★ PUBLIC DATA → CHECKED BUILDS → HONEST BASELINES ★ NO POP-UPS ★ NO COOKIES ★ NO TRACKERS ★ HAND-MADE HTML ★ UNDER CONSTRUCTION SINCE THE NINETIES ★

Sdwis Lcr Lead Action Level Next Period

At the first day of a community water system's next Lead and Copper Rule tap-sampling period, will that period's reported 90th-percentile lead concentration exceed the 15 µg/L action level?

Versioned research data. Read the suitability requirements before interpreting scores.

Suitability and evaluation

Evaluation setting: retrospective research. Read the prediction setting and limitations below. Public validation is development data; downloadable holdout labels must stay outside the evaluated agent workspace.

At a glance

QuestionAt the first day of a community water system's next Lead and Copper Rule tap-sampling period, will that period's reported 90th-percentile lead concentration exceed the 15 µg/L action level?
FieldU.S. Environmental Protection Agency (EPA) — Enforcement and Compliance History Online (ECHO), SDWA dataset compiled from the Safe Drinking Water Information System (SDWIS); underlying LCR results are reported to EPA by state/tribal primacy agencies / binary-classification
Rows292,315
Documented splits3
This versionv-5917644e4c46057e
Released2026-11-15
Validation ROC AUC0.7923036225587178
Validation Brier0.021737287388064033
Artifactb08c6a7bbfdcbbffb33de64be0cde0485e147bc0f82d96185db1b34ecdaab857

Get this dataset

How to load it

from datasets import load_dataset
ds = load_dataset('earino/factory-sdwis-lcr-lead-action-level-next-period', revision='v-5917644e4c46057e')

The version links and checksums identify this artifact. Exclude the labelled holdout from the agent's workspace when running an evaluation.

What is inside

SplitRowsPositive labels
eval17,368—
holdout17,568—
train257,379—

Files and checksums

DownloadBytesSHA-256
LICENSE-EVIDENCE.json7058fd2cc5fddfe08dd730eebb30f469a7e766ae0ab8ac0a6588cb17ca5df367dfb
LICENSE.md1,452534f3a9515ef2ba52f829f2ea93b70c27c9a793d63074520ca5d55f37b62b302
README.md6,966c5fb04c9327aa64330235a7a220858b414234ade41beb02b6e5a6b9e2c928087
SOURCES.json866ac44d61878e927a5bf151f53dad6b749963614d339e2d4da445a483d52ee67d2
evaluation.json3,687d82ff22e703c0ef2c3863fdc0b935e7cec1aeea330bf1d14f6f523d5a1b7dfe6
extract__meta.json2,07398244d185dfe12cd41423606373ebe3292ed4afad427a9c686f87d4c9204d73d
extract__private__holdout.csv1,794,86061109a5ca4d04ec1b37a57b371eafe1180aa320609d997ea760c2fab32275733
extract__public__eval.csv1,790,624081270314f95089ab88f992b1117f2413ce8cad1791c32d9d9f6a5f7f364e401
extract__public__train.csv26,019,14353ed51a93bc6eac17e7ed053d8bb86e754be83bbf331e4b0e26993fdb0797fb8
extract__quality.json23,52247da9b697ea6de639cd472096c039dee9d5874145179b2247ac0f1801b156d38
get_dataset.py3,680fad89222d50f9d9709225c34909be74c591df409c08b8b5951eba9d3cadfdd48
qualification.json18,02026d557203f68b6a2882d92d4480e78a28a6348ad72fe2a5c24ef916449b2cdb8
reproduction__LICENSE-CC0-1.0.txt7,048a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499
reproduction__LICENSE-MIT.txt1,12456b932ff064e5da113ae10175c8546325f64f26e1ece71683ffcbf8b2304fe1c
reproduction__artifact_scrub.py11,3698c663253e691a7b8751f9c853b40a3752a833360caafb1ea8e8f534e64af4b68
reproduction__build.py38,162413be9d4c6783257f9d3aa195dc10248ed074433dd9bd8a120aee461a4d612e1
reproduction__construction.json24,255de5667de1df51f87d486b740b309e72f4d5ae344021f4782827b0e4dfe4354cd
reproduction__dataset_package.py7,927c2364defe58dcc99322be59a1bb04894ce00e823ce37afeb37bc31012f744327
reproduction__dataset_run.py12,3818085fae14d6e93b852e692e18c1ef72113a3601f48f78901b6d1ae6db278de57
reproduction__get_dataset.py3,680fad89222d50f9d9709225c34909be74c591df409c08b8b5951eba9d3cadfdd48
reproduction__leakage_battery.py17,379adbf7ee0aca0012b78cc1f1e4aeb968a23717cae30f66a02e080215e75f830e3
reproduction__provenance.json57311a9c4f355a6345b1a64b1bb34afd669daa68a62b53b6635c45f9861295a81a7
reproduction__qualify_dataset.py66,067bff6d43d0904182e2612c32bab702e41addbf389904a236c209e78be39e37a6b
reproduction__recovery_recipes.py17,609f64c542fcda232169c95ace17421b45275194b934938c0ea4c9b68e6f844ad0e
reproduction__requirements.txt1605c72f3268174d20364624f76680e189c408a05dba2e7b8cfe12d077b3865e7f0
reproduction__source.json20,613de64715560066c113267e7962ceadc36fe0ac097163c615fbfd16d0bd31ccfe8
reproduction__source_io.py5,6070c60eed4968cd342148efbaac7e4fa98f00708d8e6c14c0929928687b9af1ea3
reproduction__train.py2,500a3c6bcf13735bc85c52129ded68f839090dffdc266ebc3810dc61b2e6ea5e7e8
reproduction__validate.py1,277b597e7f84fed614e64b4a86fbecbd6ec0145916a24d0d221a796586976418e7b
reproduction__validate.sh4823f06ca48f11c2e05d331b4d8394284925de660c1d4b086d2f8243959e83b7e6d
source-checks.json15,840428a97aca5d9cbafefb48c40b4c4e1a72d8ab4944147dec52091ae8a3cdfbd4d
source-snapshot.tar.gz557,800,556300815adf762a3ec0f4b75af358497b2e7920649313bfb8dbfb80f5b3c137c1d
verify_dataset.py1,276f4a4bb7f565cdbd075c520621f881876b491eaed91a5e6e70afb31e4753f9834

Release notes · 2026-11-15

At the first day of a community water system's next Lead and Copper Rule tap-sampling period, will that period's reported 90th-percentile lead concentration exceed the 15 µg/L action level?

Population: Community water systems in the EPA ECHO SDWA national download whose PWS_TYPE_CODE field is CWS and that have at least two PB90 lead 90th-percentile summary records, where the target PB90 period starts strictly after the prior PB90 period end and no more than four years later, with target period start on or before 2023-12-31. No filter on current PWS_ACTIVITY_CODE. Primacy agencies with fewer than 20 eligible pairs whose prior period ended before 2014-01-01 are excluded from all splits; this floor uses training-era feature dates only.

Target: 1 if the target monitoring period's PB90 record (lead 90th-percentile summary, SDWA_LCR_SAMPLES.CONTAMINANT_CODE = PB90) has SAMPLE_MEASURE > 0.015 mg/L, else 0. Target periods are restricted to SAMPLING_START_DATE <= 2023-12-31 so the 15 µg/L action level of 40 CFR 141.80(c)(2) (2021 revision, in force through the LCR Improvements transition) governs the label.

Prediction time: First day, the SAMPLING_START_DATE, of the target PB90 monitoring period. Every prior lead or copper measurement, violation date and milestone date used is strictly before that date; current-vintage system attributes are time-invariant covariates.

Splits: Chronological on target SAMPLING_START_DATE, fixed before any model fitting: train 1995-01-01 to 2013-12-31; eval 2014-01-01 to 2018-12-31; holdout 2019-01-01 to 2023-12-31. Embargo: drop any row whose feature (prior) period SAMPLING_END_DATE is on or after the first day of the split it would fall into, so no feature window crosses a boundary. Rows are never shuffled; each system contributes at most one row per target period, and duplicate PB90 records for the same period are collapsed to the latest SAR_LAST_REPORTED_DATE before pairing. Boundaries and the agency floor are not to be revised after seeing any metric.

Outcome horizon: One monitoring period: 6 months, 12 months, or 36 months after the decision instant depending on the system's schedule category; pairs whose target period starts more than 4 years after the decision instant are excluded.

Inputs: prior_pb90_mg_l: Lead 90th-percentile concentration reported for the immediately preceding monitoring period, converted to mg/L.; prior_cu90_mg_l: Copper 90th-percentile concentration for the same prior period, converted to mg/L.; prior_pb90_ratio_to_al: prior_pb90_mg_l divided by the 0.015 mg/L action level.; pb90_change_from_previous: Difference between the prior PB90 result and the PB90 result before it, in mg/L.; n_prior_periods_observed: Count of dated PB90 monitoring periods on record before the target period start.; ever_exceeded_before: Whether any PB90 record before the target period start exceeded 0.015 mg/L.; gap_days_between_periods: Days between the prior period SAMPLING_END_DATE and the target period SAMPLING_START_DATE.; prior_period_length_days: Length of the prior monitoring period in days.; population_served_count: Estimated average daily population served, a system-size measure.; primary_source_code: Ground water, surface water or purchased source category.; owner_type_code: Ownership category.; primacy_agency_code: Two-character state or EPA region primacy code.; prior_lcr_violations_count: Count of identified Lead and Copper Rule violations with NON_COMPL_PER_BEGIN_DATE before the target period start.; prior_lslr_milestone: Whether an identified lead service line replacement milestone was recorded before the target period start.

Recorded structural checks and baselines

PASSED Gate 1.6.1.

Existing unmodified runner baseline on public validation only; no holdout scoring

These historical checks do not establish availability at each prediction time or protection against every shortcut. Scores below describe the recorded protocol.

Limits

Source, licences, and citation

U.S. Environmental Protection Agency (EPA) — Enforcement and Compliance History Online (ECHO), SDWA dataset compiled from the Safe Drinking Water Information System (SDWIS); underlying LCR results are reported to EPA by state/tribal primacy agencies

No credit is required by the publisher. Recommended credit: "U.S. Environmental Protection Agency, Enforcement and Compliance History Online (ECHO), SDWA dataset derived from the Safe Drinking Water Information System (SDWIS), extracted <quarter>".

Source: U.S. Government work — public domain in the United States under 17 U.S.C. § 105 (EPA Standard Open Data License); no publisher licence grant is required and none is implied for any third-party material. Compilation: CC0-1.0. Code and documentation: MIT.

Our additional compilation rights only; upstream terms remain in force.

Suggested citation

Versions

★ THANKS FOR VISITING · BOOKMARK THIS PAGE · TELL A FRIEND ABOUT THE DATASET FACTORY · SIGN THE GUESTBOOK BEFORE YOU LEAVE ★