TabQueryBench commited on
Commit
81028ae
·
verified ·
1 Parent(s): a2490c0

Add files using upload-large-folder tool

Browse files
Files changed (30) hide show
  1. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/_tabddpm_sample_r0.py +66 -0
  2. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/_tabddpm_train.py +32 -0
  3. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/config.toml +3 -0
  4. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/config_sample_20260429_052109_r0.toml +3 -0
  5. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/data/X_num_train.npy +3 -0
  6. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/data/info.json +3 -0
  7. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/data/y_train.npy +3 -0
  8. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/gen_20260429_052109_r0.log +3 -0
  9. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/input_snapshot.json +3 -0
  10. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/X_num_train.npy +3 -0
  11. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/X_num_unnorm.npy +3 -0
  12. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/config.toml +3 -0
  13. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/info.json +3 -0
  14. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/loss.csv +3 -0
  15. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/model.pt +3 -0
  16. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/model_ema.pt +3 -0
  17. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/y_train.npy +3 -0
  18. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/public_gate/normalized_schema_snapshot.json +3 -0
  19. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/public_gate/public_gate_report.json +3 -0
  20. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/public_gate/staged_input_manifest.json +3 -0
  21. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/runtime_result.json +3 -0
  22. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/public/staged_features.json +3 -0
  23. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/public/test.csv +3 -0
  24. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/public/train.csv +3 -0
  25. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/public/val.csv +3 -0
  26. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/tabddpm/adapter_report.json +3 -0
  27. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/tabddpm/adapter_transforms_applied.json +3 -0
  28. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/tabddpm/model_input_manifest.json +3 -0
  29. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/tabddpm-n6-6400-20260429_052109.csv +3 -0
  30. syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/train_20260429_052038.log +3 -0
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/_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 6400 rows")
25
+ ret = subprocess.run(
26
+ [sys.executable, wrapper, "scripts/pipeline.py",
27
+ "--config", "/work/output-Benchmark-trainonly-v1/n6/tabddpm/tabddpm-n6-20260429_052038/config_sample_20260429_052109_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/n6/tabddpm/tabddpm-n6-20260429_052038/data/info.json"
37
+ with open(info_path) as f:
38
+ info = json.load(f)
39
+
40
+ output_dir = "/work/output-Benchmark-trainonly-v1/n6/tabddpm/tabddpm-n6-20260429_052038/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/n6/tabddpm/tabddpm-n6-20260429_052038/tabddpm-n6-6400-20260429_052109.csv", index=False)
63
+ print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/n6/tabddpm/tabddpm-n6-20260429_052038/tabddpm-n6-6400-20260429_052109.csv")
64
+ else:
65
+ print("[TabDDPM] WARNING: No output .npy files found")
66
+ sys.exit(1)
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/_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/n6/tabddpm/tabddpm-n6-20260429_052038/config.toml")
23
+ ret = subprocess.run(
24
+ [sys.executable, wrapper, "scripts/pipeline.py",
25
+ "--config", "/work/output-Benchmark-trainonly-v1/n6/tabddpm/tabddpm-n6-20260429_052038/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/n6/tabddpm/tabddpm-n6-20260429_052038/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe9b9b16723a640a334c124b0c9c15a6dcd54e52a0c20c43a9d9752ad841ddf7
3
+ size 770
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/config_sample_20260429_052109_r0.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db169285dff994dbd0e06908e0498a773d1a446b5d09bc859fb97811bee0256d
3
+ size 770
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/data/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:393035466f24178ccee0946bd1ab6d8b7bc07677142b5798ad07b8d2e2b65962
3
+ size 409728
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/data/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9cf2ec8bab8d1dab48692b751d7157323df4e8d1b04b9b4aafe25f60863def2
3
+ size 547
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/data/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bc1d3e281e647d8507df1305552f87513b9d8b7aad284e535e9fa2d0c18071b
3
+ size 51328
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/gen_20260429_052109_r0.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d97a3dd2436d3c7c4410122f05027ab68595c26cf56399e6953be6d033fbff6
3
+ size 147503
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c466502a648dc13334af312eda92fd6ff5cf41c95706400d6c3c97fbcd248ba0
3
+ size 1346
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5101de6dfc83cac4ab1298ac82cd86a111bbb095164e1b935d5590d80d0b340
3
+ size 819328
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/X_num_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02847502af68331325dc2a1697b8bc9900d08487d8a95751abdf0d87b0a2675f
3
+ size 819328
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db169285dff994dbd0e06908e0498a773d1a446b5d09bc859fb97811bee0256d
3
+ size 770
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9cf2ec8bab8d1dab48692b751d7157323df4e8d1b04b9b4aafe25f60863def2
3
+ size 547
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/loss.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f93b1778bbcdc3f255c0fdf6311abb498458bbb85523824d498275e87b6fec7f
3
+ size 1249
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8abbbeef2e01c4df212b61432ea37f7df2ec15854abf5494ed441320dae46f39
3
+ size 559190
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/model_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0c29c4d2dbc623892565b7533a10d2b7289fc2e93c5682fe0d04800ddd8ec94
3
+ size 560098
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/output/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cba67a34ae10355b5faebcc43e557d9a03eaecc9a10b0a80d5b614eec5eac0b3
3
+ size 51328
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b240ee2cf62a2868bf54e3b4393eadd3d7751825bf4bb34743e85547f7cbcd3
3
+ size 7725
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:225732b90f81f74a3430523830af44cf151a7f15f2571a57ad83c2d55f982195
3
+ size 908
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fed054c00fa73a8553312b1f505eb471bd7f172fef263a15955d8b4c60264043
3
+ size 8531
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27c93363d674f76fd585b0b24fd9fb86f2aa0c020ac1623e59560d561780b435
3
+ size 589
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e2869694dd92d59628a62fdd1349d4dd69eb6608ed9b0fdeb4b0800b6334d81
3
+ size 1520
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1922293e501d8f17f56a321a1305e44d20a6ad7ed67e97af754dea170989fc5
3
+ size 39918
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8545a9761061bd99d67935948928e2840e6ae4b5c9760cad2de82198676db2b
3
+ size 316902
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60a3dd7f655f8086e53402dcdcfa42297d586d8483f2afd6e1bbc6bd3521303f
3
+ size 39705
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/staged/tabddpm/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb811beda1e9eaa0e09c05be55393567bf0c8b43f55ebeb9eef0518cea29b8d6
3
+ size 321
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/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/n6/tabddpm/tabddpm-n6-20260429_052038/staged/tabddpm/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:537569a86d38ba36242c7c223ce27880b3a3885cfc6813234402334976c9d451
3
+ size 8728
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/tabddpm-n6-6400-20260429_052109.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e8789ce89518d2fc76b92e8c9e62be0592c65bde69771b7c70c96b08c774076
3
+ size 1071944
syntheticSuccess/n6/tabddpm/tabddpm-n6-20260429_052038/train_20260429_052038.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21c37f6a1a0f20f1be0cc8a5c92d98655d87cd48206c29deb90c05d35105611f
3
+ size 1066