epidata-research commited on
Commit
2bf095d
·
verified ·
1 Parent(s): 3b0beff

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. LICENSE +11 -0
  2. README.md +59 -3
  3. data/train.parquet +3 -0
  4. loader.py +36 -0
  5. schema.json +52 -0
LICENSE ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
2
+
3
+ The person who associated a work with this deed has dedicated the work to the
4
+ public domain by waiving all of his or her rights to the work worldwide under
5
+ copyright law, including all related and neighboring rights, to the extent
6
+ allowed by law.
7
+
8
+ You can copy, modify, distribute and perform the work, even for commercial
9
+ purposes, all without asking permission.
10
+
11
+ For more information: https://creativecommons.org/publicdomain/zero/1.0/
README.md CHANGED
@@ -1,3 +1,59 @@
1
- ---
2
- license: cc0-1.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ task_categories:
4
+ - tabular-classification
5
+ size_categories:
6
+ - 1K<n<10K
7
+ ---
8
+
9
+ # Outbreak Containment Data
10
+
11
+ Simulated outbreak data for epidemiological modeling.
12
+
13
+ ## Usage
14
+
15
+ ```python
16
+ from datasets import load_dataset
17
+
18
+ dataset = load_dataset("epidata-research/outbreak-containment-data")
19
+ df = dataset["train"].to_pandas()
20
+ ```
21
+
22
+ Or use the provided loader:
23
+
24
+ ```python
25
+ from loader import load_data
26
+
27
+ df = load_data()
28
+ ```
29
+
30
+ ## Schema
31
+
32
+ ### Metrics
33
+
34
+ | Column | Type | Description |
35
+ |--------|------|-------------|
36
+ | immune_diversity | float | Normalized metric |
37
+ | transmission_coherence | float | Normalized metric |
38
+ | healthcare_capacity | float | Normalized metric |
39
+ | containment_index | float | Normalized metric |
40
+
41
+ ### Categorical Variables
42
+
43
+ | Column | Type | Description |
44
+ |--------|------|-------------|
45
+ | pathogen_type | string | Categorical variable |
46
+ | region_density | string | Categorical variable |
47
+
48
+ ## Statistics
49
+
50
+ - **Rows**: 1000
51
+ - **Columns**: 6
52
+
53
+ ## License
54
+
55
+ CC0 1.0 Universal (Public Domain)
56
+
57
+ ---
58
+
59
+ *Note: Homogeneity is the breeding ground of plague.*
data/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e138ff3c04ab0dd2b06d0156ad497c69411c1a06e0dd84c1963d9bb93962de0
3
+ size 41663
loader.py ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Data loader for outbreak-containment-data
3
+ """
4
+
5
+ import pandas as pd
6
+ from pathlib import Path
7
+
8
+
9
+ def load_data(split: str = "train") -> pd.DataFrame:
10
+ """
11
+ Load the dataset.
12
+
13
+ Args:
14
+ split: Data split ("train" by default)
15
+
16
+ Returns:
17
+ DataFrame with the loaded data
18
+ """
19
+ data_dir = Path(__file__).parent / "data"
20
+ parquet_path = data_dir / f"{split}.parquet"
21
+
22
+ if not parquet_path.exists():
23
+ raise FileNotFoundError(f"Data file not found: {parquet_path}")
24
+
25
+ return pd.read_parquet(parquet_path)
26
+
27
+
28
+ def get_columns() -> list:
29
+ """Return list of column names."""
30
+ return ['immune_diversity', 'transmission_coherence', 'healthcare_capacity', 'containment_index']
31
+
32
+
33
+ if __name__ == "__main__":
34
+ df = load_data()
35
+ print(f"Loaded {len(df)} rows")
36
+ print(df.head())
schema.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "1.0",
3
+ "columns": {
4
+ "immune_diversity": {
5
+ "type": "float",
6
+ "range": [
7
+ 0.02153563774324717,
8
+ 0.9925414602206185
9
+ ]
10
+ },
11
+ "transmission_coherence": {
12
+ "type": "float",
13
+ "range": [
14
+ 0.009676416116400879,
15
+ 0.9691074498232646
16
+ ]
17
+ },
18
+ "healthcare_capacity": {
19
+ "type": "float",
20
+ "range": [
21
+ 0.05250272826469958,
22
+ 0.9969587313251344
23
+ ]
24
+ },
25
+ "containment_index": {
26
+ "type": "float",
27
+ "range": [
28
+ 0.0,
29
+ 0.577262341412194
30
+ ]
31
+ },
32
+ "pathogen_type": {
33
+ "type": "string",
34
+ "values": [
35
+ "fungal",
36
+ "bacterial",
37
+ "parasitic",
38
+ "viral"
39
+ ]
40
+ },
41
+ "region_density": {
42
+ "type": "string",
43
+ "values": [
44
+ "suburban",
45
+ "urban",
46
+ "rural",
47
+ "megacity"
48
+ ]
49
+ }
50
+ },
51
+ "note": "Normalized metrics for cross-domain analysis"
52
+ }