TabQueryBench commited on
Commit
b867602
·
verified ·
1 Parent(s): 66992fa

Resume SynthData0523 main/c7 batch 2

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +31 -0
  2. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/bayesnet/adapter_transforms_applied.json +1 -0
  3. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/bayesnet/model_input_manifest.json +190 -0
  4. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/staged_features.json +47 -0
  5. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/test.csv +3 -0
  6. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/train.csv +3 -0
  7. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/val.csv +3 -0
  8. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/train_20260321_061816.log +3 -0
  9. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/_bayesnet_generate.py +105 -0
  10. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/_bayesnet_train.py +133 -0
  11. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet-c7-10368-20260429_031053.csv +3 -0
  12. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet_coltypes.json +3 -0
  13. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet_model.pkl +3 -0
  14. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/const_cols.json +3 -0
  15. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/gen_20260429_031053.log +3 -0
  16. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/input_snapshot.json +3 -0
  17. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/public_gate/normalized_schema_snapshot.json +3 -0
  18. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/public_gate/public_gate_report.json +3 -0
  19. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/public_gate/staged_input_manifest.json +3 -0
  20. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/runtime_result.json +3 -0
  21. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/bayesnet/adapter_report.json +3 -0
  22. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/bayesnet/adapter_transforms_applied.json +3 -0
  23. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/bayesnet/model_input_manifest.json +3 -0
  24. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/staged_features.json +3 -0
  25. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/test.csv +3 -0
  26. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/train.csv +3 -0
  27. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/val.csv +3 -0
  28. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/train_20260429_031038.log +3 -0
  29. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/_bayesnet_generate.py +105 -0
  30. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/_bayesnet_train.py +133 -0
  31. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet-c7-10368-20260429_031608.csv +3 -0
  32. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet_coltypes.json +41 -0
  33. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet_model.pkl +3 -0
  34. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/const_cols.json +1 -0
  35. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/gen_20260429_031608.log +3 -0
  36. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/input_snapshot.json +36 -0
  37. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/public_gate/normalized_schema_snapshot.json +183 -0
  38. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/public_gate/public_gate_report.json +37 -0
  39. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/public_gate/staged_input_manifest.json +188 -0
  40. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/runtime_result.json +15 -0
  41. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/bayesnet/adapter_report.json +7 -0
  42. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/bayesnet/adapter_transforms_applied.json +1 -0
  43. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/bayesnet/model_input_manifest.json +190 -0
  44. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/staged_features.json +47 -0
  45. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/test.csv +3 -0
  46. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/train.csv +3 -0
  47. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/val.csv +3 -0
  48. SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/train_20260429_031537.log +3 -0
  49. SynthData0523/main/c7/ctgan/ctgan-c7-20260429_032054/_ctgan_generate.py +18 -0
  50. SynthData0523/main/c7/ctgan/ctgan-c7-20260429_032054/ctgan-c7-10368-20260429_032437.csv +3 -0
.gitattributes CHANGED
@@ -5420,3 +5420,34 @@ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-10368-202
5420
  SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl filter=lfs diff=lfs merge=lfs -text
5421
  SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260321_061903.log filter=lfs diff=lfs merge=lfs -text
5422
  SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260330_065316.log filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5420
  SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl filter=lfs diff=lfs merge=lfs -text
5421
  SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260321_061903.log filter=lfs diff=lfs merge=lfs -text
5422
  SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260330_065316.log filter=lfs diff=lfs merge=lfs -text
5423
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
5424
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
5425
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
5426
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/train_20260321_061816.log filter=lfs diff=lfs merge=lfs -text
5427
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet-c7-10368-20260429_031053.csv filter=lfs diff=lfs merge=lfs -text
5428
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet_coltypes.json filter=lfs diff=lfs merge=lfs -text
5429
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet_model.pkl filter=lfs diff=lfs merge=lfs -text
5430
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/const_cols.json filter=lfs diff=lfs merge=lfs -text
5431
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/gen_20260429_031053.log filter=lfs diff=lfs merge=lfs -text
5432
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/input_snapshot.json filter=lfs diff=lfs merge=lfs -text
5433
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text
5434
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text
5435
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text
5436
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/runtime_result.json filter=lfs diff=lfs merge=lfs -text
5437
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/bayesnet/adapter_report.json filter=lfs diff=lfs merge=lfs -text
5438
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/bayesnet/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text
5439
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/bayesnet/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text
5440
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text
5441
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
5442
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
5443
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
5444
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/train_20260429_031038.log filter=lfs diff=lfs merge=lfs -text
5445
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet-c7-10368-20260429_031608.csv filter=lfs diff=lfs merge=lfs -text
5446
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet_model.pkl filter=lfs diff=lfs merge=lfs -text
5447
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/gen_20260429_031608.log filter=lfs diff=lfs merge=lfs -text
5448
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
5449
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
5450
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
5451
+ SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/train_20260429_031537.log filter=lfs diff=lfs merge=lfs -text
5452
+ SynthData0523/main/c7/ctgan/ctgan-c7-20260429_032054/ctgan-c7-10368-20260429_032437.csv filter=lfs diff=lfs merge=lfs -text
5453
+ SynthData0523/main/c7/ctgan/ctgan-c7-20260429_032054/ctgan_metadata.json filter=lfs diff=lfs merge=lfs -text
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/bayesnet/adapter_transforms_applied.json ADDED
@@ -0,0 +1 @@
 
 
1
+ []
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/bayesnet/model_input_manifest.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "c7",
3
+ "model": "bayesnet",
4
+ "target_column": "class",
5
+ "task_type": "classification",
6
+ "column_schema": [
7
+ {
8
+ "name": "parents",
9
+ "role": "feature",
10
+ "semantic_type": "categorical",
11
+ "nullable": false,
12
+ "missing_tokens": [],
13
+ "parse_format": null,
14
+ "impute_strategy": "mode",
15
+ "profile_stats": {
16
+ "missing_rate": 0.0,
17
+ "unique_count": 3,
18
+ "unique_ratio": 0.000289,
19
+ "example_values": [
20
+ "usual",
21
+ "pretentious",
22
+ "great_pret"
23
+ ]
24
+ }
25
+ },
26
+ {
27
+ "name": "has_nurs",
28
+ "role": "feature",
29
+ "semantic_type": "categorical",
30
+ "nullable": false,
31
+ "missing_tokens": [],
32
+ "parse_format": null,
33
+ "impute_strategy": "mode",
34
+ "profile_stats": {
35
+ "missing_rate": 0.0,
36
+ "unique_count": 5,
37
+ "unique_ratio": 0.000482,
38
+ "example_values": [
39
+ "very_crit",
40
+ "critical",
41
+ "improper",
42
+ "less_proper",
43
+ "proper"
44
+ ]
45
+ }
46
+ },
47
+ {
48
+ "name": "form",
49
+ "role": "feature",
50
+ "semantic_type": "categorical",
51
+ "nullable": false,
52
+ "missing_tokens": [],
53
+ "parse_format": null,
54
+ "impute_strategy": "mode",
55
+ "profile_stats": {
56
+ "missing_rate": 0.0,
57
+ "unique_count": 4,
58
+ "unique_ratio": 0.000386,
59
+ "example_values": [
60
+ "complete",
61
+ "completed",
62
+ "incomplete",
63
+ "foster"
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "name": "children",
69
+ "role": "feature",
70
+ "semantic_type": "categorical",
71
+ "nullable": false,
72
+ "missing_tokens": [],
73
+ "parse_format": null,
74
+ "impute_strategy": "mode",
75
+ "profile_stats": {
76
+ "missing_rate": 0.0,
77
+ "unique_count": 4,
78
+ "unique_ratio": 0.000386,
79
+ "example_values": [
80
+ "1",
81
+ "3",
82
+ "2",
83
+ "more"
84
+ ]
85
+ }
86
+ },
87
+ {
88
+ "name": "housing",
89
+ "role": "feature",
90
+ "semantic_type": "categorical",
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": 3,
98
+ "unique_ratio": 0.000289,
99
+ "example_values": [
100
+ "less_conv",
101
+ "convenient",
102
+ "critical"
103
+ ]
104
+ }
105
+ },
106
+ {
107
+ "name": "finance",
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": 2,
117
+ "unique_ratio": 0.000193,
118
+ "example_values": [
119
+ "convenient",
120
+ "inconv"
121
+ ]
122
+ }
123
+ },
124
+ {
125
+ "name": "social",
126
+ "role": "feature",
127
+ "semantic_type": "categorical",
128
+ "nullable": false,
129
+ "missing_tokens": [],
130
+ "parse_format": null,
131
+ "impute_strategy": "mode",
132
+ "profile_stats": {
133
+ "missing_rate": 0.0,
134
+ "unique_count": 3,
135
+ "unique_ratio": 0.000289,
136
+ "example_values": [
137
+ "slightly_prob",
138
+ "nonprob",
139
+ "problematic"
140
+ ]
141
+ }
142
+ },
143
+ {
144
+ "name": "health",
145
+ "role": "feature",
146
+ "semantic_type": "categorical",
147
+ "nullable": false,
148
+ "missing_tokens": [],
149
+ "parse_format": null,
150
+ "impute_strategy": "mode",
151
+ "profile_stats": {
152
+ "missing_rate": 0.0,
153
+ "unique_count": 3,
154
+ "unique_ratio": 0.000289,
155
+ "example_values": [
156
+ "recommended",
157
+ "priority",
158
+ "not_recom"
159
+ ]
160
+ }
161
+ },
162
+ {
163
+ "name": "class",
164
+ "role": "target",
165
+ "semantic_type": "categorical",
166
+ "nullable": false,
167
+ "missing_tokens": [],
168
+ "parse_format": null,
169
+ "impute_strategy": "mode",
170
+ "profile_stats": {
171
+ "missing_rate": 0.0,
172
+ "unique_count": 5,
173
+ "unique_ratio": 0.000482,
174
+ "example_values": [
175
+ "priority",
176
+ "spec_prior",
177
+ "not_recom",
178
+ "very_recom",
179
+ "recommend"
180
+ ]
181
+ }
182
+ }
183
+ ],
184
+ "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/public_gate/staged_input_manifest.json",
185
+ "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/train.csv",
186
+ "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/val.csv",
187
+ "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/test.csv",
188
+ "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/staged_features.json",
189
+ "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/public_gate/public_gate_report.json"
190
+ }
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/staged_features.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "feature_name": "parents",
4
+ "data_type": "categorical",
5
+ "is_target": false
6
+ },
7
+ {
8
+ "feature_name": "has_nurs",
9
+ "data_type": "categorical",
10
+ "is_target": false
11
+ },
12
+ {
13
+ "feature_name": "form",
14
+ "data_type": "categorical",
15
+ "is_target": false
16
+ },
17
+ {
18
+ "feature_name": "children",
19
+ "data_type": "categorical",
20
+ "is_target": false
21
+ },
22
+ {
23
+ "feature_name": "housing",
24
+ "data_type": "categorical",
25
+ "is_target": false
26
+ },
27
+ {
28
+ "feature_name": "finance",
29
+ "data_type": "categorical",
30
+ "is_target": false
31
+ },
32
+ {
33
+ "feature_name": "social",
34
+ "data_type": "categorical",
35
+ "is_target": false
36
+ },
37
+ {
38
+ "feature_name": "health",
39
+ "data_type": "categorical",
40
+ "is_target": false
41
+ },
42
+ {
43
+ "feature_name": "class",
44
+ "data_type": "categorical",
45
+ "is_target": true
46
+ }
47
+ ]
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2042076337d5c37c6476e6bca2bd33cb5a171450c27894534ef50ac223256058
3
+ size 106030
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b37f6b2ef5257f40bd826ac956749881f0f474362bdb56e8c5728ad629242e3a
3
+ size 847349
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eff6dec27c3740661a1ae84dea391d690dfb60342bfd5d7527b903fdd6009780
3
+ size 106192
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/train_20260321_061816.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ac5d75bda1da96923ed90d790fc4743707eff8968b962898056f8d855f54505
3
+ size 465
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/_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/c7/bayesnet/bayesnet-c7-20260429_031038/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(10368)
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/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet-c7-10368-20260429_031053.csv", index=False)
105
+ print(f"[BayesNet] Generated {len(final)} rows (requested {num_rows}) -> /work/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet-c7-10368-20260429_031053.csv")
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/_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/c7/bayesnet/bayesnet-c7-20260429_031038/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/c7/bayesnet/bayesnet-c7-20260429_031038/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/c7/bayesnet/bayesnet-c7-20260429_031038/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/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet_model.pkl", "wb") as _f:
132
+ pickle.dump(bundle, _f)
133
+ print(f"[BayesNet] Model saved -> /work/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet_model.pkl")
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet-c7-10368-20260429_031053.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ec483f732565f4c875574544cd638c236741ab73b64670c524b307e81d3762a
3
+ size 847720
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet_coltypes.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cde99b1974184c5df0d3fccfade8f11ca79c02b92a5c659dc5ba44c4aefe1ab
3
+ size 635
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/bayesnet_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:342563385d822291efea03ef34858a3fa7a9c37695d1d9aa761ad616bb14bd4f
3
+ size 5680
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/const_cols.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
3
+ size 2
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/gen_20260429_031053.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e814c1f07c97634a205072c6af264b79105ca899b88cdfec9e2a14198170e22e
3
+ size 3664
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f14cece186149619179cfb8958e71a76b2fbcabb5fa6692b86991573a8d3b9d4
3
+ size 1349
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5dd68094a5d8fc40d291695c5aa12bc01cfe8d3a62848b4bcfd82c2e88ed19c9
3
+ size 4177
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f08566bcd78a9005059bf27f5f9ecf74954e2be289410d19100e900577f651ea
3
+ size 912
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10fcaae37cee3c1cecb035645a99b986db3843874586926587633a65d1d6d835
3
+ size 4993
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a94883ffb73e985e889ae5e8791d48ba9a58afdf509bbb913053485e0feb65f2
3
+ size 616
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/bayesnet/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:906add5afc393cc78cc1424a22b842aec8297d88dc80cb495fe3c24ed7249e55
3
+ size 324
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/bayesnet/adapter_transforms_applied.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
3
+ size 2
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/bayesnet/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b718a92aed504ba5d07eb0fb848edd8d33a916bc26a39393436602dc0e3f5f7
3
+ size 5193
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07596ae0689482090a05749dba332eca061d863cde5d8bf7a83e8c2c92abb330
3
+ size 851
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2042076337d5c37c6476e6bca2bd33cb5a171450c27894534ef50ac223256058
3
+ size 106030
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b37f6b2ef5257f40bd826ac956749881f0f474362bdb56e8c5728ad629242e3a
3
+ size 847349
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eff6dec27c3740661a1ae84dea391d690dfb60342bfd5d7527b903fdd6009780
3
+ size 106192
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031038/train_20260429_031038.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4111c669d5532e874b7f7b68b102dfe387746d6756cffa5d3ad8d7cb0ea7f147
3
+ size 3741
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/_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/c7/bayesnet/bayesnet-c7-20260429_031537/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(10368)
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/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet-c7-10368-20260429_031608.csv", index=False)
105
+ print(f"[BayesNet] Generated {len(final)} rows (requested {num_rows}) -> /work/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet-c7-10368-20260429_031608.csv")
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/_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/c7/bayesnet/bayesnet-c7-20260429_031537/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/c7/bayesnet/bayesnet-c7-20260429_031537/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/c7/bayesnet/bayesnet-c7-20260429_031537/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/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet_model.pkl", "wb") as _f:
132
+ pickle.dump(bundle, _f)
133
+ print(f"[BayesNet] Model saved -> /work/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet_model.pkl")
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet-c7-10368-20260429_031608.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39ab8a39e164ff03b6176d8e2ecb2cd4bcaad07a36ece74636a690a5b5fc0128
3
+ size 848576
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet_coltypes.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "columns": [
3
+ {
4
+ "name": "parents",
5
+ "type": "categorical"
6
+ },
7
+ {
8
+ "name": "has_nurs",
9
+ "type": "categorical"
10
+ },
11
+ {
12
+ "name": "form",
13
+ "type": "categorical"
14
+ },
15
+ {
16
+ "name": "children",
17
+ "type": "categorical"
18
+ },
19
+ {
20
+ "name": "housing",
21
+ "type": "categorical"
22
+ },
23
+ {
24
+ "name": "finance",
25
+ "type": "categorical"
26
+ },
27
+ {
28
+ "name": "social",
29
+ "type": "categorical"
30
+ },
31
+ {
32
+ "name": "health",
33
+ "type": "categorical"
34
+ },
35
+ {
36
+ "name": "class",
37
+ "type": "categorical"
38
+ }
39
+ ],
40
+ "integer_columns": []
41
+ }
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:342563385d822291efea03ef34858a3fa7a9c37695d1d9aa761ad616bb14bd4f
3
+ size 5680
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/const_cols.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/gen_20260429_031608.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29ad479e9d4fb60e922c5012efa4a0a98dbd7d317e09898bbbf71679ac4fc146
3
+ size 3664
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/input_snapshot.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "c7",
3
+ "model": "bayesnet",
4
+ "inputs": {
5
+ "train_csv": {
6
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-train.csv",
7
+ "exists": true,
8
+ "size": 857718,
9
+ "sha256": "0ec97b49cecfd452f07551a63db7b812b5998a1e37101eae82255d00aa6a6243"
10
+ },
11
+ "val_csv": {
12
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-val.csv",
13
+ "exists": true,
14
+ "size": 107489,
15
+ "sha256": "4501bb2be19f7e13b7ff5e9dedd74e3dd42f2cafc8cefd5435bda61fc974a769"
16
+ },
17
+ "test_csv": {
18
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-test.csv",
19
+ "exists": true,
20
+ "size": 107327,
21
+ "sha256": "f9e808033a07feabb980addcf8c5f75111189ac2fb70993b8ad0f5ca3d5cfbae"
22
+ },
23
+ "profile_json": {
24
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c7/c7-dataset_profile.json",
25
+ "exists": true,
26
+ "size": 4014,
27
+ "sha256": "60424c615b91a26cf02d9bc1d7f91caa0ceb95bab39eb7cff6f9edea3ca0600e"
28
+ },
29
+ "contract_json": {
30
+ "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c7/c7-dataset_contract_v1.json",
31
+ "exists": true,
32
+ "size": 4759,
33
+ "sha256": "79a434a1e2553b14b9f2e98c1adfc32a71aaa0d6cd49234f3f8a5603efca4ebd"
34
+ }
35
+ }
36
+ }
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "c7",
3
+ "target_column": "class",
4
+ "task_type": "classification",
5
+ "columns": [
6
+ {
7
+ "name": "parents",
8
+ "role": "feature",
9
+ "semantic_type": "categorical",
10
+ "nullable": false,
11
+ "missing_tokens": [],
12
+ "parse_format": null,
13
+ "impute_strategy": "mode",
14
+ "profile_stats": {
15
+ "missing_rate": 0.0,
16
+ "unique_count": 3,
17
+ "unique_ratio": 0.000289,
18
+ "example_values": [
19
+ "usual",
20
+ "pretentious",
21
+ "great_pret"
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "name": "has_nurs",
27
+ "role": "feature",
28
+ "semantic_type": "categorical",
29
+ "nullable": false,
30
+ "missing_tokens": [],
31
+ "parse_format": null,
32
+ "impute_strategy": "mode",
33
+ "profile_stats": {
34
+ "missing_rate": 0.0,
35
+ "unique_count": 5,
36
+ "unique_ratio": 0.000482,
37
+ "example_values": [
38
+ "very_crit",
39
+ "critical",
40
+ "improper",
41
+ "less_proper",
42
+ "proper"
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "name": "form",
48
+ "role": "feature",
49
+ "semantic_type": "categorical",
50
+ "nullable": false,
51
+ "missing_tokens": [],
52
+ "parse_format": null,
53
+ "impute_strategy": "mode",
54
+ "profile_stats": {
55
+ "missing_rate": 0.0,
56
+ "unique_count": 4,
57
+ "unique_ratio": 0.000386,
58
+ "example_values": [
59
+ "complete",
60
+ "completed",
61
+ "incomplete",
62
+ "foster"
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "name": "children",
68
+ "role": "feature",
69
+ "semantic_type": "categorical",
70
+ "nullable": false,
71
+ "missing_tokens": [],
72
+ "parse_format": null,
73
+ "impute_strategy": "mode",
74
+ "profile_stats": {
75
+ "missing_rate": 0.0,
76
+ "unique_count": 4,
77
+ "unique_ratio": 0.000386,
78
+ "example_values": [
79
+ "1",
80
+ "3",
81
+ "2",
82
+ "more"
83
+ ]
84
+ }
85
+ },
86
+ {
87
+ "name": "housing",
88
+ "role": "feature",
89
+ "semantic_type": "categorical",
90
+ "nullable": false,
91
+ "missing_tokens": [],
92
+ "parse_format": null,
93
+ "impute_strategy": "mode",
94
+ "profile_stats": {
95
+ "missing_rate": 0.0,
96
+ "unique_count": 3,
97
+ "unique_ratio": 0.000289,
98
+ "example_values": [
99
+ "less_conv",
100
+ "convenient",
101
+ "critical"
102
+ ]
103
+ }
104
+ },
105
+ {
106
+ "name": "finance",
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": 2,
116
+ "unique_ratio": 0.000193,
117
+ "example_values": [
118
+ "convenient",
119
+ "inconv"
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ "name": "social",
125
+ "role": "feature",
126
+ "semantic_type": "categorical",
127
+ "nullable": false,
128
+ "missing_tokens": [],
129
+ "parse_format": null,
130
+ "impute_strategy": "mode",
131
+ "profile_stats": {
132
+ "missing_rate": 0.0,
133
+ "unique_count": 3,
134
+ "unique_ratio": 0.000289,
135
+ "example_values": [
136
+ "slightly_prob",
137
+ "nonprob",
138
+ "problematic"
139
+ ]
140
+ }
141
+ },
142
+ {
143
+ "name": "health",
144
+ "role": "feature",
145
+ "semantic_type": "categorical",
146
+ "nullable": false,
147
+ "missing_tokens": [],
148
+ "parse_format": null,
149
+ "impute_strategy": "mode",
150
+ "profile_stats": {
151
+ "missing_rate": 0.0,
152
+ "unique_count": 3,
153
+ "unique_ratio": 0.000289,
154
+ "example_values": [
155
+ "recommended",
156
+ "priority",
157
+ "not_recom"
158
+ ]
159
+ }
160
+ },
161
+ {
162
+ "name": "class",
163
+ "role": "target",
164
+ "semantic_type": "categorical",
165
+ "nullable": false,
166
+ "missing_tokens": [],
167
+ "parse_format": null,
168
+ "impute_strategy": "mode",
169
+ "profile_stats": {
170
+ "missing_rate": 0.0,
171
+ "unique_count": 5,
172
+ "unique_ratio": 0.000482,
173
+ "example_values": [
174
+ "priority",
175
+ "spec_prior",
176
+ "not_recom",
177
+ "very_recom",
178
+ "recommend"
179
+ ]
180
+ }
181
+ }
182
+ ]
183
+ }
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "c7",
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": "class",
31
+ "task_type": "classification",
32
+ "input_splits": {
33
+ "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-train.csv",
34
+ "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-val.csv",
35
+ "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-test.csv"
36
+ }
37
+ }
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "c7",
3
+ "target_column": "class",
4
+ "task_type": "classification",
5
+ "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/train.csv",
6
+ "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/val.csv",
7
+ "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/test.csv",
8
+ "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/staged_features.json",
9
+ "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/public_gate/public_gate_report.json",
10
+ "column_schema": [
11
+ {
12
+ "name": "parents",
13
+ "role": "feature",
14
+ "semantic_type": "categorical",
15
+ "nullable": false,
16
+ "missing_tokens": [],
17
+ "parse_format": null,
18
+ "impute_strategy": "mode",
19
+ "profile_stats": {
20
+ "missing_rate": 0.0,
21
+ "unique_count": 3,
22
+ "unique_ratio": 0.000289,
23
+ "example_values": [
24
+ "usual",
25
+ "pretentious",
26
+ "great_pret"
27
+ ]
28
+ }
29
+ },
30
+ {
31
+ "name": "has_nurs",
32
+ "role": "feature",
33
+ "semantic_type": "categorical",
34
+ "nullable": false,
35
+ "missing_tokens": [],
36
+ "parse_format": null,
37
+ "impute_strategy": "mode",
38
+ "profile_stats": {
39
+ "missing_rate": 0.0,
40
+ "unique_count": 5,
41
+ "unique_ratio": 0.000482,
42
+ "example_values": [
43
+ "very_crit",
44
+ "critical",
45
+ "improper",
46
+ "less_proper",
47
+ "proper"
48
+ ]
49
+ }
50
+ },
51
+ {
52
+ "name": "form",
53
+ "role": "feature",
54
+ "semantic_type": "categorical",
55
+ "nullable": false,
56
+ "missing_tokens": [],
57
+ "parse_format": null,
58
+ "impute_strategy": "mode",
59
+ "profile_stats": {
60
+ "missing_rate": 0.0,
61
+ "unique_count": 4,
62
+ "unique_ratio": 0.000386,
63
+ "example_values": [
64
+ "complete",
65
+ "completed",
66
+ "incomplete",
67
+ "foster"
68
+ ]
69
+ }
70
+ },
71
+ {
72
+ "name": "children",
73
+ "role": "feature",
74
+ "semantic_type": "categorical",
75
+ "nullable": false,
76
+ "missing_tokens": [],
77
+ "parse_format": null,
78
+ "impute_strategy": "mode",
79
+ "profile_stats": {
80
+ "missing_rate": 0.0,
81
+ "unique_count": 4,
82
+ "unique_ratio": 0.000386,
83
+ "example_values": [
84
+ "1",
85
+ "3",
86
+ "2",
87
+ "more"
88
+ ]
89
+ }
90
+ },
91
+ {
92
+ "name": "housing",
93
+ "role": "feature",
94
+ "semantic_type": "categorical",
95
+ "nullable": false,
96
+ "missing_tokens": [],
97
+ "parse_format": null,
98
+ "impute_strategy": "mode",
99
+ "profile_stats": {
100
+ "missing_rate": 0.0,
101
+ "unique_count": 3,
102
+ "unique_ratio": 0.000289,
103
+ "example_values": [
104
+ "less_conv",
105
+ "convenient",
106
+ "critical"
107
+ ]
108
+ }
109
+ },
110
+ {
111
+ "name": "finance",
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": 2,
121
+ "unique_ratio": 0.000193,
122
+ "example_values": [
123
+ "convenient",
124
+ "inconv"
125
+ ]
126
+ }
127
+ },
128
+ {
129
+ "name": "social",
130
+ "role": "feature",
131
+ "semantic_type": "categorical",
132
+ "nullable": false,
133
+ "missing_tokens": [],
134
+ "parse_format": null,
135
+ "impute_strategy": "mode",
136
+ "profile_stats": {
137
+ "missing_rate": 0.0,
138
+ "unique_count": 3,
139
+ "unique_ratio": 0.000289,
140
+ "example_values": [
141
+ "slightly_prob",
142
+ "nonprob",
143
+ "problematic"
144
+ ]
145
+ }
146
+ },
147
+ {
148
+ "name": "health",
149
+ "role": "feature",
150
+ "semantic_type": "categorical",
151
+ "nullable": false,
152
+ "missing_tokens": [],
153
+ "parse_format": null,
154
+ "impute_strategy": "mode",
155
+ "profile_stats": {
156
+ "missing_rate": 0.0,
157
+ "unique_count": 3,
158
+ "unique_ratio": 0.000289,
159
+ "example_values": [
160
+ "recommended",
161
+ "priority",
162
+ "not_recom"
163
+ ]
164
+ }
165
+ },
166
+ {
167
+ "name": "class",
168
+ "role": "target",
169
+ "semantic_type": "categorical",
170
+ "nullable": false,
171
+ "missing_tokens": [],
172
+ "parse_format": null,
173
+ "impute_strategy": "mode",
174
+ "profile_stats": {
175
+ "missing_rate": 0.0,
176
+ "unique_count": 5,
177
+ "unique_ratio": 0.000482,
178
+ "example_values": [
179
+ "priority",
180
+ "spec_prior",
181
+ "not_recom",
182
+ "very_recom",
183
+ "recommend"
184
+ ]
185
+ }
186
+ }
187
+ ]
188
+ }
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/runtime_result.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "c7",
3
+ "model": "bayesnet",
4
+ "run_id": "bayesnet-c7-20260429_031537",
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/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet-c7-10368-20260429_031608.csv",
13
+ "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/bayesnet_model.pkl"
14
+ }
15
+ }
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/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/c7/bayesnet/bayesnet-c7-20260429_031537/staged/bayesnet/model_input_manifest.json"
7
+ }
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/bayesnet/adapter_transforms_applied.json ADDED
@@ -0,0 +1 @@
 
 
1
+ []
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/bayesnet/model_input_manifest.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "c7",
3
+ "model": "bayesnet",
4
+ "target_column": "class",
5
+ "task_type": "classification",
6
+ "column_schema": [
7
+ {
8
+ "name": "parents",
9
+ "role": "feature",
10
+ "semantic_type": "categorical",
11
+ "nullable": false,
12
+ "missing_tokens": [],
13
+ "parse_format": null,
14
+ "impute_strategy": "mode",
15
+ "profile_stats": {
16
+ "missing_rate": 0.0,
17
+ "unique_count": 3,
18
+ "unique_ratio": 0.000289,
19
+ "example_values": [
20
+ "usual",
21
+ "pretentious",
22
+ "great_pret"
23
+ ]
24
+ }
25
+ },
26
+ {
27
+ "name": "has_nurs",
28
+ "role": "feature",
29
+ "semantic_type": "categorical",
30
+ "nullable": false,
31
+ "missing_tokens": [],
32
+ "parse_format": null,
33
+ "impute_strategy": "mode",
34
+ "profile_stats": {
35
+ "missing_rate": 0.0,
36
+ "unique_count": 5,
37
+ "unique_ratio": 0.000482,
38
+ "example_values": [
39
+ "very_crit",
40
+ "critical",
41
+ "improper",
42
+ "less_proper",
43
+ "proper"
44
+ ]
45
+ }
46
+ },
47
+ {
48
+ "name": "form",
49
+ "role": "feature",
50
+ "semantic_type": "categorical",
51
+ "nullable": false,
52
+ "missing_tokens": [],
53
+ "parse_format": null,
54
+ "impute_strategy": "mode",
55
+ "profile_stats": {
56
+ "missing_rate": 0.0,
57
+ "unique_count": 4,
58
+ "unique_ratio": 0.000386,
59
+ "example_values": [
60
+ "complete",
61
+ "completed",
62
+ "incomplete",
63
+ "foster"
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "name": "children",
69
+ "role": "feature",
70
+ "semantic_type": "categorical",
71
+ "nullable": false,
72
+ "missing_tokens": [],
73
+ "parse_format": null,
74
+ "impute_strategy": "mode",
75
+ "profile_stats": {
76
+ "missing_rate": 0.0,
77
+ "unique_count": 4,
78
+ "unique_ratio": 0.000386,
79
+ "example_values": [
80
+ "1",
81
+ "3",
82
+ "2",
83
+ "more"
84
+ ]
85
+ }
86
+ },
87
+ {
88
+ "name": "housing",
89
+ "role": "feature",
90
+ "semantic_type": "categorical",
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": 3,
98
+ "unique_ratio": 0.000289,
99
+ "example_values": [
100
+ "less_conv",
101
+ "convenient",
102
+ "critical"
103
+ ]
104
+ }
105
+ },
106
+ {
107
+ "name": "finance",
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": 2,
117
+ "unique_ratio": 0.000193,
118
+ "example_values": [
119
+ "convenient",
120
+ "inconv"
121
+ ]
122
+ }
123
+ },
124
+ {
125
+ "name": "social",
126
+ "role": "feature",
127
+ "semantic_type": "categorical",
128
+ "nullable": false,
129
+ "missing_tokens": [],
130
+ "parse_format": null,
131
+ "impute_strategy": "mode",
132
+ "profile_stats": {
133
+ "missing_rate": 0.0,
134
+ "unique_count": 3,
135
+ "unique_ratio": 0.000289,
136
+ "example_values": [
137
+ "slightly_prob",
138
+ "nonprob",
139
+ "problematic"
140
+ ]
141
+ }
142
+ },
143
+ {
144
+ "name": "health",
145
+ "role": "feature",
146
+ "semantic_type": "categorical",
147
+ "nullable": false,
148
+ "missing_tokens": [],
149
+ "parse_format": null,
150
+ "impute_strategy": "mode",
151
+ "profile_stats": {
152
+ "missing_rate": 0.0,
153
+ "unique_count": 3,
154
+ "unique_ratio": 0.000289,
155
+ "example_values": [
156
+ "recommended",
157
+ "priority",
158
+ "not_recom"
159
+ ]
160
+ }
161
+ },
162
+ {
163
+ "name": "class",
164
+ "role": "target",
165
+ "semantic_type": "categorical",
166
+ "nullable": false,
167
+ "missing_tokens": [],
168
+ "parse_format": null,
169
+ "impute_strategy": "mode",
170
+ "profile_stats": {
171
+ "missing_rate": 0.0,
172
+ "unique_count": 5,
173
+ "unique_ratio": 0.000482,
174
+ "example_values": [
175
+ "priority",
176
+ "spec_prior",
177
+ "not_recom",
178
+ "very_recom",
179
+ "recommend"
180
+ ]
181
+ }
182
+ }
183
+ ],
184
+ "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/public_gate/staged_input_manifest.json",
185
+ "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/train.csv",
186
+ "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/val.csv",
187
+ "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/test.csv",
188
+ "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/staged_features.json",
189
+ "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/bayesnet/bayesnet-c7-20260429_031537/public_gate/public_gate_report.json"
190
+ }
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/staged_features.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "feature_name": "parents",
4
+ "data_type": "categorical",
5
+ "is_target": false
6
+ },
7
+ {
8
+ "feature_name": "has_nurs",
9
+ "data_type": "categorical",
10
+ "is_target": false
11
+ },
12
+ {
13
+ "feature_name": "form",
14
+ "data_type": "categorical",
15
+ "is_target": false
16
+ },
17
+ {
18
+ "feature_name": "children",
19
+ "data_type": "categorical",
20
+ "is_target": false
21
+ },
22
+ {
23
+ "feature_name": "housing",
24
+ "data_type": "categorical",
25
+ "is_target": false
26
+ },
27
+ {
28
+ "feature_name": "finance",
29
+ "data_type": "categorical",
30
+ "is_target": false
31
+ },
32
+ {
33
+ "feature_name": "social",
34
+ "data_type": "categorical",
35
+ "is_target": false
36
+ },
37
+ {
38
+ "feature_name": "health",
39
+ "data_type": "categorical",
40
+ "is_target": false
41
+ },
42
+ {
43
+ "feature_name": "class",
44
+ "data_type": "categorical",
45
+ "is_target": true
46
+ }
47
+ ]
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2042076337d5c37c6476e6bca2bd33cb5a171450c27894534ef50ac223256058
3
+ size 106030
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b37f6b2ef5257f40bd826ac956749881f0f474362bdb56e8c5728ad629242e3a
3
+ size 847349
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eff6dec27c3740661a1ae84dea391d690dfb60342bfd5d7527b903fdd6009780
3
+ size 106192
SynthData0523/main/c7/bayesnet/bayesnet-c7-20260429_031537/train_20260429_031537.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1788e94eba6e542f6afdf6c0054a1d521deae3fba20e72212282c5bd06f20d84
3
+ size 3741
SynthData0523/main/c7/ctgan/ctgan-c7-20260429_032054/_ctgan_generate.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ sys.path.insert(0, "/work")
3
+ from src.SpecificModels.ctgan_rdt_inverse_fix import apply_ctgan_inverse_fix
4
+ apply_ctgan_inverse_fix()
5
+ import pandas as pd
6
+ from ctgan.synthesizers.ctgan import CTGAN
7
+ model = CTGAN.load("/work/output-Benchmark-trainonly-v1/c7/ctgan/ctgan-c7-20260429_032054/models_300epochs/ctgan_300epochs.pt")
8
+ total = 10368
9
+ chunk = min(50000, total) if total > 50000 else total
10
+ parts = []
11
+ left = total
12
+ while left > 0:
13
+ take = min(chunk, left)
14
+ parts.append(model.sample(take))
15
+ left -= take
16
+ sampled = pd.concat(parts, ignore_index=True) if len(parts) > 1 else parts[0]
17
+ sampled.to_csv("/work/output-Benchmark-trainonly-v1/c7/ctgan/ctgan-c7-20260429_032054/ctgan-c7-10368-20260429_032437.csv", index=False)
18
+ print("[CTGAN] Generated", total, "rows in", len(parts), "chunks ->", "/work/output-Benchmark-trainonly-v1/c7/ctgan/ctgan-c7-20260429_032054/ctgan-c7-10368-20260429_032437.csv")
SynthData0523/main/c7/ctgan/ctgan-c7-20260429_032054/ctgan-c7-10368-20260429_032437.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6292ae1576f8682712eb05a628de61384dab5cf211e620852f27aaea02e87599
3
+ size 840588