TabQueryBench commited on
Commit
7ca8570
·
verified ·
1 Parent(s): 994ab16

Add files using upload-large-folder tool

Browse files
Files changed (30) hide show
  1. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/_tabddpm_sample_r0.py +66 -0
  2. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/_tabddpm_train.py +32 -0
  3. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/config.toml +3 -0
  4. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/config_sample_20260501_053541_r0.toml +3 -0
  5. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/data/X_cat_train.npy +3 -0
  6. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/data/info.json +3 -0
  7. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/data/y_train.npy +3 -0
  8. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/gen_20260501_053541_r0.log +3 -0
  9. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/input_snapshot.json +3 -0
  10. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/X_cat_train.npy +3 -0
  11. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/X_cat_unnorm.npy +3 -0
  12. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/config.toml +3 -0
  13. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/info.json +3 -0
  14. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/loss.csv +3 -0
  15. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/model.pt +3 -0
  16. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/model_ema.pt +3 -0
  17. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/y_train.npy +3 -0
  18. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/normalized_schema_snapshot.json +3 -0
  19. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/public_gate_report.json +3 -0
  20. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/staged_input_manifest.json +3 -0
  21. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/runtime_result.json +3 -0
  22. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/staged_features.json +3 -0
  23. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/test.csv +3 -0
  24. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/train.csv +3 -0
  25. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/val.csv +3 -0
  26. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_report.json +3 -0
  27. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_transforms_applied.json +3 -0
  28. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/model_input_manifest.json +3 -0
  29. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/tabddpm-c2-1382-20260501_053541.csv +3 -0
  30. syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/train_20260501_053445.log +3 -0
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/_tabddpm_sample_r0.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os, sys, subprocess, json
2
+ import numpy as np
3
+ import pandas as pd
4
+
5
+ tabddpm_root = "/workspace/tabddpm/code"
6
+ assert os.path.isdir(tabddpm_root), f"TabDDPM source not mounted: {tabddpm_root}"
7
+ env = os.environ.copy()
8
+ env["PYTHONPATH"] = tabddpm_root + (os.pathsep + env.get("PYTHONPATH", ""))
9
+
10
+ # Reuse the compat wrapper (patches collections.Sequence for skorch)
11
+ wrapper = os.path.join(tabddpm_root, "_compat_run.py")
12
+ if not os.path.exists(wrapper):
13
+ with open(wrapper, "w") as f:
14
+ f.write(
15
+ "import collections, collections.abc\n"
16
+ "for _a in ('Sequence','MutableSequence','MutableMapping','Mapping',"
17
+ "'MutableSet','Set','Callable','Iterable','Iterator'):\n"
18
+ " if not hasattr(collections, _a): setattr(collections, _a, getattr(collections.abc, _a, None))\n"
19
+ "import sys, runpy\n"
20
+ "sys.argv = sys.argv[1:]\n"
21
+ "runpy.run_path(sys.argv[0], run_name='__main__')\n"
22
+ )
23
+
24
+ print(f"[TabDDPM] Sampling 1382 rows")
25
+ ret = subprocess.run(
26
+ [sys.executable, wrapper, "scripts/pipeline.py",
27
+ "--config", "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260501_053445/config_sample_20260501_053541_r0.toml",
28
+ "--sample"],
29
+ cwd=tabddpm_root,
30
+ env=env
31
+ )
32
+ if ret.returncode != 0:
33
+ sys.exit(ret.returncode)
34
+
35
+ # 将 .npy 输出转为 CSV(npy 在 TabDDPM 的 parent_dir,即 npy_dir)
36
+ info_path = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260501_053445/data/info.json"
37
+ with open(info_path) as f:
38
+ info = json.load(f)
39
+
40
+ output_dir = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260501_053445/output"
41
+ col_names = info.get("column_names", [])
42
+
43
+ parts = []
44
+ x_num_path = os.path.join(output_dir, "X_num_train.npy")
45
+ x_cat_path = os.path.join(output_dir, "X_cat_train.npy")
46
+ y_path = os.path.join(output_dir, "y_train.npy")
47
+
48
+ if os.path.exists(x_num_path):
49
+ parts.append(np.load(x_num_path, allow_pickle=True))
50
+ if os.path.exists(x_cat_path):
51
+ parts.append(np.load(x_cat_path, allow_pickle=True).astype(float))
52
+ if os.path.exists(y_path):
53
+ y = np.load(y_path, allow_pickle=True)
54
+ parts.append(y.reshape(-1, 1) if y.ndim == 1 else y)
55
+
56
+ if parts:
57
+ combined = np.concatenate(parts, axis=1)
58
+ if col_names and len(col_names) == combined.shape[1]:
59
+ df = pd.DataFrame(combined, columns=col_names)
60
+ else:
61
+ df = pd.DataFrame(combined)
62
+ df.to_csv("/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260501_053445/tabddpm-c2-1382-20260501_053541.csv", index=False)
63
+ print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260501_053445/tabddpm-c2-1382-20260501_053541.csv")
64
+ else:
65
+ print("[TabDDPM] WARNING: No output .npy files found")
66
+ sys.exit(1)
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/_tabddpm_train.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os, sys, subprocess
2
+
3
+ tabddpm_root = "/workspace/tabddpm/code"
4
+ assert os.path.isdir(tabddpm_root), f"TabDDPM source not mounted: {tabddpm_root}"
5
+ env = os.environ.copy()
6
+ env["PYTHONPATH"] = tabddpm_root + (os.pathsep + env.get("PYTHONPATH", ""))
7
+
8
+ # Write a wrapper that patches collections.Sequence (removed in Python 3.10+)
9
+ # before running pipeline.py - needed because skorch uses old API
10
+ wrapper = os.path.join(tabddpm_root, "_compat_run.py")
11
+ with open(wrapper, "w") as f:
12
+ f.write(
13
+ "import collections, collections.abc\n"
14
+ "for _a in ('Sequence','MutableSequence','MutableMapping','Mapping',"
15
+ "'MutableSet','Set','Callable','Iterable','Iterator'):\n"
16
+ " if not hasattr(collections, _a): setattr(collections, _a, getattr(collections.abc, _a, None))\n"
17
+ "import sys, runpy\n"
18
+ "sys.argv = sys.argv[1:]\n"
19
+ "runpy.run_path(sys.argv[0], run_name='__main__')\n"
20
+ )
21
+
22
+ print(f"[TabDDPM] Training, config=/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260501_053445/config.toml")
23
+ ret = subprocess.run(
24
+ [sys.executable, wrapper, "scripts/pipeline.py",
25
+ "--config", "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260501_053445/config.toml",
26
+ "--train"],
27
+ cwd=tabddpm_root,
28
+ env=env
29
+ )
30
+ if ret.returncode != 0:
31
+ sys.exit(ret.returncode)
32
+ print("[TabDDPM] Training complete")
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b5fc8076d9158b6e2048252f652b6295de438e5d107a68216231fcb3257b984
3
+ size 768
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/config_sample_20260501_053541_r0.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da3b1a7236b117539a289f041943d441ea6f5a97b9d0abe8e535ba1c9144726f
3
+ size 768
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/data/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24d2203601ba060728920e754747e5a1dc3955a1b5775e147382fee4f1812542
3
+ size 66464
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/data/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73797d97d746064733c329d31f63f3ad2b5b9fe6e75db4abc21530a62d4a9d74
3
+ size 391
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/data/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f8eb0b25043331a30fde5439f063eed59e7a76f45d7d102b9b4fbcd16b551b4
3
+ size 11184
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/gen_20260501_053541_r0.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7213a586526de04ecda26ec75cada4459cebf641c8481eb89462372a8ef761d
3
+ size 42462
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52c75a0b635ff907a8032c10b0b48af37ab777db2eb85f1974c205cb0fbba475
3
+ size 1343
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3e794630e03fa6aa423cbcc412303cd342a9e772682c127caa3988778103dbd
3
+ size 16885
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/X_cat_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7aaee2a9171fa9fe9f0027724f0e45a2e2a3b49c592f5c6c98b509a48b361563
3
+ size 66464
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da3b1a7236b117539a289f041943d441ea6f5a97b9d0abe8e535ba1c9144726f
3
+ size 768
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73797d97d746064733c329d31f63f3ad2b5b9fe6e75db4abc21530a62d4a9d74
3
+ size 391
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/loss.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f6f64aab8041c39f33c6e3bb32a0964b75a4692062c9eec03a84cae0cfb47ac
3
+ size 1249
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db4f8cce94f8d9428f68d597138bdd3d357d268f5da7b268c89fab510fce817a
3
+ size 566934
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/model_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:285d1dffd7456b5ccf89321bfd98304d0594f85982aee4729e3175ffbffa68aa
3
+ size 567778
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/output/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58b1a722d369027a22bed702e3539c6fefa976741570c4c0a2f8546e2978c3d7
3
+ size 11184
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a63ea2091eccf0145444f670415e7201dbdd052bc2ddabdc4241f6f16bdcf0a0
3
+ size 3153
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdc8c14ffce6055ca726f7949b2900c4ba619b670f8fc63c61328c24e4c46c66
3
+ size 912
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:156f740ae668bcb72462d2df63e51b375d23f6a61426c25efcd6987947b42ff4
3
+ size 3959
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6ad96d5e45234f6b774a7d9500514e63c61ad3addb12db870048f6f58dbb4e9
3
+ size 881
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37511511f1d7cb0e004f9d7305c900644ebefe672c9a1a418c1f29b36786fabd
3
+ size 659
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b48114a7d0bc5bd9a07920f903c8d4aba8bf98bf2a66a050da03588b0245ca73
3
+ size 5273
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4aed00c2c2b3f88a55a7ebff31b2e1b5e0e32fb0a7267e0b9d2779cd23e434dd
3
+ size 41565
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26e90c1170a57a14c05832ac88027722b1f3848f9662c7c09ef7c93dcba4cc01
3
+ size 5176
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f3886fed1c3c45d970950b1ff76bda3eadef540d92ca3882f9a95b8bcb5552e
3
+ size 321
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/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/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d086bdd555e6b8eae6ccd98c347004f596a1f6a0326e5332fd20dd80a2607e1
3
+ size 4156
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/tabddpm-c2-1382-20260501_053541.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d1ae5fa4380a0a8879510e49d09625f4653e2ac3b5bb4f8fe08cd7a776dc532
3
+ size 38745
syntheticSuccess/c2/tabddpm/tabddpm-c2-20260501_053445/train_20260501_053445.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc81c3da56b1deeaa60556e8f6cec9fd97ce7200a6cc83fda2acef2f37cba648
3
+ size 1076