Datasets:
Tasks:
Tabular Classification
Formats:
parquet
Size:
100K - 1M
Tags:
calibration
distribution-shift
concept-drift
robustness
out-of-distribution-detection
selective-prediction
License:
Download src/schema.py from fahadhafeezofficial/driftcal: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/datasets/fahadhafeezofficial/driftcal/resolve/main/src/schema.py
- Command line
-
hf download hf://datasets/fahadhafeezofficial/driftcal/src/schema.py
-
curl -L -o schema.py https://huggingface.co/datasets/fahadhafeezofficial/driftcal/resolve/main/src/schema.py
1.16 kB
| from typing import Optional | |
| from pydantic import BaseModel, ConfigDict, Field | |
| class DriftCalRow(BaseModel): | |
| sample_id: str | |
| scenario_id: str | |
| split: str | |
| shift_type: str = Field(description="none|covariate|label|concept|novel_class|adversarial") | |
| shift_magnitude: float | |
| difficulty: str = Field(description="easy|medium|hard|expert") | |
| label_binary: int = Field(ge=0, le=1) | |
| label_family: str | |
| family_id: int | |
| family_is_novel: bool | |
| perturbation_applied: bool | |
| perturbation_budget: float | |
| spurious_shuffled: bool = Field( | |
| description="True only in the spurious_ablation eval, where spurious " | |
| "feature columns have been permuted across rows to break their " | |
| "correlation with the label" | |
| ) | |
| generator_seed: int | |
| timestamp_synth: int | |
| provenance: str = "synthetic:driftcal-v0.1-validation" | |
| qc_status: str = "unchecked" | |
| # feature_* columns are validated separately (70 numeric columns) rather | |
| # than declared individually here to keep the schema readable; see | |
| # DATASET_SCHEMA.md for the full per-feature-block description. | |
| model_config = ConfigDict(extra="allow") | |