TabQueryBench commited on
Commit
b133662
·
verified ·
1 Parent(s): e6ae930

Add files using upload-large-folder tool

Browse files
Files changed (33) hide show
  1. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/_tabddpm_sample_r0.py +66 -0
  2. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/_tabddpm_train.py +32 -0
  3. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/config.toml +3 -0
  4. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/config_sample_20260429_052144_r0.toml +3 -0
  5. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/data/X_cat_train.npy +3 -0
  6. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/data/X_num_train.npy +3 -0
  7. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/data/info.json +3 -0
  8. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/data/y_train.npy +3 -0
  9. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/gen_20260429_052144_r0.log +3 -0
  10. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/input_snapshot.json +3 -0
  11. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/X_cat_train.npy +3 -0
  12. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/X_cat_unnorm.npy +3 -0
  13. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/X_num_train.npy +3 -0
  14. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/X_num_unnorm.npy +3 -0
  15. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/config.toml +3 -0
  16. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/info.json +3 -0
  17. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/loss.csv +3 -0
  18. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/model.pt +3 -0
  19. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/model_ema.pt +3 -0
  20. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/y_train.npy +3 -0
  21. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/public_gate/normalized_schema_snapshot.json +3 -0
  22. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/public_gate/public_gate_report.json +3 -0
  23. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/public_gate/staged_input_manifest.json +3 -0
  24. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/runtime_result.json +3 -0
  25. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/public/staged_features.json +3 -0
  26. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/public/test.csv +3 -0
  27. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/public/train.csv +3 -0
  28. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/public/val.csv +3 -0
  29. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/tabddpm/adapter_report.json +3 -0
  30. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/tabddpm/adapter_transforms_applied.json +3 -0
  31. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/tabddpm/model_input_manifest.json +3 -0
  32. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/tabddpm-m6-9864-20260429_052144.csv +3 -0
  33. syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/train_20260429_052038.log +3 -0
syntheticSuccess/m6/tabddpm/tabddpm-m6-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 9864 rows")
25
+ ret = subprocess.run(
26
+ [sys.executable, wrapper, "scripts/pipeline.py",
27
+ "--config", "/work/output-Benchmark-trainonly-v1/m6/tabddpm/tabddpm-m6-20260429_052038/config_sample_20260429_052144_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/m6/tabddpm/tabddpm-m6-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/m6/tabddpm/tabddpm-m6-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/m6/tabddpm/tabddpm-m6-20260429_052038/tabddpm-m6-9864-20260429_052144.csv", index=False)
63
+ print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/m6/tabddpm/tabddpm-m6-20260429_052038/tabddpm-m6-9864-20260429_052144.csv")
64
+ else:
65
+ print("[TabDDPM] WARNING: No output .npy files found")
66
+ sys.exit(1)
syntheticSuccess/m6/tabddpm/tabddpm-m6-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/m6/tabddpm/tabddpm-m6-20260429_052038/config.toml")
23
+ ret = subprocess.run(
24
+ [sys.executable, wrapper, "scripts/pipeline.py",
25
+ "--config", "/work/output-Benchmark-trainonly-v1/m6/tabddpm/tabddpm-m6-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/m6/tabddpm/tabddpm-m6-20260429_052038/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f7f2fac847789e8c70a3770d0d989badc63f3a04839d1081e09507f8c5d77e1
3
+ size 770
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/config_sample_20260429_052144_r0.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:488ca1e03138ddfb89c77af4aaa3a3a191f119ab5a52371cb864cb190c734717
3
+ size 770
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/data/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33b3ba6d661fb460428f33f010200f46937687463db68f5f919e4743a9802815
3
+ size 236864
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/data/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:960545f531401f06b1ef44d43f0e45228b36d96b6f6dbf87b8f6ad8578e915f5
3
+ size 552512
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/data/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5134f33d66b90c606283d758668278d3e787c677a58b2e42769d632bf788a71f
3
+ size 744
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/data/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4495cd81dd4e25e4cece22309308cf6ac32d53e46ab3410a78c7e12900bd8f9e
3
+ size 79040
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/gen_20260429_052144_r0.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7872d5ab28a8c448b2b34eebec9a24c1020aa9581ab8cd58392793602116e5db
3
+ size 210523
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:456d4b79c8c3ea6606071e4d99efb98caec69cbe2e602bb06651745a47eaad61
3
+ size 1348
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c97d3ab8d704eda8df51f1a68ba429feb2a888e1196b983f78f3cda22b639218
3
+ size 59527
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/X_cat_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f78415f75c32c77c08f3d3533ef08036cb9a92d6cbff95d8b48e6637d076a70a
3
+ size 236864
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b0f317f97500d1b4e6dff5e3d3d792ba7a895569c9c5a39a680a84a6b266c68
3
+ size 1104896
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/X_num_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d926989f489bd99adc5b101334cfdb69e5bde3c99be0f387aedd65cf3fb4227e
3
+ size 1104896
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:488ca1e03138ddfb89c77af4aaa3a3a191f119ab5a52371cb864cb190c734717
3
+ size 770
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5134f33d66b90c606283d758668278d3e787c677a58b2e42769d632bf788a71f
3
+ size 744
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/loss.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5283cc1fcdc24e36042ac035b59d6d1031ddf249bf55e50a0acbab4ed28f87ce
3
+ size 1522
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:668a5dd46d5f7f82b48668433c50654725e828d8b8b8468bf074dd86dbde134c
3
+ size 577174
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/model_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16e2b2b69a3f81080393ffdff3619f374e8bdc62e06397cf0fb55559b00fa528
3
+ size 578018
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/output/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62cea20b4b6cb7717a9549c72c2a5439270960d0daa6b397f9e3b4494e43e8de
3
+ size 79040
syntheticSuccess/m6/tabddpm/tabddpm-m6-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:9a347e1961ed33117b9d30b34fc15249721c7bd0b25fb31ac7f974d158104bdd
3
+ size 8408
syntheticSuccess/m6/tabddpm/tabddpm-m6-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:eab3321ed4d9b51e430632d2aedeca5d0260df7acff58b7d732c556dd377db9d
3
+ size 918
syntheticSuccess/m6/tabddpm/tabddpm-m6-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:926752e0802b77e4a610e7b25bfa67789923989b4a975a2df1ad2b040dd14115
3
+ size 9214
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fc8f8b8e3abe5a6ec24238e0e70f43ba10eddc5072084c60ac0b456ddf4f0f6
3
+ size 589
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23eac1d28d264cb53a977ae6229286741b38cdeec8b02eb2ee5f9a2949661e29
3
+ size 1780
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d16d0389cb0fe4b23bab344dc10070de6678357a9452f9f620d0eeba66a6b12d
3
+ size 116376
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1f0338c367408dc21d5a4ec9cdc5d3fe8188916db6085f3fd326304a55551e1
3
+ size 924849
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb9169f3c7213420491d9b709ee1cc650aeaed732fa77dcbd6ffe3583366b2d4
3
+ size 116198
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/staged/tabddpm/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed110784f4b7b8df56447840fb5940a5fda85aa353176253b2ec8b29becfb7f7
3
+ size 321
syntheticSuccess/m6/tabddpm/tabddpm-m6-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/m6/tabddpm/tabddpm-m6-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:f754a3af02d31a31c2f185c4b382b5c127b83597da62c676c4e46bf26b352fad
3
+ size 9411
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/tabddpm-m6-9864-20260429_052144.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d475389e311c4299c328469b46c4e3282789ebf111cf67e98e6ad63601a2d59
3
+ size 1188819
syntheticSuccess/m6/tabddpm/tabddpm-m6-20260429_052038/train_20260429_052038.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:488c7c8b427e9c663b6b12b4e009ba080c2b26a0a83f6f8cd2a3023e97532281
3
+ size 1153