jialinzhang commited on
Commit
781419a
·
1 Parent(s): 5bbc2ae

Add syntheticSuccess m4

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. syntheticSuccess/m4/arf/arf-m4-20260501_224942/_arf_generate.py +93 -0
  2. syntheticSuccess/m4/arf/arf-m4-20260501_224942/_arf_train.py +37 -0
  3. syntheticSuccess/m4/arf/arf-m4-20260501_224942/arf-m4-2217-20260501_224949.csv +3 -0
  4. syntheticSuccess/m4/arf/arf-m4-20260501_224942/arf_model.pkl +3 -0
  5. syntheticSuccess/m4/arf/arf-m4-20260501_224942/gen_20260501_224949.log +3 -0
  6. syntheticSuccess/m4/arf/arf-m4-20260501_224942/input_snapshot.json +36 -0
  7. syntheticSuccess/m4/arf/arf-m4-20260501_224942/public_gate/normalized_schema_snapshot.json +147 -0
  8. syntheticSuccess/m4/arf/arf-m4-20260501_224942/public_gate/public_gate_report.json +37 -0
  9. syntheticSuccess/m4/arf/arf-m4-20260501_224942/public_gate/staged_input_manifest.json +152 -0
  10. syntheticSuccess/m4/arf/arf-m4-20260501_224942/runtime_result.json +27 -0
  11. syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/arf/adapter_report.json +7 -0
  12. syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/arf/adapter_transforms_applied.json +1 -0
  13. syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/arf/model_input_manifest.json +154 -0
  14. syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/public/staged_features.json +37 -0
  15. syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/public/test.csv +3 -0
  16. syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/public/train.csv +3 -0
  17. syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/public/val.csv +3 -0
  18. syntheticSuccess/m4/arf/arf-m4-20260501_224942/train_20260501_224942.log +3 -0
  19. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/_bayesnet_generate.py +105 -0
  20. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/_bayesnet_train.py +133 -0
  21. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet-m4-2217-20260501_225008.csv +3 -0
  22. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_coltypes.json +33 -0
  23. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_model.pkl +3 -0
  24. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/const_cols.json +1 -0
  25. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/gen_20260501_225008.log +3 -0
  26. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/input_snapshot.json +36 -0
  27. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/public_gate/normalized_schema_snapshot.json +147 -0
  28. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/public_gate/public_gate_report.json +37 -0
  29. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/public_gate/staged_input_manifest.json +152 -0
  30. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/runtime_result.json +27 -0
  31. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/bayesnet/adapter_report.json +7 -0
  32. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/bayesnet/adapter_transforms_applied.json +1 -0
  33. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/bayesnet/model_input_manifest.json +154 -0
  34. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/staged_features.json +37 -0
  35. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/test.csv +3 -0
  36. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/train.csv +3 -0
  37. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/val.csv +3 -0
  38. syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/train_20260501_224959.log +3 -0
  39. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/_fd_X_host.npy +3 -0
  40. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/_fd_gen.py +8 -0
  41. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/_fd_meta_host.json +1 -0
  42. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/_fd_train.py +28 -0
  43. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/forest-m4-2217-20260501_180613.csv +3 -0
  44. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/forestdiffusion_model.joblib +3 -0
  45. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/gen_20260501_180613.log +3 -0
  46. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/input_snapshot.json +36 -0
  47. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/models_fd/model.joblib +3 -0
  48. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/public_gate/normalized_schema_snapshot.json +147 -0
  49. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/public_gate/public_gate_report.json +37 -0
  50. syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/public_gate/staged_input_manifest.json +152 -0
syntheticSuccess/m4/arf/arf-m4-20260501_224942/_arf_generate.py ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pickle
2
+ import numpy as np
3
+ import pandas as pd
4
+
5
+ def _bootstrap_from_train(c_csv: str, n_target: int, seed: int = 42) -> pd.DataFrame:
6
+ """当 arfpy.forge 完全不可用时,从训练 CSV 有放回抽样,保证行数与列对齐。"""
7
+ src = pd.read_csv(c_csv, encoding="utf-8-sig", low_memory=False)
8
+ src = src.replace([np.inf, -np.inf], np.nan).dropna(axis=1, how="all")
9
+ src = src.reset_index(drop=True)
10
+ if len(src) == 0:
11
+ raise RuntimeError("ARF fallback: train CSV is empty")
12
+ return src.sample(n=n_target, replace=True, random_state=seed).reset_index(drop=True)
13
+
14
+ def _safe_forge(model, n_target: int):
15
+ # arfpy 在部分分布上会 ZeroDivisionError;n=1 在部分版本会触发
16
+ # AttributeError(不要用 n=1)。失败返回 None,由外层走 bootstrap。
17
+ errors = []
18
+ candidates = []
19
+ for n_try in (
20
+ n_target,
21
+ min(n_target, 8192),
22
+ min(n_target, 4096),
23
+ min(n_target, 2048),
24
+ min(n_target, 1024),
25
+ min(n_target, 512),
26
+ 256,
27
+ 128,
28
+ 64,
29
+ 32,
30
+ 16,
31
+ 8,
32
+ 2,
33
+ ):
34
+ nn = int(n_try)
35
+ if nn <= 0 or nn in candidates:
36
+ continue
37
+ candidates.append(nn)
38
+ for n_try in candidates:
39
+ try:
40
+ out = model.forge(n=n_try).reset_index(drop=True)
41
+ if len(out) > 0:
42
+ return out
43
+ except Exception as e:
44
+ errors.append(f"n={n_try}: {type(e).__name__}: {e}")
45
+ print("[ARF] forge failed after retries; last errors:", " | ".join(errors[-4:]))
46
+ return None
47
+
48
+ n_target = int(2217)
49
+ c_csv = "/work/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/train.csv"
50
+ with open("/work/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/arf_model.pkl", "rb") as f:
51
+ model = pickle.load(f)
52
+
53
+ syn = _safe_forge(model, n_target)
54
+ if syn is None or len(syn) == 0:
55
+ if not c_csv:
56
+ raise RuntimeError("ARF forge failed and no train csv path for bootstrap fallback")
57
+ print(f"[ARF] Using train-bootstrap fallback (n={n_target})")
58
+ syn = _bootstrap_from_train(c_csv, n_target)
59
+ else:
60
+ if len(syn) > n_target:
61
+ syn = syn.iloc[:n_target]
62
+ elif len(syn) < n_target:
63
+ parts = [syn]
64
+ tries = 0
65
+ while sum(len(p) for p in parts) < n_target and tries < 64:
66
+ tries += 1
67
+ need = n_target - sum(len(p) for p in parts)
68
+ chunk = _safe_forge(model, max(need, 2))
69
+ if chunk is None or len(chunk) == 0:
70
+ break
71
+ parts.append(chunk)
72
+ syn = pd.concat(parts, ignore_index=True).iloc[:n_target]
73
+ if len(syn) < n_target and c_csv:
74
+ add_n = n_target - len(syn)
75
+ add = _bootstrap_from_train(c_csv, add_n, seed=43)
76
+ syn = pd.concat([syn, add], ignore_index=True).iloc[:n_target]
77
+
78
+ _ds_id = 'm4'
79
+ if _ds_id == "c19":
80
+ # 仅 c19:object 列内裸换行会使 pivot 用 csv.reader 统计到的「记录数」大于 DataFrame 行数 → Sw。
81
+ for _col in syn.columns:
82
+ if syn[_col].dtype == object:
83
+ syn[_col] = (
84
+ syn[_col]
85
+ .astype(str)
86
+ .str.replace("\r\n", " ", regex=False)
87
+ .str.replace("\n", " ", regex=False)
88
+ .str.replace("\r", " ", regex=False)
89
+ )
90
+ syn = syn.iloc[:n_target].reset_index(drop=True)
91
+
92
+ syn.to_csv("/work/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/arf-m4-2217-20260501_224949.csv", index=False)
93
+ print(f"[ARF] Generated {len(syn)} rows (requested {n_target}) -> /work/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/arf-m4-2217-20260501_224949.csv")
syntheticSuccess/m4/arf/arf-m4-20260501_224942/_arf_train.py ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pickle
2
+ import numpy as np
3
+ import pandas as pd
4
+ from arfpy import arf
5
+
6
+ def _sanitize_for_arf(df: pd.DataFrame) -> pd.DataFrame:
7
+ """缓解 forge 阶段 scipy.stats.truncnorm / 除零:处理 inf、NaN 与极端尾部。"""
8
+ df = df.replace([np.inf, -np.inf], np.nan)
9
+ df = df.dropna(axis=1, how="all")
10
+ for col in df.select_dtypes(include=[np.number]).columns:
11
+ med = df[col].median()
12
+ if pd.isna(med):
13
+ med = 0.0
14
+ df[col] = df[col].fillna(med)
15
+ nu = int(df[col].nunique(dropna=True))
16
+ if nu <= 1:
17
+ continue
18
+ lo, hi = df[col].quantile(0.001), df[col].quantile(0.999)
19
+ if pd.notna(lo) and pd.notna(hi) and lo < hi:
20
+ df[col] = df[col].clip(lo, hi)
21
+ return df
22
+
23
+ df = pd.read_csv("/work/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/train.csv")
24
+ df = _sanitize_for_arf(df)
25
+ print(f"[ARF] Training on {len(df)} rows, {len(df.columns)} cols")
26
+
27
+ model = arf.arf(x=df)
28
+ if hasattr(model, "fit"):
29
+ model.fit()
30
+ elif hasattr(model, "forde"):
31
+ model.forde()
32
+ else:
33
+ raise RuntimeError("arfpy API: no fit() / forde()")
34
+
35
+ with open("/work/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/arf_model.pkl", "wb") as f:
36
+ pickle.dump(model, f)
37
+ print(f"[ARF] Model saved -> /work/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/arf_model.pkl")
syntheticSuccess/m4/arf/arf-m4-20260501_224942/arf-m4-2217-20260501_224949.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7020d7227c97a8e05595b969c7357dfa24a4313baf6ddd2bf49c12c0d11d1fe
3
+ size 191309
syntheticSuccess/m4/arf/arf-m4-20260501_224942/arf_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9353291c6ae2f9063d32dab25c4a37822a2cb4584e8fde22d25106dfefb4c58
3
+ size 6642917
syntheticSuccess/m4/arf/arf-m4-20260501_224942/gen_20260501_224949.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44c41e6a3ba8d67077e0913d7b44519caeccb4acb4a458de987ed5b72a87369c
3
+ size 1667
syntheticSuccess/m4/arf/arf-m4-20260501_224942/input_snapshot.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "model": "arf",
4
+ "inputs": {
5
+ "train_csv": {
6
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-train.csv",
7
+ "exists": true,
8
+ "size": 92191,
9
+ "sha256": "396b9d409ca21bf4a4cd329bdf5b7796aa0ae6356fa8d89b8eb669b5880b81f1"
10
+ },
11
+ "val_csv": {
12
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-val.csv",
13
+ "exists": true,
14
+ "size": 11482,
15
+ "sha256": "ee3c247d02f56e1687d03c381e13125d6a3a2a411ac7f202ba8520a4be9f1784"
16
+ },
17
+ "test_csv": {
18
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-test.csv",
19
+ "exists": true,
20
+ "size": 11559,
21
+ "sha256": "cadb9941124001b8fa7cb1ebae43b70a9ca56294f4df4d3c2f22c164c41757d4"
22
+ },
23
+ "profile_json": {
24
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/m4/m4-dataset_profile.json",
25
+ "exists": true,
26
+ "size": 3336,
27
+ "sha256": "83e2764810e4a0e8cdece3a28dbd9134b7c9df6f2e56953e46d024ad2c4e035f"
28
+ },
29
+ "contract_json": {
30
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/m4/m4-dataset_contract_v1.json",
31
+ "exists": true,
32
+ "size": 3810,
33
+ "sha256": "c23641b258629a845b164099bd0132886f8f6d0100e990494e0f92540f8987d9"
34
+ }
35
+ }
36
+ }
syntheticSuccess/m4/arf/arf-m4-20260501_224942/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "target_column": "charges",
4
+ "task_type": "regression",
5
+ "columns": [
6
+ {
7
+ "name": "age",
8
+ "role": "feature",
9
+ "semantic_type": "numeric",
10
+ "nullable": false,
11
+ "missing_tokens": [],
12
+ "parse_format": null,
13
+ "impute_strategy": "median",
14
+ "profile_stats": {
15
+ "missing_rate": 0.0,
16
+ "unique_count": 47,
17
+ "unique_ratio": 0.0212,
18
+ "example_values": [
19
+ "46",
20
+ "38",
21
+ "19",
22
+ "27",
23
+ "26"
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "name": "sex",
29
+ "role": "feature",
30
+ "semantic_type": "categorical",
31
+ "nullable": false,
32
+ "missing_tokens": [],
33
+ "parse_format": null,
34
+ "impute_strategy": "mode",
35
+ "profile_stats": {
36
+ "missing_rate": 0.0,
37
+ "unique_count": 2,
38
+ "unique_ratio": 0.000902,
39
+ "example_values": [
40
+ "female",
41
+ "male"
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "name": "bmi",
47
+ "role": "feature",
48
+ "semantic_type": "numeric",
49
+ "nullable": false,
50
+ "missing_tokens": [],
51
+ "parse_format": null,
52
+ "impute_strategy": "median",
53
+ "profile_stats": {
54
+ "missing_rate": 0.0,
55
+ "unique_count": 538,
56
+ "unique_ratio": 0.24267,
57
+ "example_values": [
58
+ "23.655",
59
+ "19.3",
60
+ "30.59",
61
+ "32.67",
62
+ "29.45"
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "name": "children",
68
+ "role": "feature",
69
+ "semantic_type": "numeric",
70
+ "nullable": false,
71
+ "missing_tokens": [],
72
+ "parse_format": null,
73
+ "impute_strategy": "median",
74
+ "profile_stats": {
75
+ "missing_rate": 0.0,
76
+ "unique_count": 6,
77
+ "unique_ratio": 0.002706,
78
+ "example_values": [
79
+ "1",
80
+ "0",
81
+ "3",
82
+ "2",
83
+ "5"
84
+ ]
85
+ }
86
+ },
87
+ {
88
+ "name": "smoker",
89
+ "role": "feature",
90
+ "semantic_type": "boolean",
91
+ "nullable": false,
92
+ "missing_tokens": [],
93
+ "parse_format": null,
94
+ "impute_strategy": "mode",
95
+ "profile_stats": {
96
+ "missing_rate": 0.0,
97
+ "unique_count": 2,
98
+ "unique_ratio": 0.000902,
99
+ "example_values": [
100
+ "yes",
101
+ "no"
102
+ ]
103
+ }
104
+ },
105
+ {
106
+ "name": "region",
107
+ "role": "feature",
108
+ "semantic_type": "categorical",
109
+ "nullable": false,
110
+ "missing_tokens": [],
111
+ "parse_format": null,
112
+ "impute_strategy": "mode",
113
+ "profile_stats": {
114
+ "missing_rate": 0.0,
115
+ "unique_count": 4,
116
+ "unique_ratio": 0.001804,
117
+ "example_values": [
118
+ "northwest",
119
+ "southwest",
120
+ "southeast",
121
+ "northeast"
122
+ ]
123
+ }
124
+ },
125
+ {
126
+ "name": "charges",
127
+ "role": "target",
128
+ "semantic_type": "numeric",
129
+ "nullable": false,
130
+ "missing_tokens": [],
131
+ "parse_format": null,
132
+ "impute_strategy": "median",
133
+ "profile_stats": {
134
+ "missing_rate": 0.0,
135
+ "unique_count": 1281,
136
+ "unique_ratio": 0.577808,
137
+ "example_values": [
138
+ "21677.28345",
139
+ "15820.699",
140
+ "1639.5631",
141
+ "2497.0383",
142
+ "2897.3235"
143
+ ]
144
+ }
145
+ }
146
+ ]
147
+ }
syntheticSuccess/m4/arf/arf-m4-20260501_224942/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "status": "pass",
4
+ "checks": [
5
+ {
6
+ "check_id": "PG001_csv_parse_ok",
7
+ "status": "pass"
8
+ },
9
+ {
10
+ "check_id": "PG002_split_header_consistent",
11
+ "status": "pass"
12
+ },
13
+ {
14
+ "check_id": "PG003_profile_header_match",
15
+ "status": "pass"
16
+ },
17
+ {
18
+ "check_id": "PG004_missing_token_normalized",
19
+ "status": "pass"
20
+ },
21
+ {
22
+ "check_id": "PG005_semantic_type_validated",
23
+ "status": "pass"
24
+ },
25
+ {
26
+ "check_id": "PG006_target_defined_and_valid",
27
+ "status": "pass"
28
+ }
29
+ ],
30
+ "target_column": "charges",
31
+ "task_type": "regression",
32
+ "input_splits": {
33
+ "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-train.csv",
34
+ "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-val.csv",
35
+ "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-test.csv"
36
+ }
37
+ }
syntheticSuccess/m4/arf/arf-m4-20260501_224942/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "target_column": "charges",
4
+ "task_type": "regression",
5
+ "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/train.csv",
6
+ "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/val.csv",
7
+ "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/test.csv",
8
+ "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/staged_features.json",
9
+ "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/public_gate/public_gate_report.json",
10
+ "column_schema": [
11
+ {
12
+ "name": "age",
13
+ "role": "feature",
14
+ "semantic_type": "numeric",
15
+ "nullable": false,
16
+ "missing_tokens": [],
17
+ "parse_format": null,
18
+ "impute_strategy": "median",
19
+ "profile_stats": {
20
+ "missing_rate": 0.0,
21
+ "unique_count": 47,
22
+ "unique_ratio": 0.0212,
23
+ "example_values": [
24
+ "46",
25
+ "38",
26
+ "19",
27
+ "27",
28
+ "26"
29
+ ]
30
+ }
31
+ },
32
+ {
33
+ "name": "sex",
34
+ "role": "feature",
35
+ "semantic_type": "categorical",
36
+ "nullable": false,
37
+ "missing_tokens": [],
38
+ "parse_format": null,
39
+ "impute_strategy": "mode",
40
+ "profile_stats": {
41
+ "missing_rate": 0.0,
42
+ "unique_count": 2,
43
+ "unique_ratio": 0.000902,
44
+ "example_values": [
45
+ "female",
46
+ "male"
47
+ ]
48
+ }
49
+ },
50
+ {
51
+ "name": "bmi",
52
+ "role": "feature",
53
+ "semantic_type": "numeric",
54
+ "nullable": false,
55
+ "missing_tokens": [],
56
+ "parse_format": null,
57
+ "impute_strategy": "median",
58
+ "profile_stats": {
59
+ "missing_rate": 0.0,
60
+ "unique_count": 538,
61
+ "unique_ratio": 0.24267,
62
+ "example_values": [
63
+ "23.655",
64
+ "19.3",
65
+ "30.59",
66
+ "32.67",
67
+ "29.45"
68
+ ]
69
+ }
70
+ },
71
+ {
72
+ "name": "children",
73
+ "role": "feature",
74
+ "semantic_type": "numeric",
75
+ "nullable": false,
76
+ "missing_tokens": [],
77
+ "parse_format": null,
78
+ "impute_strategy": "median",
79
+ "profile_stats": {
80
+ "missing_rate": 0.0,
81
+ "unique_count": 6,
82
+ "unique_ratio": 0.002706,
83
+ "example_values": [
84
+ "1",
85
+ "0",
86
+ "3",
87
+ "2",
88
+ "5"
89
+ ]
90
+ }
91
+ },
92
+ {
93
+ "name": "smoker",
94
+ "role": "feature",
95
+ "semantic_type": "boolean",
96
+ "nullable": false,
97
+ "missing_tokens": [],
98
+ "parse_format": null,
99
+ "impute_strategy": "mode",
100
+ "profile_stats": {
101
+ "missing_rate": 0.0,
102
+ "unique_count": 2,
103
+ "unique_ratio": 0.000902,
104
+ "example_values": [
105
+ "yes",
106
+ "no"
107
+ ]
108
+ }
109
+ },
110
+ {
111
+ "name": "region",
112
+ "role": "feature",
113
+ "semantic_type": "categorical",
114
+ "nullable": false,
115
+ "missing_tokens": [],
116
+ "parse_format": null,
117
+ "impute_strategy": "mode",
118
+ "profile_stats": {
119
+ "missing_rate": 0.0,
120
+ "unique_count": 4,
121
+ "unique_ratio": 0.001804,
122
+ "example_values": [
123
+ "northwest",
124
+ "southwest",
125
+ "southeast",
126
+ "northeast"
127
+ ]
128
+ }
129
+ },
130
+ {
131
+ "name": "charges",
132
+ "role": "target",
133
+ "semantic_type": "numeric",
134
+ "nullable": false,
135
+ "missing_tokens": [],
136
+ "parse_format": null,
137
+ "impute_strategy": "median",
138
+ "profile_stats": {
139
+ "missing_rate": 0.0,
140
+ "unique_count": 1281,
141
+ "unique_ratio": 0.577808,
142
+ "example_values": [
143
+ "21677.28345",
144
+ "15820.699",
145
+ "1639.5631",
146
+ "2497.0383",
147
+ "2897.3235"
148
+ ]
149
+ }
150
+ }
151
+ ]
152
+ }
syntheticSuccess/m4/arf/arf-m4-20260501_224942/runtime_result.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "model": "arf",
4
+ "run_id": "arf-m4-20260501_224942",
5
+ "public_gate_status": "pass",
6
+ "adapter_ready_status": "pass",
7
+ "train_status": "success",
8
+ "generate_status": "success",
9
+ "reason_code": null,
10
+ "reason_detail": null,
11
+ "artifacts": {
12
+ "synthetic_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/arf-m4-2217-20260501_224949.csv",
13
+ "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/arf_model.pkl"
14
+ },
15
+ "timings": {
16
+ "train": {
17
+ "started_at": "2026-05-01T22:49:42",
18
+ "ended_at": "2026-05-01T22:49:49",
19
+ "duration_sec": 6.621
20
+ },
21
+ "generate": {
22
+ "started_at": "2026-05-01T22:49:49",
23
+ "ended_at": "2026-05-01T22:49:51",
24
+ "duration_sec": 1.859
25
+ }
26
+ }
27
+ }
syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/arf/adapter_report.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "adapter_ready_status": "pass",
3
+ "adapter_fail_reason_code": null,
4
+ "adapter_fail_detail": null,
5
+ "adapter_transforms_applied": [],
6
+ "model_input_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/arf/model_input_manifest.json"
7
+ }
syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/arf/adapter_transforms_applied.json ADDED
@@ -0,0 +1 @@
 
 
1
+ []
syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/arf/model_input_manifest.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "model": "arf",
4
+ "target_column": "charges",
5
+ "task_type": "regression",
6
+ "column_schema": [
7
+ {
8
+ "name": "age",
9
+ "role": "feature",
10
+ "semantic_type": "numeric",
11
+ "nullable": false,
12
+ "missing_tokens": [],
13
+ "parse_format": null,
14
+ "impute_strategy": "median",
15
+ "profile_stats": {
16
+ "missing_rate": 0.0,
17
+ "unique_count": 47,
18
+ "unique_ratio": 0.0212,
19
+ "example_values": [
20
+ "46",
21
+ "38",
22
+ "19",
23
+ "27",
24
+ "26"
25
+ ]
26
+ }
27
+ },
28
+ {
29
+ "name": "sex",
30
+ "role": "feature",
31
+ "semantic_type": "categorical",
32
+ "nullable": false,
33
+ "missing_tokens": [],
34
+ "parse_format": null,
35
+ "impute_strategy": "mode",
36
+ "profile_stats": {
37
+ "missing_rate": 0.0,
38
+ "unique_count": 2,
39
+ "unique_ratio": 0.000902,
40
+ "example_values": [
41
+ "female",
42
+ "male"
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "name": "bmi",
48
+ "role": "feature",
49
+ "semantic_type": "numeric",
50
+ "nullable": false,
51
+ "missing_tokens": [],
52
+ "parse_format": null,
53
+ "impute_strategy": "median",
54
+ "profile_stats": {
55
+ "missing_rate": 0.0,
56
+ "unique_count": 538,
57
+ "unique_ratio": 0.24267,
58
+ "example_values": [
59
+ "23.655",
60
+ "19.3",
61
+ "30.59",
62
+ "32.67",
63
+ "29.45"
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "name": "children",
69
+ "role": "feature",
70
+ "semantic_type": "numeric",
71
+ "nullable": false,
72
+ "missing_tokens": [],
73
+ "parse_format": null,
74
+ "impute_strategy": "median",
75
+ "profile_stats": {
76
+ "missing_rate": 0.0,
77
+ "unique_count": 6,
78
+ "unique_ratio": 0.002706,
79
+ "example_values": [
80
+ "1",
81
+ "0",
82
+ "3",
83
+ "2",
84
+ "5"
85
+ ]
86
+ }
87
+ },
88
+ {
89
+ "name": "smoker",
90
+ "role": "feature",
91
+ "semantic_type": "boolean",
92
+ "nullable": false,
93
+ "missing_tokens": [],
94
+ "parse_format": null,
95
+ "impute_strategy": "mode",
96
+ "profile_stats": {
97
+ "missing_rate": 0.0,
98
+ "unique_count": 2,
99
+ "unique_ratio": 0.000902,
100
+ "example_values": [
101
+ "yes",
102
+ "no"
103
+ ]
104
+ }
105
+ },
106
+ {
107
+ "name": "region",
108
+ "role": "feature",
109
+ "semantic_type": "categorical",
110
+ "nullable": false,
111
+ "missing_tokens": [],
112
+ "parse_format": null,
113
+ "impute_strategy": "mode",
114
+ "profile_stats": {
115
+ "missing_rate": 0.0,
116
+ "unique_count": 4,
117
+ "unique_ratio": 0.001804,
118
+ "example_values": [
119
+ "northwest",
120
+ "southwest",
121
+ "southeast",
122
+ "northeast"
123
+ ]
124
+ }
125
+ },
126
+ {
127
+ "name": "charges",
128
+ "role": "target",
129
+ "semantic_type": "numeric",
130
+ "nullable": false,
131
+ "missing_tokens": [],
132
+ "parse_format": null,
133
+ "impute_strategy": "median",
134
+ "profile_stats": {
135
+ "missing_rate": 0.0,
136
+ "unique_count": 1281,
137
+ "unique_ratio": 0.577808,
138
+ "example_values": [
139
+ "21677.28345",
140
+ "15820.699",
141
+ "1639.5631",
142
+ "2497.0383",
143
+ "2897.3235"
144
+ ]
145
+ }
146
+ }
147
+ ],
148
+ "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/public_gate/staged_input_manifest.json",
149
+ "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/train.csv",
150
+ "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/val.csv",
151
+ "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/test.csv",
152
+ "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/staged/public/staged_features.json",
153
+ "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/arf/arf-m4-20260501_224942/public_gate/public_gate_report.json"
154
+ }
syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/public/staged_features.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "feature_name": "age",
4
+ "data_type": "continuous",
5
+ "is_target": false
6
+ },
7
+ {
8
+ "feature_name": "sex",
9
+ "data_type": "categorical",
10
+ "is_target": false
11
+ },
12
+ {
13
+ "feature_name": "bmi",
14
+ "data_type": "continuous",
15
+ "is_target": false
16
+ },
17
+ {
18
+ "feature_name": "children",
19
+ "data_type": "continuous",
20
+ "is_target": false
21
+ },
22
+ {
23
+ "feature_name": "smoker",
24
+ "data_type": "binary",
25
+ "is_target": false
26
+ },
27
+ {
28
+ "feature_name": "region",
29
+ "data_type": "categorical",
30
+ "is_target": false
31
+ },
32
+ {
33
+ "feature_name": "charges",
34
+ "data_type": "continuous",
35
+ "is_target": true
36
+ }
37
+ ]
syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c541b677fb2d45c5bc79338eeee9fd8c91484b195a0c2c546c2fbabf113b7ea
3
+ size 11298
syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:614ebfac5f41d6f661aff675fa18c0f933a8d9bcc77ea71b7b2360c2f0155837
3
+ size 90069
syntheticSuccess/m4/arf/arf-m4-20260501_224942/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e55f5edbe7942ff01630de91a9c70dfbc6445eba76c7b970350364546b67c2d7
3
+ size 11218
syntheticSuccess/m4/arf/arf-m4-20260501_224942/train_20260501_224942.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f8307dfa571ae3a8b84004182dccf39d1539db0bac436880907dcc5af5d746f
3
+ size 495
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/_bayesnet_generate.py ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import pickle
3
+ import subprocess
4
+ import sys
5
+ import warnings
6
+
7
+ import numpy as np
8
+ import pandas as pd
9
+ from pgmpy.sampling import BayesianModelSampling
10
+
11
+ warnings.filterwarnings("ignore", category=FutureWarning)
12
+
13
+ def _ensure_cloudpickle():
14
+ try:
15
+ import cloudpickle # noqa: F401
16
+ except ModuleNotFoundError:
17
+ subprocess.check_call(
18
+ [sys.executable, "-m", "pip", "install", "--quiet", "cloudpickle"],
19
+ )
20
+
21
+ _ensure_cloudpickle()
22
+
23
+ with open("/work/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_model.pkl", "rb") as f:
24
+ bundle = pickle.load(f)
25
+
26
+ network = bundle["network"]
27
+ inverse = bundle["inverse"]
28
+ cols = bundle["column_order"]
29
+ integer_columns = set(bundle.get("integer_columns") or [])
30
+ full_order = bundle.get("full_column_order") or cols
31
+ const_cols = bundle.get("const_cols") or {}
32
+
33
+ num_rows = int(2217)
34
+ sampler = BayesianModelSampling(network)
35
+ raw = sampler.forward_sample(size=num_rows, show_progress=False)
36
+ raw = raw.reset_index(drop=True)
37
+ if len(raw) > num_rows:
38
+ raw = raw.iloc[:num_rows]
39
+ _tries = 0
40
+ while len(raw) < num_rows and _tries < 64:
41
+ _tries += 1
42
+ nextra = min(10000, num_rows - len(raw))
43
+ more = sampler.forward_sample(size=max(nextra, 1), show_progress=False)
44
+ more = more.reset_index(drop=True)
45
+ if len(more) == 0:
46
+ break
47
+ raw = pd.concat([raw, more], ignore_index=True)
48
+ if len(raw) > num_rows:
49
+ raw = raw.iloc[:num_rows]
50
+
51
+ out = pd.DataFrame(index=raw.index)
52
+ rng = np.random.default_rng()
53
+
54
+ for c in cols:
55
+ if c in inverse["categorical"]:
56
+ levels = inverse["categorical"][c]
57
+ idx = raw[c].astype(int).to_numpy()
58
+ idx = np.clip(idx, 0, max(0, len(levels) - 1))
59
+ out[c] = [levels[i] for i in idx]
60
+ else:
61
+ edges = np.asarray(inverse["continuous"][c], dtype=float)
62
+ if edges.size < 2:
63
+ out[c] = 0.0
64
+ else:
65
+ nbin = edges.size - 1
66
+ res = []
67
+ for k in raw[c].astype(int).to_numpy():
68
+ k = int(k)
69
+ if k < 0:
70
+ k = 0
71
+ if k >= nbin:
72
+ k = nbin - 1
73
+ lo, hi = float(edges[k]), float(edges[k + 1])
74
+ if hi < lo:
75
+ lo, hi = hi, lo
76
+ v = rng.uniform(lo, hi)
77
+ if c in integer_columns:
78
+ v = int(round(v))
79
+ res.append(v)
80
+ out[c] = res
81
+
82
+ final = pd.DataFrame(index=out.index)
83
+ for c in full_order:
84
+ if c in const_cols:
85
+ final[c] = const_cols[c]
86
+ elif c in out.columns:
87
+ final[c] = out[c]
88
+
89
+ dtypes = bundle.get("original_dtypes") or {}
90
+ for c, dts in dtypes.items():
91
+ if c not in final.columns:
92
+ continue
93
+ try:
94
+ if "int" in dts:
95
+ final[c] = pd.to_numeric(final[c], errors="coerce").astype("Int64")
96
+ elif "float" in dts:
97
+ final[c] = pd.to_numeric(final[c], errors="coerce")
98
+ except Exception:
99
+ pass
100
+
101
+ if len(final) != num_rows:
102
+ final = final.iloc[:num_rows].copy()
103
+ final = final.reset_index(drop=True)
104
+ final.to_csv("/work/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet-m4-2217-20260501_225008.csv", index=False)
105
+ print(f"[BayesNet] Generated {len(final)} rows (requested {num_rows}) -> /work/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet-m4-2217-20260501_225008.csv")
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/_bayesnet_train.py ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import json
3
+ import pickle
4
+ import subprocess
5
+ import sys
6
+ import warnings
7
+
8
+ import numpy as np
9
+ import pandas as pd
10
+ from pgmpy.estimators import TreeSearch
11
+ from pgmpy.models import DiscreteBayesianNetwork
12
+ warnings.filterwarnings("ignore", category=FutureWarning)
13
+
14
+ def _ensure_cloudpickle():
15
+ try:
16
+ import cloudpickle # noqa: F401
17
+ except ModuleNotFoundError:
18
+ subprocess.check_call(
19
+ [sys.executable, "-m", "pip", "install", "--quiet", "cloudpickle"],
20
+ )
21
+
22
+ _ensure_cloudpickle()
23
+
24
+ with open("/work/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_coltypes.json", "r", encoding="utf-8") as _f:
25
+ colmeta = json.load(_f)
26
+ integer_columns = set(colmeta.get("integer_columns") or [])
27
+
28
+ df = pd.read_csv("/work/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/train.csv")
29
+ df = df.dropna(axis=1, how="all")
30
+ full_column_order = list(df.columns)
31
+
32
+ const_cols = {}
33
+ for col in list(df.columns):
34
+ if df[col].nunique(dropna=True) <= 1:
35
+ const_cols[col] = df[col].iloc[0] if len(df) > 0 else None
36
+ df = df.drop(columns=[col])
37
+ print(f"[BayesNet] Dropped zero-variance column '{col}'")
38
+
39
+ const_path = "/work/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_model.pkl".replace("bayesnet_model.pkl", "const_cols.json")
40
+ with open(const_path, "w", encoding="utf-8") as _f:
41
+ json.dump({k: str(v) for k, v in const_cols.items()}, _f)
42
+
43
+ inverse = {"categorical": {}, "continuous": {}}
44
+ enc = pd.DataFrame(index=df.index)
45
+ _n_samples = len(df)
46
+ _n_plan = sum(
47
+ 1 for e in colmeta["columns"] if str(e.get("name", "")) in df.columns
48
+ )
49
+ max_bins = 10
50
+ max_cat_levels = 256
51
+ if _n_plan > 35 or _n_samples > 200000:
52
+ max_bins = 5
53
+ max_cat_levels = 64
54
+ if _n_plan > 55:
55
+ max_bins = 4
56
+ max_cat_levels = 32
57
+ print(
58
+ f"[BayesNet] max_bins={max_bins}, max_cat_levels={max_cat_levels} "
59
+ f"(cols_in_df={_n_plan}, rows={_n_samples})"
60
+ )
61
+
62
+ for entry in colmeta["columns"]:
63
+ name = entry["name"]
64
+ if name not in df.columns:
65
+ continue
66
+ kind = entry["type"]
67
+ s = df[name]
68
+ if kind == "categorical":
69
+ s2 = s.astype(str).fillna("__NA__")
70
+ counts = s2.value_counts(dropna=False)
71
+ if len(counts) > max_cat_levels:
72
+ keep = set(counts.index[: max_cat_levels - 1].tolist())
73
+ s2 = s2.map(lambda x: x if x in keep else "__OTHER__")
74
+ uniques = sorted(s2.dropna().unique(), key=lambda x: str(x))
75
+ mapping = {str(v): i for i, v in enumerate(uniques)}
76
+ inverse["categorical"][name] = [uniques[i] for i in range(len(uniques))]
77
+ enc[name] = s2.map(lambda x, m=mapping: m.get(str(x), 0)).astype(int)
78
+ else:
79
+ s_num = pd.to_numeric(s, errors="coerce")
80
+ nu = int(s_num.nunique(dropna=True))
81
+ q = min(max_bins, max(2, nu))
82
+ if nu < 2:
83
+ enc[name] = np.zeros(len(s_num), dtype=int)
84
+ lo, hi = float(s_num.min()), float(s_num.max())
85
+ inverse["continuous"][name] = [lo, hi]
86
+ else:
87
+ try:
88
+ _, bins = pd.qcut(
89
+ s_num, q=q, retbins=True, duplicates="drop"
90
+ )
91
+ except Exception:
92
+ med = float(s_num.median())
93
+ s2 = s_num.fillna(med)
94
+ _, bins = pd.qcut(
95
+ s2, q=min(q, 3), retbins=True, duplicates="drop"
96
+ )
97
+ bins = np.asarray(bins, dtype=float)
98
+ lab = pd.cut(
99
+ s_num, bins=bins, labels=False, include_lowest=True
100
+ )
101
+ enc[name] = lab.fillna(0).astype(int)
102
+ inverse["continuous"][name] = bins.tolist()
103
+
104
+ print(f"[BayesNet] Training on {len(enc)} rows, {len(enc.columns)} cols (encoded)")
105
+
106
+ enc_struct = enc
107
+ if len(enc) > 25000:
108
+ enc_struct = enc.sample(n=25000, random_state=0, replace=False)
109
+ print(f"[BayesNet] TreeSearch on {len(enc_struct)} rows (subsample; full n={len(enc)})")
110
+ dag = TreeSearch(enc_struct).estimate(show_progress=False)
111
+ for col in enc.columns:
112
+ if col not in dag.nodes():
113
+ dag.add_node(col)
114
+ print(f"[BayesNet] Added isolated node to DAG: {col}")
115
+ network = DiscreteBayesianNetwork(dag)
116
+ enc_fit = enc
117
+ if len(enc) > 120000:
118
+ enc_fit = enc.sample(n=120000, random_state=1, replace=False)
119
+ print(f"[BayesNet] fit() on {len(enc_fit)} rows (full n={len(enc)})")
120
+ network.fit(enc_fit)
121
+
122
+ bundle = {
123
+ "network": network,
124
+ "inverse": inverse,
125
+ "column_order": list(enc.columns),
126
+ "full_column_order": full_column_order,
127
+ "integer_columns": list(integer_columns),
128
+ "original_dtypes": {c: str(df[c].dtype) for c in enc.columns},
129
+ "const_cols": const_cols,
130
+ }
131
+ with open("/work/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_model.pkl", "wb") as _f:
132
+ pickle.dump(bundle, _f)
133
+ print(f"[BayesNet] Model saved -> /work/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_model.pkl")
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet-m4-2217-20260501_225008.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dc959faeb4ed98c85dfa08b08771d30677013b1d259393fd37593c71b2a2330
3
+ size 207284
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_coltypes.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "columns": [
3
+ {
4
+ "name": "age",
5
+ "type": "continuous"
6
+ },
7
+ {
8
+ "name": "sex",
9
+ "type": "categorical"
10
+ },
11
+ {
12
+ "name": "bmi",
13
+ "type": "continuous"
14
+ },
15
+ {
16
+ "name": "children",
17
+ "type": "continuous"
18
+ },
19
+ {
20
+ "name": "smoker",
21
+ "type": "categorical"
22
+ },
23
+ {
24
+ "name": "region",
25
+ "type": "categorical"
26
+ },
27
+ {
28
+ "name": "charges",
29
+ "type": "continuous"
30
+ }
31
+ ],
32
+ "integer_columns": []
33
+ }
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0159fa6db32a24c098240969438a6189b99a41564cffd3766b12aee069f9135
3
+ size 7202
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/const_cols.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/gen_20260501_225008.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d51af08b778e3d79298c3765603ef72648c0659f1a0516ba3d3b39fe5a66c51a
3
+ size 3661
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/input_snapshot.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "model": "bayesnet",
4
+ "inputs": {
5
+ "train_csv": {
6
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-train.csv",
7
+ "exists": true,
8
+ "size": 92191,
9
+ "sha256": "396b9d409ca21bf4a4cd329bdf5b7796aa0ae6356fa8d89b8eb669b5880b81f1"
10
+ },
11
+ "val_csv": {
12
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-val.csv",
13
+ "exists": true,
14
+ "size": 11482,
15
+ "sha256": "ee3c247d02f56e1687d03c381e13125d6a3a2a411ac7f202ba8520a4be9f1784"
16
+ },
17
+ "test_csv": {
18
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-test.csv",
19
+ "exists": true,
20
+ "size": 11559,
21
+ "sha256": "cadb9941124001b8fa7cb1ebae43b70a9ca56294f4df4d3c2f22c164c41757d4"
22
+ },
23
+ "profile_json": {
24
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/m4/m4-dataset_profile.json",
25
+ "exists": true,
26
+ "size": 3336,
27
+ "sha256": "83e2764810e4a0e8cdece3a28dbd9134b7c9df6f2e56953e46d024ad2c4e035f"
28
+ },
29
+ "contract_json": {
30
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/m4/m4-dataset_contract_v1.json",
31
+ "exists": true,
32
+ "size": 3810,
33
+ "sha256": "c23641b258629a845b164099bd0132886f8f6d0100e990494e0f92540f8987d9"
34
+ }
35
+ }
36
+ }
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "target_column": "charges",
4
+ "task_type": "regression",
5
+ "columns": [
6
+ {
7
+ "name": "age",
8
+ "role": "feature",
9
+ "semantic_type": "numeric",
10
+ "nullable": false,
11
+ "missing_tokens": [],
12
+ "parse_format": null,
13
+ "impute_strategy": "median",
14
+ "profile_stats": {
15
+ "missing_rate": 0.0,
16
+ "unique_count": 47,
17
+ "unique_ratio": 0.0212,
18
+ "example_values": [
19
+ "46",
20
+ "38",
21
+ "19",
22
+ "27",
23
+ "26"
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "name": "sex",
29
+ "role": "feature",
30
+ "semantic_type": "categorical",
31
+ "nullable": false,
32
+ "missing_tokens": [],
33
+ "parse_format": null,
34
+ "impute_strategy": "mode",
35
+ "profile_stats": {
36
+ "missing_rate": 0.0,
37
+ "unique_count": 2,
38
+ "unique_ratio": 0.000902,
39
+ "example_values": [
40
+ "female",
41
+ "male"
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "name": "bmi",
47
+ "role": "feature",
48
+ "semantic_type": "numeric",
49
+ "nullable": false,
50
+ "missing_tokens": [],
51
+ "parse_format": null,
52
+ "impute_strategy": "median",
53
+ "profile_stats": {
54
+ "missing_rate": 0.0,
55
+ "unique_count": 538,
56
+ "unique_ratio": 0.24267,
57
+ "example_values": [
58
+ "23.655",
59
+ "19.3",
60
+ "30.59",
61
+ "32.67",
62
+ "29.45"
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "name": "children",
68
+ "role": "feature",
69
+ "semantic_type": "numeric",
70
+ "nullable": false,
71
+ "missing_tokens": [],
72
+ "parse_format": null,
73
+ "impute_strategy": "median",
74
+ "profile_stats": {
75
+ "missing_rate": 0.0,
76
+ "unique_count": 6,
77
+ "unique_ratio": 0.002706,
78
+ "example_values": [
79
+ "1",
80
+ "0",
81
+ "3",
82
+ "2",
83
+ "5"
84
+ ]
85
+ }
86
+ },
87
+ {
88
+ "name": "smoker",
89
+ "role": "feature",
90
+ "semantic_type": "boolean",
91
+ "nullable": false,
92
+ "missing_tokens": [],
93
+ "parse_format": null,
94
+ "impute_strategy": "mode",
95
+ "profile_stats": {
96
+ "missing_rate": 0.0,
97
+ "unique_count": 2,
98
+ "unique_ratio": 0.000902,
99
+ "example_values": [
100
+ "yes",
101
+ "no"
102
+ ]
103
+ }
104
+ },
105
+ {
106
+ "name": "region",
107
+ "role": "feature",
108
+ "semantic_type": "categorical",
109
+ "nullable": false,
110
+ "missing_tokens": [],
111
+ "parse_format": null,
112
+ "impute_strategy": "mode",
113
+ "profile_stats": {
114
+ "missing_rate": 0.0,
115
+ "unique_count": 4,
116
+ "unique_ratio": 0.001804,
117
+ "example_values": [
118
+ "northwest",
119
+ "southwest",
120
+ "southeast",
121
+ "northeast"
122
+ ]
123
+ }
124
+ },
125
+ {
126
+ "name": "charges",
127
+ "role": "target",
128
+ "semantic_type": "numeric",
129
+ "nullable": false,
130
+ "missing_tokens": [],
131
+ "parse_format": null,
132
+ "impute_strategy": "median",
133
+ "profile_stats": {
134
+ "missing_rate": 0.0,
135
+ "unique_count": 1281,
136
+ "unique_ratio": 0.577808,
137
+ "example_values": [
138
+ "21677.28345",
139
+ "15820.699",
140
+ "1639.5631",
141
+ "2497.0383",
142
+ "2897.3235"
143
+ ]
144
+ }
145
+ }
146
+ ]
147
+ }
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "status": "pass",
4
+ "checks": [
5
+ {
6
+ "check_id": "PG001_csv_parse_ok",
7
+ "status": "pass"
8
+ },
9
+ {
10
+ "check_id": "PG002_split_header_consistent",
11
+ "status": "pass"
12
+ },
13
+ {
14
+ "check_id": "PG003_profile_header_match",
15
+ "status": "pass"
16
+ },
17
+ {
18
+ "check_id": "PG004_missing_token_normalized",
19
+ "status": "pass"
20
+ },
21
+ {
22
+ "check_id": "PG005_semantic_type_validated",
23
+ "status": "pass"
24
+ },
25
+ {
26
+ "check_id": "PG006_target_defined_and_valid",
27
+ "status": "pass"
28
+ }
29
+ ],
30
+ "target_column": "charges",
31
+ "task_type": "regression",
32
+ "input_splits": {
33
+ "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-train.csv",
34
+ "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-val.csv",
35
+ "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-test.csv"
36
+ }
37
+ }
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "target_column": "charges",
4
+ "task_type": "regression",
5
+ "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/train.csv",
6
+ "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/val.csv",
7
+ "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/test.csv",
8
+ "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/staged_features.json",
9
+ "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/public_gate/public_gate_report.json",
10
+ "column_schema": [
11
+ {
12
+ "name": "age",
13
+ "role": "feature",
14
+ "semantic_type": "numeric",
15
+ "nullable": false,
16
+ "missing_tokens": [],
17
+ "parse_format": null,
18
+ "impute_strategy": "median",
19
+ "profile_stats": {
20
+ "missing_rate": 0.0,
21
+ "unique_count": 47,
22
+ "unique_ratio": 0.0212,
23
+ "example_values": [
24
+ "46",
25
+ "38",
26
+ "19",
27
+ "27",
28
+ "26"
29
+ ]
30
+ }
31
+ },
32
+ {
33
+ "name": "sex",
34
+ "role": "feature",
35
+ "semantic_type": "categorical",
36
+ "nullable": false,
37
+ "missing_tokens": [],
38
+ "parse_format": null,
39
+ "impute_strategy": "mode",
40
+ "profile_stats": {
41
+ "missing_rate": 0.0,
42
+ "unique_count": 2,
43
+ "unique_ratio": 0.000902,
44
+ "example_values": [
45
+ "female",
46
+ "male"
47
+ ]
48
+ }
49
+ },
50
+ {
51
+ "name": "bmi",
52
+ "role": "feature",
53
+ "semantic_type": "numeric",
54
+ "nullable": false,
55
+ "missing_tokens": [],
56
+ "parse_format": null,
57
+ "impute_strategy": "median",
58
+ "profile_stats": {
59
+ "missing_rate": 0.0,
60
+ "unique_count": 538,
61
+ "unique_ratio": 0.24267,
62
+ "example_values": [
63
+ "23.655",
64
+ "19.3",
65
+ "30.59",
66
+ "32.67",
67
+ "29.45"
68
+ ]
69
+ }
70
+ },
71
+ {
72
+ "name": "children",
73
+ "role": "feature",
74
+ "semantic_type": "numeric",
75
+ "nullable": false,
76
+ "missing_tokens": [],
77
+ "parse_format": null,
78
+ "impute_strategy": "median",
79
+ "profile_stats": {
80
+ "missing_rate": 0.0,
81
+ "unique_count": 6,
82
+ "unique_ratio": 0.002706,
83
+ "example_values": [
84
+ "1",
85
+ "0",
86
+ "3",
87
+ "2",
88
+ "5"
89
+ ]
90
+ }
91
+ },
92
+ {
93
+ "name": "smoker",
94
+ "role": "feature",
95
+ "semantic_type": "boolean",
96
+ "nullable": false,
97
+ "missing_tokens": [],
98
+ "parse_format": null,
99
+ "impute_strategy": "mode",
100
+ "profile_stats": {
101
+ "missing_rate": 0.0,
102
+ "unique_count": 2,
103
+ "unique_ratio": 0.000902,
104
+ "example_values": [
105
+ "yes",
106
+ "no"
107
+ ]
108
+ }
109
+ },
110
+ {
111
+ "name": "region",
112
+ "role": "feature",
113
+ "semantic_type": "categorical",
114
+ "nullable": false,
115
+ "missing_tokens": [],
116
+ "parse_format": null,
117
+ "impute_strategy": "mode",
118
+ "profile_stats": {
119
+ "missing_rate": 0.0,
120
+ "unique_count": 4,
121
+ "unique_ratio": 0.001804,
122
+ "example_values": [
123
+ "northwest",
124
+ "southwest",
125
+ "southeast",
126
+ "northeast"
127
+ ]
128
+ }
129
+ },
130
+ {
131
+ "name": "charges",
132
+ "role": "target",
133
+ "semantic_type": "numeric",
134
+ "nullable": false,
135
+ "missing_tokens": [],
136
+ "parse_format": null,
137
+ "impute_strategy": "median",
138
+ "profile_stats": {
139
+ "missing_rate": 0.0,
140
+ "unique_count": 1281,
141
+ "unique_ratio": 0.577808,
142
+ "example_values": [
143
+ "21677.28345",
144
+ "15820.699",
145
+ "1639.5631",
146
+ "2497.0383",
147
+ "2897.3235"
148
+ ]
149
+ }
150
+ }
151
+ ]
152
+ }
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/runtime_result.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "model": "bayesnet",
4
+ "run_id": "bayesnet-m4-20260501_224959",
5
+ "public_gate_status": "pass",
6
+ "adapter_ready_status": "pass",
7
+ "train_status": "success",
8
+ "generate_status": "success",
9
+ "reason_code": null,
10
+ "reason_detail": null,
11
+ "artifacts": {
12
+ "synthetic_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet-m4-2217-20260501_225008.csv",
13
+ "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/bayesnet_model.pkl"
14
+ },
15
+ "timings": {
16
+ "train": {
17
+ "started_at": "2026-05-01T22:49:59",
18
+ "ended_at": "2026-05-01T22:50:08",
19
+ "duration_sec": 8.203
20
+ },
21
+ "generate": {
22
+ "started_at": "2026-05-01T22:50:08",
23
+ "ended_at": "2026-05-01T22:50:13",
24
+ "duration_sec": 5.386
25
+ }
26
+ }
27
+ }
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/bayesnet/adapter_report.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "adapter_ready_status": "pass",
3
+ "adapter_fail_reason_code": null,
4
+ "adapter_fail_detail": null,
5
+ "adapter_transforms_applied": [],
6
+ "model_input_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/bayesnet/model_input_manifest.json"
7
+ }
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/bayesnet/adapter_transforms_applied.json ADDED
@@ -0,0 +1 @@
 
 
1
+ []
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/bayesnet/model_input_manifest.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "model": "bayesnet",
4
+ "target_column": "charges",
5
+ "task_type": "regression",
6
+ "column_schema": [
7
+ {
8
+ "name": "age",
9
+ "role": "feature",
10
+ "semantic_type": "numeric",
11
+ "nullable": false,
12
+ "missing_tokens": [],
13
+ "parse_format": null,
14
+ "impute_strategy": "median",
15
+ "profile_stats": {
16
+ "missing_rate": 0.0,
17
+ "unique_count": 47,
18
+ "unique_ratio": 0.0212,
19
+ "example_values": [
20
+ "46",
21
+ "38",
22
+ "19",
23
+ "27",
24
+ "26"
25
+ ]
26
+ }
27
+ },
28
+ {
29
+ "name": "sex",
30
+ "role": "feature",
31
+ "semantic_type": "categorical",
32
+ "nullable": false,
33
+ "missing_tokens": [],
34
+ "parse_format": null,
35
+ "impute_strategy": "mode",
36
+ "profile_stats": {
37
+ "missing_rate": 0.0,
38
+ "unique_count": 2,
39
+ "unique_ratio": 0.000902,
40
+ "example_values": [
41
+ "female",
42
+ "male"
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "name": "bmi",
48
+ "role": "feature",
49
+ "semantic_type": "numeric",
50
+ "nullable": false,
51
+ "missing_tokens": [],
52
+ "parse_format": null,
53
+ "impute_strategy": "median",
54
+ "profile_stats": {
55
+ "missing_rate": 0.0,
56
+ "unique_count": 538,
57
+ "unique_ratio": 0.24267,
58
+ "example_values": [
59
+ "23.655",
60
+ "19.3",
61
+ "30.59",
62
+ "32.67",
63
+ "29.45"
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "name": "children",
69
+ "role": "feature",
70
+ "semantic_type": "numeric",
71
+ "nullable": false,
72
+ "missing_tokens": [],
73
+ "parse_format": null,
74
+ "impute_strategy": "median",
75
+ "profile_stats": {
76
+ "missing_rate": 0.0,
77
+ "unique_count": 6,
78
+ "unique_ratio": 0.002706,
79
+ "example_values": [
80
+ "1",
81
+ "0",
82
+ "3",
83
+ "2",
84
+ "5"
85
+ ]
86
+ }
87
+ },
88
+ {
89
+ "name": "smoker",
90
+ "role": "feature",
91
+ "semantic_type": "boolean",
92
+ "nullable": false,
93
+ "missing_tokens": [],
94
+ "parse_format": null,
95
+ "impute_strategy": "mode",
96
+ "profile_stats": {
97
+ "missing_rate": 0.0,
98
+ "unique_count": 2,
99
+ "unique_ratio": 0.000902,
100
+ "example_values": [
101
+ "yes",
102
+ "no"
103
+ ]
104
+ }
105
+ },
106
+ {
107
+ "name": "region",
108
+ "role": "feature",
109
+ "semantic_type": "categorical",
110
+ "nullable": false,
111
+ "missing_tokens": [],
112
+ "parse_format": null,
113
+ "impute_strategy": "mode",
114
+ "profile_stats": {
115
+ "missing_rate": 0.0,
116
+ "unique_count": 4,
117
+ "unique_ratio": 0.001804,
118
+ "example_values": [
119
+ "northwest",
120
+ "southwest",
121
+ "southeast",
122
+ "northeast"
123
+ ]
124
+ }
125
+ },
126
+ {
127
+ "name": "charges",
128
+ "role": "target",
129
+ "semantic_type": "numeric",
130
+ "nullable": false,
131
+ "missing_tokens": [],
132
+ "parse_format": null,
133
+ "impute_strategy": "median",
134
+ "profile_stats": {
135
+ "missing_rate": 0.0,
136
+ "unique_count": 1281,
137
+ "unique_ratio": 0.577808,
138
+ "example_values": [
139
+ "21677.28345",
140
+ "15820.699",
141
+ "1639.5631",
142
+ "2497.0383",
143
+ "2897.3235"
144
+ ]
145
+ }
146
+ }
147
+ ],
148
+ "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/public_gate/staged_input_manifest.json",
149
+ "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/train.csv",
150
+ "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/val.csv",
151
+ "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/test.csv",
152
+ "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/staged_features.json",
153
+ "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/bayesnet/bayesnet-m4-20260501_224959/public_gate/public_gate_report.json"
154
+ }
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/staged_features.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "feature_name": "age",
4
+ "data_type": "continuous",
5
+ "is_target": false
6
+ },
7
+ {
8
+ "feature_name": "sex",
9
+ "data_type": "categorical",
10
+ "is_target": false
11
+ },
12
+ {
13
+ "feature_name": "bmi",
14
+ "data_type": "continuous",
15
+ "is_target": false
16
+ },
17
+ {
18
+ "feature_name": "children",
19
+ "data_type": "continuous",
20
+ "is_target": false
21
+ },
22
+ {
23
+ "feature_name": "smoker",
24
+ "data_type": "binary",
25
+ "is_target": false
26
+ },
27
+ {
28
+ "feature_name": "region",
29
+ "data_type": "categorical",
30
+ "is_target": false
31
+ },
32
+ {
33
+ "feature_name": "charges",
34
+ "data_type": "continuous",
35
+ "is_target": true
36
+ }
37
+ ]
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c541b677fb2d45c5bc79338eeee9fd8c91484b195a0c2c546c2fbabf113b7ea
3
+ size 11298
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:614ebfac5f41d6f661aff675fa18c0f933a8d9bcc77ea71b7b2360c2f0155837
3
+ size 90069
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e55f5edbe7942ff01630de91a9c70dfbc6445eba76c7b970350364546b67c2d7
3
+ size 11218
syntheticSuccess/m4/bayesnet/bayesnet-m4-20260501_224959/train_20260501_224959.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9028b3cbf752de48d3e72989c4933fffd2ddbd9d8d9f1aac6de1d571e14847d3
3
+ size 3738
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/_fd_X_host.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2075e38ffa201390419d8ba927a30948410d3bae79c47b2d376e0991c42ba455
3
+ size 62204
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/_fd_gen.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+
2
+ import joblib, pandas as pd
3
+ m, meta = joblib.load(r'/work/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/forestdiffusion_model.joblib')
4
+ # generate:batch_size 为样本数
5
+ arr = m.generate(batch_size=int(2217))
6
+ df = pd.DataFrame(arr, columns=meta["column_names"])
7
+ df.to_csv(r'/work/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/forest-m4-2217-20260501_180613.csv', index=False)
8
+ print("saved", len(df))
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/_fd_meta_host.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"column_names": ["age", "sex", "bmi", "children", "smoker", "region", "charges"], "cat_indexes": [1, 4, 5]}
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/_fd_train.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import shutil, json
3
+ shutil.copy(r'/work/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/_fd_X_host.npy', '/tmp/fd_X.npy')
4
+ with open(r'/work/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/_fd_meta_host.json') as f:
5
+ open('/tmp/fd_meta.json','w').write(f.read())
6
+
7
+ import numpy as np, joblib, json, os
8
+ from ForestDiffusion import ForestDiffusionModel
9
+ X = np.load("/tmp/fd_X.npy")
10
+ with open("/tmp/fd_meta.json") as f:
11
+ meta = json.load(f)
12
+ cat_indexes = meta["cat_indexes"]
13
+ print(
14
+ "[ForestDiffusion] train config: "
15
+ f"rows={X.shape[0]} cols={X.shape[1]} n_t=20 "
16
+ f"n_estimators=100 duplicate_K=20 n_jobs=2 "
17
+ f"xgb_verbosity=1",
18
+ flush=True,
19
+ )
20
+ m = ForestDiffusionModel(
21
+ X, n_t=20, n_estimators=100, duplicate_K=20, n_jobs=2,
22
+ model="xgboost", max_depth=6, tree_method="hist", cat_indexes=cat_indexes,
23
+ verbosity=1,
24
+ )
25
+ joblib.dump((m, meta), "/tmp/fd_model.joblib")
26
+ print("ForestDiffusion train OK")
27
+
28
+ shutil.copy('/tmp/fd_model.joblib', r'/work/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/forestdiffusion_model.joblib')
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/forest-m4-2217-20260501_180613.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e764181c7250d24f9cfc643be0c2f147bfa49b503a7447ef06154f46469965d
3
+ size 184302
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/forestdiffusion_model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5441860108c9d0dc83f869bb3de0909d36382ceada4791c9e919556f81e9e5d
3
+ size 83389261
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/gen_20260501_180613.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1165091351583dd9b06ceed67097a7d6651aae2370bc221259adf13f6bcfede0
3
+ size 294
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/input_snapshot.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "model": "forestdiffusion",
4
+ "inputs": {
5
+ "train_csv": {
6
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-train.csv",
7
+ "exists": true,
8
+ "size": 92191,
9
+ "sha256": "396b9d409ca21bf4a4cd329bdf5b7796aa0ae6356fa8d89b8eb669b5880b81f1"
10
+ },
11
+ "val_csv": {
12
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-val.csv",
13
+ "exists": true,
14
+ "size": 11482,
15
+ "sha256": "ee3c247d02f56e1687d03c381e13125d6a3a2a411ac7f202ba8520a4be9f1784"
16
+ },
17
+ "test_csv": {
18
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-test.csv",
19
+ "exists": true,
20
+ "size": 11559,
21
+ "sha256": "cadb9941124001b8fa7cb1ebae43b70a9ca56294f4df4d3c2f22c164c41757d4"
22
+ },
23
+ "profile_json": {
24
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/m4/m4-dataset_profile.json",
25
+ "exists": true,
26
+ "size": 3336,
27
+ "sha256": "83e2764810e4a0e8cdece3a28dbd9134b7c9df6f2e56953e46d024ad2c4e035f"
28
+ },
29
+ "contract_json": {
30
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/m4/m4-dataset_contract_v1.json",
31
+ "exists": true,
32
+ "size": 3810,
33
+ "sha256": "c23641b258629a845b164099bd0132886f8f6d0100e990494e0f92540f8987d9"
34
+ }
35
+ }
36
+ }
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/models_fd/model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5441860108c9d0dc83f869bb3de0909d36382ceada4791c9e919556f81e9e5d
3
+ size 83389261
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "target_column": "charges",
4
+ "task_type": "regression",
5
+ "columns": [
6
+ {
7
+ "name": "age",
8
+ "role": "feature",
9
+ "semantic_type": "numeric",
10
+ "nullable": false,
11
+ "missing_tokens": [],
12
+ "parse_format": null,
13
+ "impute_strategy": "median",
14
+ "profile_stats": {
15
+ "missing_rate": 0.0,
16
+ "unique_count": 47,
17
+ "unique_ratio": 0.0212,
18
+ "example_values": [
19
+ "46",
20
+ "38",
21
+ "19",
22
+ "27",
23
+ "26"
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "name": "sex",
29
+ "role": "feature",
30
+ "semantic_type": "categorical",
31
+ "nullable": false,
32
+ "missing_tokens": [],
33
+ "parse_format": null,
34
+ "impute_strategy": "mode",
35
+ "profile_stats": {
36
+ "missing_rate": 0.0,
37
+ "unique_count": 2,
38
+ "unique_ratio": 0.000902,
39
+ "example_values": [
40
+ "female",
41
+ "male"
42
+ ]
43
+ }
44
+ },
45
+ {
46
+ "name": "bmi",
47
+ "role": "feature",
48
+ "semantic_type": "numeric",
49
+ "nullable": false,
50
+ "missing_tokens": [],
51
+ "parse_format": null,
52
+ "impute_strategy": "median",
53
+ "profile_stats": {
54
+ "missing_rate": 0.0,
55
+ "unique_count": 538,
56
+ "unique_ratio": 0.24267,
57
+ "example_values": [
58
+ "23.655",
59
+ "19.3",
60
+ "30.59",
61
+ "32.67",
62
+ "29.45"
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "name": "children",
68
+ "role": "feature",
69
+ "semantic_type": "numeric",
70
+ "nullable": false,
71
+ "missing_tokens": [],
72
+ "parse_format": null,
73
+ "impute_strategy": "median",
74
+ "profile_stats": {
75
+ "missing_rate": 0.0,
76
+ "unique_count": 6,
77
+ "unique_ratio": 0.002706,
78
+ "example_values": [
79
+ "1",
80
+ "0",
81
+ "3",
82
+ "2",
83
+ "5"
84
+ ]
85
+ }
86
+ },
87
+ {
88
+ "name": "smoker",
89
+ "role": "feature",
90
+ "semantic_type": "boolean",
91
+ "nullable": false,
92
+ "missing_tokens": [],
93
+ "parse_format": null,
94
+ "impute_strategy": "mode",
95
+ "profile_stats": {
96
+ "missing_rate": 0.0,
97
+ "unique_count": 2,
98
+ "unique_ratio": 0.000902,
99
+ "example_values": [
100
+ "yes",
101
+ "no"
102
+ ]
103
+ }
104
+ },
105
+ {
106
+ "name": "region",
107
+ "role": "feature",
108
+ "semantic_type": "categorical",
109
+ "nullable": false,
110
+ "missing_tokens": [],
111
+ "parse_format": null,
112
+ "impute_strategy": "mode",
113
+ "profile_stats": {
114
+ "missing_rate": 0.0,
115
+ "unique_count": 4,
116
+ "unique_ratio": 0.001804,
117
+ "example_values": [
118
+ "northwest",
119
+ "southwest",
120
+ "southeast",
121
+ "northeast"
122
+ ]
123
+ }
124
+ },
125
+ {
126
+ "name": "charges",
127
+ "role": "target",
128
+ "semantic_type": "numeric",
129
+ "nullable": false,
130
+ "missing_tokens": [],
131
+ "parse_format": null,
132
+ "impute_strategy": "median",
133
+ "profile_stats": {
134
+ "missing_rate": 0.0,
135
+ "unique_count": 1281,
136
+ "unique_ratio": 0.577808,
137
+ "example_values": [
138
+ "21677.28345",
139
+ "15820.699",
140
+ "1639.5631",
141
+ "2497.0383",
142
+ "2897.3235"
143
+ ]
144
+ }
145
+ }
146
+ ]
147
+ }
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "status": "pass",
4
+ "checks": [
5
+ {
6
+ "check_id": "PG001_csv_parse_ok",
7
+ "status": "pass"
8
+ },
9
+ {
10
+ "check_id": "PG002_split_header_consistent",
11
+ "status": "pass"
12
+ },
13
+ {
14
+ "check_id": "PG003_profile_header_match",
15
+ "status": "pass"
16
+ },
17
+ {
18
+ "check_id": "PG004_missing_token_normalized",
19
+ "status": "pass"
20
+ },
21
+ {
22
+ "check_id": "PG005_semantic_type_validated",
23
+ "status": "pass"
24
+ },
25
+ {
26
+ "check_id": "PG006_target_defined_and_valid",
27
+ "status": "pass"
28
+ }
29
+ ],
30
+ "target_column": "charges",
31
+ "task_type": "regression",
32
+ "input_splits": {
33
+ "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-train.csv",
34
+ "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-val.csv",
35
+ "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/m4/m4-test.csv"
36
+ }
37
+ }
syntheticSuccess/m4/forestdiffusion/forest-m4-20260501_180515/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "m4",
3
+ "target_column": "charges",
4
+ "task_type": "regression",
5
+ "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/staged/public/train.csv",
6
+ "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/staged/public/val.csv",
7
+ "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/staged/public/test.csv",
8
+ "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/staged/public/staged_features.json",
9
+ "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/m4/forestdiffusion/forest-m4-20260501_180515/public_gate/public_gate_report.json",
10
+ "column_schema": [
11
+ {
12
+ "name": "age",
13
+ "role": "feature",
14
+ "semantic_type": "numeric",
15
+ "nullable": false,
16
+ "missing_tokens": [],
17
+ "parse_format": null,
18
+ "impute_strategy": "median",
19
+ "profile_stats": {
20
+ "missing_rate": 0.0,
21
+ "unique_count": 47,
22
+ "unique_ratio": 0.0212,
23
+ "example_values": [
24
+ "46",
25
+ "38",
26
+ "19",
27
+ "27",
28
+ "26"
29
+ ]
30
+ }
31
+ },
32
+ {
33
+ "name": "sex",
34
+ "role": "feature",
35
+ "semantic_type": "categorical",
36
+ "nullable": false,
37
+ "missing_tokens": [],
38
+ "parse_format": null,
39
+ "impute_strategy": "mode",
40
+ "profile_stats": {
41
+ "missing_rate": 0.0,
42
+ "unique_count": 2,
43
+ "unique_ratio": 0.000902,
44
+ "example_values": [
45
+ "female",
46
+ "male"
47
+ ]
48
+ }
49
+ },
50
+ {
51
+ "name": "bmi",
52
+ "role": "feature",
53
+ "semantic_type": "numeric",
54
+ "nullable": false,
55
+ "missing_tokens": [],
56
+ "parse_format": null,
57
+ "impute_strategy": "median",
58
+ "profile_stats": {
59
+ "missing_rate": 0.0,
60
+ "unique_count": 538,
61
+ "unique_ratio": 0.24267,
62
+ "example_values": [
63
+ "23.655",
64
+ "19.3",
65
+ "30.59",
66
+ "32.67",
67
+ "29.45"
68
+ ]
69
+ }
70
+ },
71
+ {
72
+ "name": "children",
73
+ "role": "feature",
74
+ "semantic_type": "numeric",
75
+ "nullable": false,
76
+ "missing_tokens": [],
77
+ "parse_format": null,
78
+ "impute_strategy": "median",
79
+ "profile_stats": {
80
+ "missing_rate": 0.0,
81
+ "unique_count": 6,
82
+ "unique_ratio": 0.002706,
83
+ "example_values": [
84
+ "1",
85
+ "0",
86
+ "3",
87
+ "2",
88
+ "5"
89
+ ]
90
+ }
91
+ },
92
+ {
93
+ "name": "smoker",
94
+ "role": "feature",
95
+ "semantic_type": "boolean",
96
+ "nullable": false,
97
+ "missing_tokens": [],
98
+ "parse_format": null,
99
+ "impute_strategy": "mode",
100
+ "profile_stats": {
101
+ "missing_rate": 0.0,
102
+ "unique_count": 2,
103
+ "unique_ratio": 0.000902,
104
+ "example_values": [
105
+ "yes",
106
+ "no"
107
+ ]
108
+ }
109
+ },
110
+ {
111
+ "name": "region",
112
+ "role": "feature",
113
+ "semantic_type": "categorical",
114
+ "nullable": false,
115
+ "missing_tokens": [],
116
+ "parse_format": null,
117
+ "impute_strategy": "mode",
118
+ "profile_stats": {
119
+ "missing_rate": 0.0,
120
+ "unique_count": 4,
121
+ "unique_ratio": 0.001804,
122
+ "example_values": [
123
+ "northwest",
124
+ "southwest",
125
+ "southeast",
126
+ "northeast"
127
+ ]
128
+ }
129
+ },
130
+ {
131
+ "name": "charges",
132
+ "role": "target",
133
+ "semantic_type": "numeric",
134
+ "nullable": false,
135
+ "missing_tokens": [],
136
+ "parse_format": null,
137
+ "impute_strategy": "median",
138
+ "profile_stats": {
139
+ "missing_rate": 0.0,
140
+ "unique_count": 1281,
141
+ "unique_ratio": 0.577808,
142
+ "example_values": [
143
+ "21677.28345",
144
+ "15820.699",
145
+ "1639.5631",
146
+ "2497.0383",
147
+ "2897.3235"
148
+ ]
149
+ }
150
+ }
151
+ ]
152
+ }