TabQueryBench commited on
Commit
dc91333
·
verified ·
1 Parent(s): 77b8291

Add files using upload-large-folder tool

Browse files
Files changed (33) hide show
  1. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/_tabddpm_sample_r0.py +66 -0
  2. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/_tabddpm_train.py +32 -0
  3. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/config.toml +3 -0
  4. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/config_sample_20260504_065452_r0.toml +3 -0
  5. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/data/X_cat_train.npy +3 -0
  6. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/data/X_num_train.npy +3 -0
  7. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/data/info.json +3 -0
  8. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/data/y_train.npy +3 -0
  9. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/gen_20260504_065452_r0.log +3 -0
  10. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/input_snapshot.json +3 -0
  11. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/X_cat_train.npy +3 -0
  12. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/X_cat_unnorm.npy +3 -0
  13. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/X_num_train.npy +3 -0
  14. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/X_num_unnorm.npy +3 -0
  15. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/config.toml +3 -0
  16. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/info.json +3 -0
  17. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/loss.csv +3 -0
  18. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/model.pt +3 -0
  19. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/model_ema.pt +3 -0
  20. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/y_train.npy +3 -0
  21. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/public_gate/normalized_schema_snapshot.json +3 -0
  22. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/public_gate/public_gate_report.json +3 -0
  23. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/public_gate/staged_input_manifest.json +3 -0
  24. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/runtime_result.json +3 -0
  25. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/public/staged_features.json +3 -0
  26. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/public/test.csv +3 -0
  27. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/public/train.csv +3 -0
  28. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/public/val.csv +3 -0
  29. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/tabddpm/adapter_report.json +3 -0
  30. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/tabddpm/adapter_transforms_applied.json +3 -0
  31. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/tabddpm/model_input_manifest.json +3 -0
  32. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/tabddpm-c14-64-20260504_065452.csv +3 -0
  33. syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/train_20260504_065434.log +3 -0
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/_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 64 rows")
25
+ ret = subprocess.run(
26
+ [sys.executable, wrapper, "scripts/pipeline.py",
27
+ "--config", "/work/output-Benchmark-trainonly-v1/c14/tabddpm/tabddpm-c14-20260504_065427/config_sample_20260504_065452_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/c14/tabddpm/tabddpm-c14-20260504_065427/data/info.json"
37
+ with open(info_path) as f:
38
+ info = json.load(f)
39
+
40
+ output_dir = "/work/output-Benchmark-trainonly-v1/c14/tabddpm/tabddpm-c14-20260504_065427/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/c14/tabddpm/tabddpm-c14-20260504_065427/tabddpm-c14-64-20260504_065452.csv", index=False)
63
+ print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/c14/tabddpm/tabddpm-c14-20260504_065427/tabddpm-c14-64-20260504_065452.csv")
64
+ else:
65
+ print("[TabDDPM] WARNING: No output .npy files found")
66
+ sys.exit(1)
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/_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/c14/tabddpm/tabddpm-c14-20260504_065427/config.toml")
23
+ ret = subprocess.run(
24
+ [sys.executable, wrapper, "scripts/pipeline.py",
25
+ "--config", "/work/output-Benchmark-trainonly-v1/c14/tabddpm/tabddpm-c14-20260504_065427/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/c14/tabddpm/tabddpm-c14-20260504_065427/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13d105d2a535c50cc69b02a81e1f78acda5125b473866adaa02ec29eb772e5c2
3
+ size 767
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/config_sample_20260504_065452_r0.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a40e73e578ddaa01292cfbb2e2ba3e892a010ebcb19adbb91633fbb1924779e
3
+ size 765
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/data/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4db5fc039c0a3755f8187753d8ff1576d6ae627c7fdd403f3fa38914bed677b0
3
+ size 38400128
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/data/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3026532dc1e8f61b12f8f829ec618733e69f9da70d40e8234069ff10f3381878
3
+ size 3840128
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/data/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4104e15dc63ed1a45b05da121e55371ef6f17cd78f1d2f168124056b956760e
3
+ size 760
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/data/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f723b0138e622255ce8db1d27cf9b51554364c371989801193edd4c87fc0921
3
+ size 1920128
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/gen_20260504_065452_r0.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:695cf8af613b43265146648fd64228ee3e21fa638e15db6482d48744931167b3
3
+ size 2184
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f4af9eb4c564b54446cef536cece6a39319274b5f45f78c33d3032981e40df4
3
+ size 1364
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0525c722b91cba36c0831572179be3186407ef8b60699c73d1db3235ad66cafc
3
+ size 10563089
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/X_cat_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1dece989b36efca22cf4e5baae60c0ef3e172ce65dea0a6609c1be5ed05bcf0
3
+ size 38400128
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b9964f1d8206d565941173f42721769f18a3d146858c935b59540b135e47c48
3
+ size 7680128
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/X_num_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6dbb98a39aa52b3a1cd28c20cd2b7d965e10f0eee7ad1089b92c48a22597c9bc
3
+ size 7680128
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c75515ca96ac9f9447ec744d51e853753db855a469c01f825e0a51ee3888c582
3
+ size 772
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4104e15dc63ed1a45b05da121e55371ef6f17cd78f1d2f168124056b956760e
3
+ size 760
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/loss.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:114167791de8424a566cb4066269253a657fc0178f535ead359a681058fe5294
3
+ size 22
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bdacd26e39a46a98cd3151e5eab7e6a1e4e8ff458e702d5bb664d6fc12211bd
3
+ size 25771094
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/model_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8502a2ed8fe73bb7080007d05c4249e8fd0656ddd5673ca9a71e6d1a112e06af
3
+ size 25771938
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/output/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13def3477a4b6f182b34da14acfe30d3e89001c89963dfad583672e707fecc21
3
+ size 1920128
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e559ea7c300bee8dca838c3419b8517cfe17c153470e56a6f1c1fab72b7a10b
3
+ size 11306
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:465dc423a1ca46fea5f39f1b0c83b6cce2c16cdb3be3f582e8ce20fbce674981
3
+ size 920
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b21e0d8eb0f5e45847883dfb2170b0c33f6db600934072567446f152c0baf22
3
+ size 12122
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abe3697cef21e374693a586c4311fe0ffab5184fc717180c322938acb00282b8
3
+ size 886
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c92cf6530ea76cef171daa9d723513c36aafe5dc5d8f5dfc27778090e2b0c03
3
+ size 2288
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:617ecb620416375c67546e0fa5a8b9a3923d689bda904dc23824ea175d1f8597
3
+ size 3965839
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12398ccb68a2499b9c126f61b25f03c36a65f026d755e1d5ff5653e614676167
3
+ size 31717079
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f40dbd7bbd9e2783c24d0d12ec35a85581835d45238774eb0676de44a734feda
3
+ size 3965919
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/staged/tabddpm/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e982a5b8ddffddaa99f28316e74260f6c561b8c4291a79b67e639fa804ee68ba
3
+ size 323
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/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/c14/tabddpm/tabddpm-c14-20260504_065427/staged/tabddpm/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f418c3c9a9e2a171159d972b26ec0ad21ee9cf980635f6a1094e9bd3b0462e58
3
+ size 12321
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/tabddpm-c14-64-20260504_065452.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40df02f176fa8d68755a46035add1f55953d0ffbccab1eb9d296166d7a09f0c4
3
+ size 7422
syntheticSuccess/c14/tabddpm/tabddpm-c14-20260504_065427/train_20260504_065434.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e22db917428acbe80255327b2816f0ec7465fbf5fbc8243a3f09ace5b43f39de
3
+ size 676