TabQueryBench commited on
Commit
0acbba5
·
verified ·
1 Parent(s): 1b3e124

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. syntheticSuccess/c13/arf/arf-c13-20260321_161705/_arf_generate.py +6 -0
  2. syntheticSuccess/c13/arf/arf-c13-20260321_161705/_arf_train.py +19 -0
  3. syntheticSuccess/c13/arf/arf-c13-20260321_161705/arf-c13-1000-20260323_221706.csv +3 -0
  4. syntheticSuccess/c13/arf/arf-c13-20260321_161705/gen_20260323_221706.log +3 -0
  5. syntheticSuccess/c13/arf/arf-c13-20260321_161705/gen_20260330_065555.log +3 -0
  6. syntheticSuccess/c13/arf/arf-c13-20260321_161705/input_snapshot.json +3 -0
  7. syntheticSuccess/c13/arf/arf-c13-20260321_161705/public_gate/normalized_schema_snapshot.json +3 -0
  8. syntheticSuccess/c13/arf/arf-c13-20260321_161705/public_gate/public_gate_report.json +3 -0
  9. syntheticSuccess/c13/arf/arf-c13-20260321_161705/public_gate/staged_input_manifest.json +3 -0
  10. syntheticSuccess/c13/arf/arf-c13-20260321_161705/runtime_result.json +3 -0
  11. syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/arf/adapter_report.json +3 -0
  12. syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/arf/adapter_transforms_applied.json +3 -0
  13. syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/arf/model_input_manifest.json +3 -0
  14. syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/public/staged_features.json +3 -0
  15. syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/public/test.csv +3 -0
  16. syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/public/val.csv +3 -0
  17. syntheticSuccess/c13/arf/arf-c13-20260321_161705/train_20260321_161847.log +3 -0
  18. syntheticSuccess/c13/bayesnet/bayesnet-c13-20260422_060152/_bayesnet_generate.py +104 -0
  19. syntheticSuccess/c13/bayesnet/bayesnet-c13-20260422_060152/_bayesnet_train.py +118 -0
  20. syntheticSuccess/c13/bayesnet/bayesnet-c13-20260422_060152/bayesnet-c13-1966628-20260422_060711.csv +3 -0
  21. syntheticSuccess/c13/bayesnet/bayesnet-c13-20260422_060152/staged/public/train.csv +3 -0
  22. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/_ctgan_generate.py +18 -0
  23. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/ctgan-c13-1000-20260330_195710.csv +3 -0
  24. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/ctgan_metadata.json +3 -0
  25. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/gen_20260330_195710.log +0 -0
  26. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/gen_20260419_191041.log +3 -0
  27. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/input_snapshot.json +3 -0
  28. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/models_300epochs/train_20260328_053029.log +3 -0
  29. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/public_gate/normalized_schema_snapshot.json +3 -0
  30. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/public_gate/public_gate_report.json +3 -0
  31. syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/runtime_result.json +3 -0
  32. syntheticSuccess/c13/realtabformer/rtf-c13-20260424_180818/rtf_checkpoints/checkpoint-614400/model.safetensors +3 -0
  33. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/_tvae_generate.py +23 -0
  34. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/_tvae_train.py +30 -0
  35. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/gen_20260426_000517.log +3 -0
  36. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/input_snapshot.json +3 -0
  37. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/models_50epochs/train_20260425_212519.log +3 -0
  38. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/models_50epochs/tvae_50epochs.pt +3 -0
  39. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/public_gate/normalized_schema_snapshot.json +3 -0
  40. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/public_gate/public_gate_report.json +3 -0
  41. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/public_gate/staged_input_manifest.json +3 -0
  42. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/runtime_result.json +3 -0
  43. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/public/staged_features.json +3 -0
  44. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/public/test.csv +3 -0
  45. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/public/val.csv +3 -0
  46. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/tvae/adapter_report.json +3 -0
  47. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/tvae/adapter_transforms_applied.json +3 -0
  48. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/tvae/model_input_manifest.json +3 -0
  49. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/tvae-c13-1966628-20260426_000517.csv +3 -0
  50. syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/tvae_metadata.json +3 -0
syntheticSuccess/c13/arf/arf-c13-20260321_161705/_arf_generate.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import pickle
2
+ with open("/work/output-SpecializedModels/c13/arf/arf-c13-20260321_161705/arf_model.pkl", "rb") as f:
3
+ model = pickle.load(f)
4
+ syn = model.forge(n=1966628)
5
+ syn.to_csv("/work/output-SpecializedModels/c13/arf/arf-c13-20260321_161705/arf-c13-1966628-20260330_065555.csv", index=False)
6
+ print(f"[ARF] Generated 1966628 rows -> /work/output-SpecializedModels/c13/arf/arf-c13-20260321_161705/arf-c13-1966628-20260330_065555.csv")
syntheticSuccess/c13/arf/arf-c13-20260321_161705/_arf_train.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pickle
2
+ import pandas as pd
3
+ from arfpy import arf
4
+
5
+ df = pd.read_csv("/work/output-SpecializedModels/c13/arf/arf-c13-20260321_161705/staged/public/train.csv")
6
+ df = df.dropna(axis=1, how="all")
7
+ print(f"[ARF] Training on {len(df)} rows, {len(df.columns)} cols")
8
+
9
+ model = arf.arf(x=df)
10
+ if hasattr(model, "fit"):
11
+ model.fit()
12
+ elif hasattr(model, "forde"):
13
+ model.forde()
14
+ else:
15
+ raise RuntimeError("arfpy API: no fit() / forde()")
16
+
17
+ with open("/work/output-SpecializedModels/c13/arf/arf-c13-20260321_161705/arf_model.pkl", "wb") as f:
18
+ pickle.dump(model, f)
19
+ print(f"[ARF] Model saved -> /work/output-SpecializedModels/c13/arf/arf-c13-20260321_161705/arf_model.pkl")
syntheticSuccess/c13/arf/arf-c13-20260321_161705/arf-c13-1000-20260323_221706.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14e3bdccbe5f07bceb77a93c23770fe8931d4b60ed96c835404d536ae63e5ecb
3
+ size 573548
syntheticSuccess/c13/arf/arf-c13-20260321_161705/gen_20260323_221706.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8555841728a55103859ff4ac2f4d850d0bf3b7effbbb804fa8ed4670017f0d57
3
+ size 441
syntheticSuccess/c13/arf/arf-c13-20260321_161705/gen_20260330_065555.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:740ee112b54a5e3cc1140166ea48c357c89279ccfe3e4853ed9e0b2233a8fae2
3
+ size 447
syntheticSuccess/c13/arf/arf-c13-20260321_161705/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d47c283ff785909594ad6bad2ab57148778b73af2561b145834719e954dab087
3
+ size 1364
syntheticSuccess/c13/arf/arf-c13-20260321_161705/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac7cc45a45a66882898330041e21ecc9d2fa2337acbdac10fdc6bfcf29f37ecb
3
+ size 29682
syntheticSuccess/c13/arf/arf-c13-20260321_161705/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98b0bd56b40bce017ada413ff6fd6c8249d274691543a2317af77dc66423edab
3
+ size 920
syntheticSuccess/c13/arf/arf-c13-20260321_161705/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1bfb3dba7203d740c1b32373568677855b51b62f1fb1a468abeec9efbd2fa57
3
+ size 30433
syntheticSuccess/c13/arf/arf-c13-20260321_161705/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8498c1f0ea6d2ca99ebff955212455c8321a008264ca9e9eafa310edc5cced7
3
+ size 439
syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/arf/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a974c84078cf6e1172803236a17c5f3be76cb320f8a3b9827eaeaa9a7848d195
3
+ size 306
syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/arf/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
syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/arf/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edc6fb594676918894fcddea7480e6034c7208396d6057c55cee45a2b8e70e1e
3
+ size 30615
syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81bd0d2d8f45f0f84ba7aa5d987138568ed6c11284619479782ad7b5a8406868
3
+ size 6450
syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cf0d7c1dbb2038abdd41e3d786a07088e449032778f4738dc6b22d0eb191d5a
3
+ size 35888554
syntheticSuccess/c13/arf/arf-c13-20260321_161705/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:146c58ed78179cd93f44c20c808eca71eea5c5c3f8d2ae147cc44663356384fb
3
+ size 35889620
syntheticSuccess/c13/arf/arf-c13-20260321_161705/train_20260321_161847.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c698cd98fc03a92b921203afca9d075648b7832c032a227d3476ea0a4bcac7ea
3
+ size 1476
syntheticSuccess/c13/bayesnet/bayesnet-c13-20260422_060152/_bayesnet_generate.py ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-SpecializedModels/c13/bayesnet/bayesnet-c13-20260422_060152/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(1966628)
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.to_csv("/work/output-SpecializedModels/c13/bayesnet/bayesnet-c13-20260422_060152/bayesnet-c13-1966628-20260422_060711.csv", index=False)
104
+ print(f"[BayesNet] Generated {len(final)} rows (requested {num_rows}) -> /work/output-SpecializedModels/c13/bayesnet/bayesnet-c13-20260422_060152/bayesnet-c13-1966628-20260422_060711.csv")
syntheticSuccess/c13/bayesnet/bayesnet-c13-20260422_060152/_bayesnet_train.py ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-SpecializedModels/c13/bayesnet/bayesnet-c13-20260422_060152/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-SpecializedModels/c13/bayesnet/bayesnet-c13-20260422_060152/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-SpecializedModels/c13/bayesnet/bayesnet-c13-20260422_060152/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
+ if _n_plan > 35 or _n_samples > 200000:
51
+ max_bins = 5
52
+ if _n_plan > 55:
53
+ max_bins = 4
54
+ print(f"[BayesNet] max_bins={max_bins} (cols_in_df={_n_plan}, rows={_n_samples})")
55
+
56
+ for entry in colmeta["columns"]:
57
+ name = entry["name"]
58
+ if name not in df.columns:
59
+ continue
60
+ kind = entry["type"]
61
+ s = df[name]
62
+ if kind == "categorical":
63
+ uniques = sorted(s.dropna().unique(), key=lambda x: str(x))
64
+ mapping = {str(v): i for i, v in enumerate(uniques)}
65
+ inverse["categorical"][name] = [uniques[i] for i in range(len(uniques))]
66
+ enc[name] = s.map(lambda x, m=mapping: m.get(str(x), 0)).astype(int)
67
+ else:
68
+ s_num = pd.to_numeric(s, errors="coerce")
69
+ nu = int(s_num.nunique(dropna=True))
70
+ q = min(max_bins, max(2, nu))
71
+ if nu < 2:
72
+ enc[name] = np.zeros(len(s_num), dtype=int)
73
+ lo, hi = float(s_num.min()), float(s_num.max())
74
+ inverse["continuous"][name] = [lo, hi]
75
+ else:
76
+ try:
77
+ _, bins = pd.qcut(
78
+ s_num, q=q, retbins=True, duplicates="drop"
79
+ )
80
+ except Exception:
81
+ med = float(s_num.median())
82
+ s2 = s_num.fillna(med)
83
+ _, bins = pd.qcut(
84
+ s2, q=min(q, 3), retbins=True, duplicates="drop"
85
+ )
86
+ bins = np.asarray(bins, dtype=float)
87
+ lab = pd.cut(
88
+ s_num, bins=bins, labels=False, include_lowest=True
89
+ )
90
+ enc[name] = lab.fillna(0).astype(int)
91
+ inverse["continuous"][name] = bins.tolist()
92
+
93
+ print(f"[BayesNet] Training on {len(enc)} rows, {len(enc.columns)} cols (encoded)")
94
+
95
+ enc_struct = enc
96
+ if len(enc) > 25000:
97
+ enc_struct = enc.sample(n=25000, random_state=0, replace=False)
98
+ print(f"[BayesNet] TreeSearch on {len(enc_struct)} rows (subsample; full n={len(enc)})")
99
+ dag = TreeSearch(enc_struct).estimate(show_progress=False)
100
+ for col in enc.columns:
101
+ if col not in dag.nodes():
102
+ dag.add_node(col)
103
+ print(f"[BayesNet] Added isolated node to DAG: {col}")
104
+ network = DiscreteBayesianNetwork(dag)
105
+ network.fit(enc)
106
+
107
+ bundle = {
108
+ "network": network,
109
+ "inverse": inverse,
110
+ "column_order": list(enc.columns),
111
+ "full_column_order": full_column_order,
112
+ "integer_columns": list(integer_columns),
113
+ "original_dtypes": {c: str(df[c].dtype) for c in enc.columns},
114
+ "const_cols": const_cols,
115
+ }
116
+ with open("/work/output-SpecializedModels/c13/bayesnet/bayesnet-c13-20260422_060152/bayesnet_model.pkl", "wb") as _f:
117
+ pickle.dump(bundle, _f)
118
+ print(f"[BayesNet] Model saved -> /work/output-SpecializedModels/c13/bayesnet/bayesnet-c13-20260422_060152/bayesnet_model.pkl")
syntheticSuccess/c13/bayesnet/bayesnet-c13-20260422_060152/bayesnet-c13-1966628-20260422_060711.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:753333af066e3336a9c4d8d634d69792cb7f5891406b05c9968ba0a20eee75e5
3
+ size 1927100513
syntheticSuccess/c13/bayesnet/bayesnet-c13-20260422_060152/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13129dc33af4bddd2cf285ff554eec75d60242263631bd9b9bf17dad2ed3c2e6
3
+ size 287108949
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/_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-SpecializedModels/c13/ctgan/ctgan-c13-20260328_052612/models_300epochs/ctgan_300epochs.pt")
8
+ total = 1966628
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-SpecializedModels/c13/ctgan/ctgan-c13-20260328_052612/ctgan-c13-1966628-20260419_191041.csv", index=False)
18
+ print("[CTGAN] Generated", total, "rows in", len(parts), "chunks ->", "/work/output-SpecializedModels/c13/ctgan/ctgan-c13-20260328_052612/ctgan-c13-1966628-20260419_191041.csv")
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/ctgan-c13-1000-20260330_195710.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1f9062f831f5546a71dcc32dfb0f54dda685511facfa7d717d290c132ff0809
3
+ size 146539
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/ctgan_metadata.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd02348c4342453f788b42bc6936b28b421cc0195b92c6b6c60ce508ff5c7ba7
3
+ size 4564
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/gen_20260330_195710.log ADDED
File without changes
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/gen_20260419_191041.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:709b89611b0e73bff89744e09bcd08e51aa294d10b169329f0b780517902a3f3
3
+ size 554
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:240f4e35e3ae134b3647a68bf0c90bff8e5b044c760530b5be13ececbc131692
3
+ size 1366
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/models_300epochs/train_20260328_053029.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e08d9cbaac7315c19cc6ffbb125e1699401614927b4f27c0faf3272174fc6602
3
+ size 372
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac7cc45a45a66882898330041e21ecc9d2fa2337acbdac10fdc6bfcf29f37ecb
3
+ size 29682
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98b0bd56b40bce017ada413ff6fd6c8249d274691543a2317af77dc66423edab
3
+ size 920
syntheticSuccess/c13/ctgan/ctgan-c13-20260328_052612/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb339aa1669b6f3f7d0a69b3d65ef32937f54d8a91799eef1e812361ddb137a0
3
+ size 449
syntheticSuccess/c13/realtabformer/rtf-c13-20260424_180818/rtf_checkpoints/checkpoint-614400/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a81d56b78cd866b1ee691dc787821b76f4fd7187ceff7d7017538cbf66432c5c
3
+ size 174663112
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/_tvae_generate.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os, sys
2
+ sys.path.insert(0, "/work")
3
+ from src.SpecificModels.ctgan_joblib_parallel_cap import apply_parallel_cap_from_env
4
+ apply_parallel_cap_from_env()
5
+ from src.SpecificModels.ctgan_rdt_inverse_fix import apply_ctgan_inverse_fix
6
+ apply_ctgan_inverse_fix()
7
+ import pandas as pd
8
+ from ctgan.synthesizers.tvae import TVAE
9
+ os.environ.setdefault("LOKY_MAX_CPU_COUNT", "8")
10
+ os.environ.setdefault("OPENBLAS_NUM_THREADS", "8")
11
+ os.environ.setdefault("MKL_NUM_THREADS", "8")
12
+ model = TVAE.load("/work/output-SpecializedModels/c13/tvae/tvae-c13-20260425_212442/models_50epochs/tvae_50epochs.pt")
13
+ total = 1966628
14
+ chunk = min(50000, total) if total > 50000 else total
15
+ parts = []
16
+ left = total
17
+ while left > 0:
18
+ take = min(chunk, left)
19
+ parts.append(model.sample(take))
20
+ left -= take
21
+ samples = pd.concat(parts, ignore_index=True) if len(parts) > 1 else parts[0]
22
+ samples.to_csv("/work/output-SpecializedModels/c13/tvae/tvae-c13-20260425_212442/tvae-c13-1966628-20260426_000517.csv", index=False)
23
+ print(f"[TVAE] Generated {total} rows (chunks={len(parts)}) -> /work/output-SpecializedModels/c13/tvae/tvae-c13-20260425_212442/tvae-c13-1966628-20260426_000517.csv")
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/_tvae_train.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json, os, sys
2
+ sys.path.insert(0, "/work")
3
+ from src.SpecificModels.ctgan_joblib_parallel_cap import apply_parallel_cap_from_env
4
+ apply_parallel_cap_from_env()
5
+ import pandas as pd
6
+ from ctgan.data import read_csv
7
+ from ctgan.synthesizers.tvae import TVAE
8
+
9
+ # Keep transform stage parallelism bounded for stability on shared host.
10
+ os.environ.setdefault("LOKY_MAX_CPU_COUNT", "8")
11
+ os.environ.setdefault("OPENBLAS_NUM_THREADS", "8")
12
+ os.environ.setdefault("MKL_NUM_THREADS", "8")
13
+ _nj = (os.environ.get("TVAE_CTGAN_JOBTRANS_N_JOBS") or "").strip()
14
+ if _nj:
15
+ print("[TVAE] joblib Parallel cap ON, TVAE_CTGAN_JOBTRANS_N_JOBS=" + _nj)
16
+ else:
17
+ print("[TVAE] joblib Parallel cap OFF (unset TVAE_CTGAN_JOBTRANS_N_JOBS)")
18
+ print("[TVAE] LOKY_MAX_CPU_COUNT=" + str(os.environ.get("LOKY_MAX_CPU_COUNT", "")))
19
+
20
+ csv_path = "/work/output-SpecializedModels/c13/tvae/tvae-c13-20260425_212442/staged/public/train.csv"
21
+ meta_path = "/work/output-SpecializedModels/c13/tvae/tvae-c13-20260425_212442/tvae_metadata.json"
22
+ save_path = "/work/output-SpecializedModels/c13/tvae/tvae-c13-20260425_212442/models_50epochs/tvae_50epochs.pt"
23
+ epochs = 50
24
+
25
+ data, discrete_columns = read_csv(csv_path, meta_path, header=True, discrete=None)
26
+ print(f"[TVAE] Training on {len(data)} rows, {len(data.columns)} cols, epochs={epochs}")
27
+ model = TVAE(epochs=epochs, batch_size=500)
28
+ model.fit(data, discrete_columns)
29
+ model.save(save_path)
30
+ print(f"[TVAE] Model saved -> {save_path}")
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/gen_20260426_000517.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:752e38be186efda4b33fc317deedec5926f0cbac456411b5c8ea6d4226dcdd06
3
+ size 147
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1535dd7b32f78c71263c4f31db9a0cacb180c47114775faf0be5b9454823261f
3
+ size 1365
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/models_50epochs/train_20260425_212519.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e87a81e4c64d30352f1fc31d6e539a773ca7d24462deff98dbf535a1efd0c258
3
+ size 260
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/models_50epochs/tvae_50epochs.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4dbbd02930a79e06877d5d3f0607f6d91e65ee89914bac6b317c3a3d4f385e9
3
+ size 7479071
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac7cc45a45a66882898330041e21ecc9d2fa2337acbdac10fdc6bfcf29f37ecb
3
+ size 29682
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98b0bd56b40bce017ada413ff6fd6c8249d274691543a2317af77dc66423edab
3
+ size 920
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e22220fcd6fd3c109fe87b1a9cc837e4708687bd9154cf5efdda04e7cd610a4
3
+ size 30443
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66fc89749d66cf260691985815e08b9bad9ea69dbe379814f4ea0947e629042a
3
+ size 601
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81bd0d2d8f45f0f84ba7aa5d987138568ed6c11284619479782ad7b5a8406868
3
+ size 6450
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cf0d7c1dbb2038abdd41e3d786a07088e449032778f4738dc6b22d0eb191d5a
3
+ size 35888554
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:146c58ed78179cd93f44c20c808eca71eea5c5c3f8d2ae147cc44663356384fb
3
+ size 35889620
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/tvae/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0920e6474838fe705961a9b07dbfa91419039b7a213f2201b23dc93bb41d2865
3
+ size 309
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/tvae/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
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/staged/tvae/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ed38c43d93b1e3322553489db3df96469c5d6b03912924302e8ce575ad29f0f
3
+ size 30628
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/tvae-c13-1966628-20260426_000517.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78a5fd1c9a8ef302378286730f61e2bc22366f1af057f136a87fd0361c9425de
3
+ size 287128279
syntheticSuccess/c13/tvae/tvae-c13-20260425_212442/tvae_metadata.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd02348c4342453f788b42bc6936b28b421cc0195b92c6b6c60ce508ff5c7ba7
3
+ size 4564