TabQueryBench commited on
Commit
280e621
·
verified ·
1 Parent(s): 211885a

Add files using upload-large-folder tool

Browse files
Files changed (30) hide show
  1. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/_tabddpm_sample_r0.py +66 -0
  2. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/_tabddpm_train.py +32 -0
  3. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/config.toml +3 -0
  4. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/config_sample_20260430_231138_r0.toml +3 -0
  5. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/data/X_num_train.npy +3 -0
  6. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/data/info.json +3 -0
  7. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/data/y_train.npy +3 -0
  8. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/gen_20260430_231138_r0.log +3 -0
  9. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/input_snapshot.json +3 -0
  10. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/X_num_train.npy +3 -0
  11. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/X_num_unnorm.npy +3 -0
  12. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/config.toml +3 -0
  13. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/info.json +3 -0
  14. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/loss.csv +3 -0
  15. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/model.pt +3 -0
  16. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/model_ema.pt +3 -0
  17. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/y_train.npy +3 -0
  18. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/public_gate/normalized_schema_snapshot.json +3 -0
  19. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/public_gate/public_gate_report.json +3 -0
  20. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/public_gate/staged_input_manifest.json +3 -0
  21. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/runtime_result.json +3 -0
  22. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/public/staged_features.json +3 -0
  23. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/public/test.csv +3 -0
  24. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/public/train.csv +3 -0
  25. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/public/val.csv +3 -0
  26. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/tabddpm/adapter_report.json +3 -0
  27. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/tabddpm/adapter_transforms_applied.json +3 -0
  28. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/tabddpm/model_input_manifest.json +3 -0
  29. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/tabddpm-n11-15215-20260430_231138.csv +3 -0
  30. syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/train_20260430_231115.log +3 -0
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/_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 15215 rows")
25
+ ret = subprocess.run(
26
+ [sys.executable, wrapper, "scripts/pipeline.py",
27
+ "--config", "/work/output-Benchmark-trainonly-v1/n11/tabddpm/tabddpm-n11-20260430_231115/config_sample_20260430_231138_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/n11/tabddpm/tabddpm-n11-20260430_231115/data/info.json"
37
+ with open(info_path) as f:
38
+ info = json.load(f)
39
+
40
+ output_dir = "/work/output-Benchmark-trainonly-v1/n11/tabddpm/tabddpm-n11-20260430_231115/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/n11/tabddpm/tabddpm-n11-20260430_231115/tabddpm-n11-15215-20260430_231138.csv", index=False)
63
+ print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/n11/tabddpm/tabddpm-n11-20260430_231115/tabddpm-n11-15215-20260430_231138.csv")
64
+ else:
65
+ print("[TabDDPM] WARNING: No output .npy files found")
66
+ sys.exit(1)
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/_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/n11/tabddpm/tabddpm-n11-20260430_231115/config.toml")
23
+ ret = subprocess.run(
24
+ [sys.executable, wrapper, "scripts/pipeline.py",
25
+ "--config", "/work/output-Benchmark-trainonly-v1/n11/tabddpm/tabddpm-n11-20260430_231115/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/n11/tabddpm/tabddpm-n11-20260430_231115/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50f96999b47b7e87a752bd33d9e3e93a32e22ca18363ef3e4bb79390906122be
3
+ size 774
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/config_sample_20260430_231138_r0.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6b20d8443edce8ea52c81573e54939e8b125a16e147e52b0a252a81024ec761
3
+ size 775
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/data/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:013e32900eef106da63d972b40b61296d91c04d1ce8196fd0cb8d54081f58c59
3
+ size 608728
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/data/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b77db627b4ac18068e6e543f7a6d2ac0013aa526e35c97ea9e143a2831a08a6
3
+ size 478
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/data/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95905dd042874f4c4e7523f7525b2864e220ef3c6fcdc58877ca3944645899cf
3
+ size 121848
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/gen_20260430_231138_r0.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac734d5fb094f8da0a79ec5066b8caee750f5c1f62cef7cf069c719e7cc4faae
3
+ size 336510
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bebdae29051f4624bce4b1370de317ee4858691a21bdd06ea728148909023b0a
3
+ size 1360
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc9d99f8a7597b0f90cc445ae4b95046995bf8d02942dd3cb5eba68a91de86b9
3
+ size 1217328
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/X_num_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f7afc6a344481c6233b9cad5a6c46c9e9ddc2ce22376e42bf385a06e41ca1c5
3
+ size 1217328
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6b20d8443edce8ea52c81573e54939e8b125a16e147e52b0a252a81024ec761
3
+ size 775
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b77db627b4ac18068e6e543f7a6d2ac0013aa526e35c97ea9e143a2831a08a6
3
+ size 478
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/loss.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df3f693735c1f039e78a69b3aa3735a075f8058a4f86f2b32d78f1d3431e60c6
3
+ size 1253
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ca8519c503ca6a0ea7523cef58a071e180be3b8e9610c40e744b619d6533830
3
+ size 548950
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/model_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cb073850cab04d5bc7f2f2592c76116c7c950c91ed080dcbac5b837f1fa9160
3
+ size 549794
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/output/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:079233b853f121e6b236b83123bd9cd4d4fcd07bed563a3d1fcbaf8ff91f7f2e
3
+ size 121848
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68c3209b66f9891477ccb430a3d02e3a299eb9c1a2d045bbf528bdfeb8de4fb0
3
+ size 5283
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6336138aac04ffe8bd9b1596f9d11556e4417d85ddb950dd20c9532ef6b9fd80
3
+ size 915
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c73b4c51e6c12cec5502b511cd9965c8996183c53dee6840a6e2db95ed7ad6f6
3
+ size 6099
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0496ffa16ac10b7ff380fe96da093501d8c8cad2b80a99b4e16fbe4bf6589fa6
3
+ size 887
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ea5e7a5363e366f12e9794c57325c7f28e71ef584464c2f78fa67b80eca9a82
3
+ size 1025
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf4e935f84569b849b662718eaa19be605037d46a5f7391f164728d6d9c3bb50
3
+ size 148017
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ab621ac8239797506ce800c1409422452b8127da93add91dd9e6d63ddeec6f7
3
+ size 1182326
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:374e44edf25e58ca37eabbef0485c98cecdbdfa9d24da738937f404840bfad44
3
+ size 147784
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/staged/tabddpm/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5410855e19c457a0b08479f0b3c96bcec106d6d6636513267c628e59ccc16fdd
3
+ size 323
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/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/n11/tabddpm/tabddpm-n11-20260430_231115/staged/tabddpm/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80be855f09f24bf48a8cc2c57c4aaa19680f7cb6a420789b0a7f91a186ccfb61
3
+ size 6298
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/tabddpm-n11-15215-20260430_231138.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a17fcdcc57fead07cd2244a7a951be4903af25b2db1d300566afcf2b5998365
3
+ size 2909435
syntheticSuccess/n11/tabddpm/tabddpm-n11-20260430_231115/train_20260430_231115.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e57dcf25d39069140e75289c1b815ac106901118c56eaef39a3badb0da3ca641
3
+ size 1070