TabQueryBench commited on
Commit
7bc9eea
·
verified ·
1 Parent(s): 4efe5ae

Add files using upload-large-folder tool

Browse files
Files changed (30) hide show
  1. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/_tabddpm_sample_r0.py +66 -0
  2. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/_tabddpm_train.py +32 -0
  3. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/config.toml +3 -0
  4. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/config_sample_20260429_052217_r0.toml +3 -0
  5. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/data/X_cat_train.npy +3 -0
  6. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/data/info.json +3 -0
  7. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/data/y_train.npy +3 -0
  8. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/gen_20260429_052217_r0.log +3 -0
  9. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/input_snapshot.json +3 -0
  10. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/X_cat_train.npy +3 -0
  11. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/X_cat_unnorm.npy +3 -0
  12. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/config.toml +3 -0
  13. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/info.json +3 -0
  14. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/loss.csv +3 -0
  15. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/model.pt +3 -0
  16. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/model_ema.pt +3 -0
  17. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/y_train.npy +3 -0
  18. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/public_gate/normalized_schema_snapshot.json +3 -0
  19. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/public_gate/public_gate_report.json +3 -0
  20. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/public_gate/staged_input_manifest.json +3 -0
  21. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/runtime_result.json +3 -0
  22. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/staged/public/staged_features.json +3 -0
  23. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/staged/public/test.csv +3 -0
  24. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/staged/public/train.csv +3 -0
  25. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/staged/public/val.csv +3 -0
  26. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/staged/tabddpm/adapter_report.json +3 -0
  27. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/staged/tabddpm/adapter_transforms_applied.json +3 -0
  28. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/staged/tabddpm/model_input_manifest.json +3 -0
  29. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/tabddpm-c7-10368-20260429_052217.csv +3 -0
  30. syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/train_20260429_052039.log +3 -0
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/_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 10368 rows")
25
+ ret = subprocess.run(
26
+ [sys.executable, wrapper, "scripts/pipeline.py",
27
+ "--config", "/work/output-Benchmark-trainonly-v1/c7/tabddpm/tabddpm-c7-20260429_052039/config_sample_20260429_052217_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/c7/tabddpm/tabddpm-c7-20260429_052039/data/info.json"
37
+ with open(info_path) as f:
38
+ info = json.load(f)
39
+
40
+ output_dir = "/work/output-Benchmark-trainonly-v1/c7/tabddpm/tabddpm-c7-20260429_052039/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/c7/tabddpm/tabddpm-c7-20260429_052039/tabddpm-c7-10368-20260429_052217.csv", index=False)
63
+ print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/c7/tabddpm/tabddpm-c7-20260429_052039/tabddpm-c7-10368-20260429_052217.csv")
64
+ else:
65
+ print("[TabDDPM] WARNING: No output .npy files found")
66
+ sys.exit(1)
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/_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/c7/tabddpm/tabddpm-c7-20260429_052039/config.toml")
23
+ ret = subprocess.run(
24
+ [sys.executable, wrapper, "scripts/pipeline.py",
25
+ "--config", "/work/output-Benchmark-trainonly-v1/c7/tabddpm/tabddpm-c7-20260429_052039/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/c7/tabddpm/tabddpm-c7-20260429_052039/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38e0dd85672fa33a4970b0ea4092e7c012689bf30cece5e40ebd8b6e8e6de7be
3
+ size 768
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/config_sample_20260429_052217_r0.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71b6ed1f4efb6485fabe59a519fe78c4c2800060621e21dedd76cf81a6a47515
3
+ size 769
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/data/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe170020f0e97be3d763c4207ff95efc4e981264660ef6397fcf5f6e62d31eec
3
+ size 663680
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/data/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:960b6c1ebf533b50080c1a84134f73e428959d81c2855d624612b931ff02c08c
3
+ size 438
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/data/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99ac41d294af4eecd6e8a45863077f58b49456e9d0e055344706824cbb034964
3
+ size 83072
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/gen_20260429_052217_r0.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69eefeccadb18bbb24b45d6445e5a0e9ef0df1dafbb5ac687437c022bb447521
3
+ size 231465
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d056a60ef09690aa2a16b0f7f9017df8959c0ffddb6e355f24ba7ced79ae4d3
3
+ size 1348
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16be36641783ba511d1c6a52baffaf0e9505ea21441908bf4c3fc36523972099
3
+ size 166337
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/X_cat_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37912a71902967a76f0872c545f8c8886f4a690441621c9e4db08306fd41cb01
3
+ size 663680
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71b6ed1f4efb6485fabe59a519fe78c4c2800060621e21dedd76cf81a6a47515
3
+ size 769
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:960b6c1ebf533b50080c1a84134f73e428959d81c2855d624612b931ff02c08c
3
+ size 438
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/loss.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:439e8e111684e872c6aa50f895f54ce61a8afc53de6b21b6dd9ac899635b99d8
3
+ size 1255
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50a336bd69bb6cc75541f8f634083ff597f3d334c11e6bf049b0c2718fee85f2
3
+ size 576662
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/model_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ced1e2ea2da6188b6f2357b59a5973ba35c76cd507e80804dda4e2771c6606f7
3
+ size 577506
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/output/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bc12cd5aab117213155fc70e2895b6990bc505a4d5e69dd12e2d8651a64e214
3
+ size 83072
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/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
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/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
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0fa986bf75230e46bde65c21597d6db0982749ce588c87c3cdf79076104f161
3
+ size 4983
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6e18714f1549388a5e621454857437da6ee48287f9fd233628f6188f382eb1d
3
+ size 590
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/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
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/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
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/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
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/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
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/staged/tabddpm/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e31032dbccdb4dd95760838cf343c0d1e0acadbe9f82f40909b93044e86f383f
3
+ size 321
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/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/c7/tabddpm/tabddpm-c7-20260429_052039/staged/tabddpm/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2951f8b8da6280b00211dfbd419221f387fa5526498b3249197ab6b8040ace8
3
+ size 5180
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/tabddpm-c7-10368-20260429_052217.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fca12de9a3621b5e41a7f0c4952f8cffd66ae002b2e412abe4df34493b1a18f1
3
+ size 373315
syntheticSuccess/c7/tabddpm/tabddpm-c7-20260429_052039/train_20260429_052039.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd88eb16a0a4da60df76f1cab22fee5c923aa05babd86a292910fda970565c1e
3
+ size 1080