network-robustness-team commited on
Commit
cef9cff
·
verified ·
1 Parent(s): 775aed7

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 +53 -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
+ # Graph Topology Benchmark
10
+
11
+ Synthetic graph topology data for network analysis.
12
+
13
+ ## Usage
14
+
15
+ ```python
16
+ from datasets import load_dataset
17
+
18
+ dataset = load_dataset("network-robustness-team/graph-topology-benchmark")
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
+ | path_redundancy | float | Normalized metric |
37
+ | clustering_coefficient | float | Normalized metric |
38
+ | capacity_margin | float | Normalized metric |
39
+ | robustness_score | float | Normalized metric |
40
+
41
+ ### Categorical Variables
42
+
43
+ | Column | Type | Description |
44
+ |--------|------|-------------|
45
+ | topology | string | Categorical variable |
46
+ | node_count_range | 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: The network breathes through its many lungs.*
data/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e6ae2696ab7f4413c4d4ae3a426f4f3e2dcebb5c0e716e6bebbadd715563a19
3
+ size 41577
loader.py ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Data loader for graph-topology-benchmark
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 ['path_redundancy', 'clustering_coefficient', 'capacity_margin', 'robustness_score']
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,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "1.0",
3
+ "columns": {
4
+ "path_redundancy": {
5
+ "type": "float",
6
+ "range": [
7
+ 0.01919646196940442,
8
+ 0.9911878938245318
9
+ ]
10
+ },
11
+ "clustering_coefficient": {
12
+ "type": "float",
13
+ "range": [
14
+ 0.005663291229804239,
15
+ 0.9490426666419055
16
+ ]
17
+ },
18
+ "capacity_margin": {
19
+ "type": "float",
20
+ "range": [
21
+ 0.07957279575388329,
22
+ 0.989321782672835
23
+ ]
24
+ },
25
+ "robustness_score": {
26
+ "type": "float",
27
+ "range": [
28
+ 0.0,
29
+ 0.5826344421486561
30
+ ]
31
+ },
32
+ "topology": {
33
+ "type": "string",
34
+ "values": [
35
+ "mesh",
36
+ "tree",
37
+ "hybrid",
38
+ "star",
39
+ "ring"
40
+ ]
41
+ },
42
+ "node_count_range": {
43
+ "type": "string",
44
+ "values": [
45
+ "1000-10000",
46
+ "100-1000",
47
+ "10-100",
48
+ "10000+"
49
+ ]
50
+ }
51
+ },
52
+ "note": "Normalized metrics for cross-domain analysis"
53
+ }