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 ★

Ca Beach Advisory Duration

When a county health officer issues a new beach water-quality posting, will that posting remain in force for at least seven days?

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

QuestionWhen a county health officer issues a new beach water-quality posting, will that posting remain in force for at least seven days?
FieldCalifornia State Water Resources Control Board (Beach Monitoring Program, Division of Water Quality) / binary-classification
Rows19,061
Documented splits3
This versionv-2cdf2a6e0df3956f
Released2026-11-16
Validation ROC AUC0.8960809939048806
Validation Brier0.11963301140244259
Artifactbbeefbfb31599f49805ff9f96a3c906953ee1cc565796c1d7faee484fdd91ca5

Get this dataset

How to load it

from datasets import load_dataset
ds = load_dataset('earino/factory-ca-beach-advisory-duration', revision='v-2cdf2a6e0df3956f')

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
eval4,350—
holdout4,769—
train9,942—

Files and checksums

DownloadBytesSHA-256
LICENSE-EVIDENCE.json6926e513671f4f09bc4d34f819adbd8f7be001ac8bea2f2813713f056f2130cc6a5
LICENSE.md1,04369362cec3d69b8f76603a7dafc68fded2326f40ef5d21f2dc734ceae828c9210
README.md6,0184bab918ed68fb32ff237070c9da36ef16a9f18f50890ea0f1227abf21783d0db
SOURCES.json1,4650fd4cd8725ec9ae490410b0c372442ccec0a4a560d820e762a370ae6fd209856
evaluation.json2,7229503e8fd8c27fd76f900df843aeac60f4fb169bc8ee4b2001bc9f6d946bdd5a7
extract__meta.json1,79425105f058874dd48410c8f22be6b8d7a69f89503a85c60a27f7b3d2e04dbfee8
extract__private__holdout.csv850,8527757772e6673a3d1e5780bd05d0264366c9c521a64dba53f86f4afa9b1b23091
extract__public__eval.csv779,8398e045ba24a4b79f43efbae9a30e3a1374b90fcff97735a72de144c28a3f38b3d
extract__public__train.csv1,857,04336bac98503700e0b28c990e6efcd36ef0f761e6a4607501ac9eda6cfd143f6aa
extract__quality.json22,959605abbe839f768089dd2afdbeda99ced0217ddee62c8da037b442ea9a17fd7bb
get_dataset.py3,680fad89222d50f9d9709225c34909be74c591df409c08b8b5951eba9d3cadfdd48
qualification.json17,499a760824c8e6a74063194d821c5f3fd3f7a9d57a281a44f431d33cc51caef37d0
reproduction__LICENSE-CC0-1.0.txt7,048a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499
reproduction__LICENSE-MIT.txt1,12456b932ff064e5da113ae10175c8546325f64f26e1ece71683ffcbf8b2304fe1c
reproduction__artifact_scrub.py11,3698c663253e691a7b8751f9c853b40a3752a833360caafb1ea8e8f534e64af4b68
reproduction__build.py40,774ec45f566608525056cd677173bc96f2869d4ee4ff0b2a99818e8976f8aae032a
reproduction__construction.json26,026d4a8ce1b8550892328e62fd59ff34c26516f3bef4c336555963fcaebe007f16c
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.json19,529459593da19d1d3adb33a7eb59faa046d5bb4aac7f386f1a36b948d27f2371686
reproduction__source_io.py5,6070c60eed4968cd342148efbaac7e4fa98f00708d8e6c14c0929928687b9af1ea3
reproduction__train.py2,500a3c6bcf13735bc85c52129ded68f839090dffdc266ebc3810dc61b2e6ea5e7e8
reproduction__validate.py1,277b597e7f84fed614e64b4a86fbecbd6ec0145916a24d0d221a796586976418e7b
reproduction__validate.sh4823f06ca48f11c2e05d331b4d8394284925de660c1d4b086d2f8243959e83b7e6d
source-checks.json14,175e1299c2a1c979d45da459d76dca47741a12db8daa438a4b5032cc9e9b30b3d63
source-snapshot.tar.gz2,809,9785746d68b4443c15ed854e88b3c127b47fc7f52fa9c156a256a55fbe9bd6fcda6
verify_dataset.py1,276f4a4bb7f565cdbd075c520621f881876b491eaed91a5e6e70afb31e4753f9834

Release notes · 2026-11-16

When a county health officer issues a new beach water-quality posting, will that posting remain in force for at least seven days?

Population: Advisory records in the beach-advisories CSV whose advisory class is the posting class; closure and rain advisory records are excluded and counted, and a permanent-posting value is not separable in the observed AdvisoryType data so permanent postings that the publisher folds into the posting class remain included and are recorded as a limitation. The issue date comes from DateofAdvisory and must fall from 2005-01-01 through 2023-12-31; the removal date comes from DateOpened and must be present and on or after the issue date so the whole-day duration is defined. Records sharing a beach, issue date and class are collapsed to the earliest source row so repeated episode rows do not repeat the label. Records starting in the seven days before 2016-01-01, 2020-01-01 or 2024-01-01 are dropped by the boundary embargo. Records with a missing or negative duration are excluded because the label cannot be computed; they are never treated as negative.

Target: y = 1 if the advisory record is a posting (the bacteria-standard advisory class, not a sewage closure, not a pre-emptive rain advisory, not a permanent posting) and its recorded end date is at least 7 calendar days after its start date; y = 0 if it ends within 7 days. Records with no end date (still open at extraction) or with end date before start date are excluded.

Prediction time: The advisory issue date, day 0, taken from DateofAdvisory. Only the advisory class, issue date, beach identity, county, station inventory and earlier posting issue dates are used. For duration rates only earlier training-split records whose recorded removal date closed before this row and before 2016-01-01 are used. DateOpened, DURATION CALCULATED, the spatial extent fields and the derived duration are withheld.

Splits: Chronological by advisory start date, no random shuffling: train = 2005-01-01 through 2015-12-31; eval = 2016-01-01 through 2019-12-31; holdout = 2020-01-01 through 2023-12-31. Boundary embargo: any record whose start date falls in the 7 days before a split boundary is dropped, and any record whose end date crosses a boundary is retained only in the earlier split but excluded from feature/label computation for the later split. If the observed earliest year is later than 2005, the train window starts at the first complete calendar year instead, and the boundaries 2016/2020 are unchanged.

Outcome horizon: 7 days from advisory start.

Inputs: advisory_class: Advisory class; the population is restricted to the posting class, so this column is constant posting after filtering. It records the declared population control. AdvisoryType in the observed publisher data carries posting, closure, rain and null values; a permanent posting is not a separable code, so it remains inside the posting class and is recorded as a limitation.; start_month: Calendar month of the advisory issue date, known at day 0 and capturing seasonality in dry-weather runoff and sampling.; start_day_of_week: Day of week of the advisory issue date, known at day 0 and capturing weekday sampling and staffing patterns.; county: County or jurisdiction of the advisory or joined station, proxying local re-sampling protocol and signage practice. Missing values are the explicit UNKNOWN category, not zero.; beach_id: Stable hashed beach key built from the source beach identifier or beach name plus county; it is not the advisory row identifier.; prior_postings_365d: Count of earlier posting issue dates for the same beach in the trailing 365 days, strictly before the current issue date, computed on the deduplicated history; known at day 0 and not a label-derived rate.; prior_mean_closed_duration_days_365d: Mean recorded duration of earlier same-beach training postings whose recorded removal date is strictly before the scored issue date and whose issue date is in the trailing 365 days. Only training-split labels removed before 2016-01-01 are used, so eval and holdout labels never enter. Missingness is retained when no qualifying training record exists.; days_since_prior_posting: Days since the most recent earlier posting issue date for the same beach, or missing if none; known at day 0.; station_count: Number of station-inventory rows joined to the beach; missing when no station match, not zero.; latitude: Mean station latitude for the beach, falling back to the advisory coordinate; missing when unavailable.; longitude: Mean station longitude for the beach, falling back to the advisory coordinate; missing when unavailable.; monitoring_agency: Station or advisory monitoring agency; UNKNOWN when missing, not zero.

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

California State Water Resources Control Board (Beach Monitoring Program, Division of Water Quality)

Contains information from the California State Water Resources Control Board, "Beach Advisories (Postings and Closures) and Beach Water Quality Monitoring" (data.ca.gov), made available under the Open Data Commons Attribution License (ODC-By) v1.0.

Source: Open Data Commons Attribution License (ODC-By) v1.0. 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 ★