TabQueryBench commited on
Commit
8b929c4
·
verified ·
1 Parent(s): 15226c1

Add files using upload-large-folder tool

Browse files
Files changed (33) hide show
  1. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/_tabddpm_sample_r0.py +66 -0
  2. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/_tabddpm_train.py +32 -0
  3. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/config.toml +3 -0
  4. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/config_sample_20260501_002103_r0.toml +3 -0
  5. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/data/X_cat_train.npy +3 -0
  6. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/data/X_num_train.npy +3 -0
  7. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/data/info.json +3 -0
  8. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/data/y_train.npy +3 -0
  9. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/gen_20260501_002103_r0.log +3 -0
  10. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/input_snapshot.json +3 -0
  11. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/X_cat_train.npy +3 -0
  12. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/X_cat_unnorm.npy +3 -0
  13. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/X_num_train.npy +3 -0
  14. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/X_num_unnorm.npy +3 -0
  15. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/config.toml +3 -0
  16. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/info.json +3 -0
  17. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/loss.csv +3 -0
  18. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/model.pt +3 -0
  19. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/model_ema.pt +3 -0
  20. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/y_train.npy +3 -0
  21. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/public_gate/normalized_schema_snapshot.json +3 -0
  22. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/public_gate/public_gate_report.json +3 -0
  23. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/public_gate/staged_input_manifest.json +3 -0
  24. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/runtime_result.json +3 -0
  25. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/public/staged_features.json +3 -0
  26. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/public/test.csv +3 -0
  27. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/public/train.csv +3 -0
  28. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/public/val.csv +3 -0
  29. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/tabddpm/adapter_report.json +3 -0
  30. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/tabddpm/adapter_transforms_applied.json +3 -0
  31. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/tabddpm/model_input_manifest.json +3 -0
  32. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/tabddpm-m4-2217-20260501_002103.csv +3 -0
  33. syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/train_20260501_002012.log +3 -0
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/_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 2217 rows")
25
+ ret = subprocess.run(
26
+ [sys.executable, wrapper, "scripts/pipeline.py",
27
+ "--config", "/work/output-Benchmark-trainonly-v1/m4/tabddpm/tabddpm-m4-20260501_002012/config_sample_20260501_002103_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/m4/tabddpm/tabddpm-m4-20260501_002012/data/info.json"
37
+ with open(info_path) as f:
38
+ info = json.load(f)
39
+
40
+ output_dir = "/work/output-Benchmark-trainonly-v1/m4/tabddpm/tabddpm-m4-20260501_002012/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/m4/tabddpm/tabddpm-m4-20260501_002012/tabddpm-m4-2217-20260501_002103.csv", index=False)
63
+ print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/m4/tabddpm/tabddpm-m4-20260501_002012/tabddpm-m4-2217-20260501_002103.csv")
64
+ else:
65
+ print("[TabDDPM] WARNING: No output .npy files found")
66
+ sys.exit(1)
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/_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/m4/tabddpm/tabddpm-m4-20260501_002012/config.toml")
23
+ ret = subprocess.run(
24
+ [sys.executable, wrapper, "scripts/pipeline.py",
25
+ "--config", "/work/output-Benchmark-trainonly-v1/m4/tabddpm/tabddpm-m4-20260501_002012/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/m4/tabddpm/tabddpm-m4-20260501_002012/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50db916048061eff5ec804eae15a61b4923d9c8ae1effdb2fd5adac1bc54f8fc
3
+ size 768
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/config_sample_20260501_002103_r0.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d15111c03bfa92cf096a10a646e900f2723aa6bdb016b362116352321a26faa1
3
+ size 768
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/data/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c91af7ac26382e392a70536d3dbb592c04ba5e4f495d1e3c364416b9ef704a07
3
+ size 53336
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/data/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a21bd2fd5a226c07d543ddf78616a8edb2d52b51097fc7a5df5b05612267af8
3
+ size 26732
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/data/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b055f3badadf17ab7b6f6b8fe2c13d708aee31de163ecf350df8158c40c9b68
3
+ size 367
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/data/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c64fea6ad5ed2f8441ef5212c726195dbf53e1c81298427bddd18eb20e35cf2
3
+ size 8996
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/gen_20260501_002103_r0.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52f8f30bf72e44fceb0267db01abdeb06812b986bb6d2e52e5f455ff527c9440
3
+ size 63664
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eee5569d991135b2d30d9ad50f534de1c8e392bf55e6905c94d68b05634ab274
3
+ size 1345
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/X_cat_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d8b3a3e4d926fb702a70dc834c6f556ff49551421c80661f380ab4805096ca2
3
+ size 13599
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/X_cat_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efe7fdba2758f6e03972b3531387c072144cbdd1d6e07d5af2b0ca501f71dc8b
3
+ size 53336
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edf87db493b750f271e50b379fcfed588449ef2ce21f3dfd85f5b0fe3b12a082
3
+ size 53336
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/X_num_unnorm.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cbf26ade33e92b58ce69497411a3240ccda363c7750ce86037c2cd04936c44f
3
+ size 53336
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/config.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d15111c03bfa92cf096a10a646e900f2723aa6bdb016b362116352321a26faa1
3
+ size 768
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b055f3badadf17ab7b6f6b8fe2c13d708aee31de163ecf350df8158c40c9b68
3
+ size 367
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/loss.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edfe9e49b81be848f13488d277888ef9fa80dba0b1aaea3db0d973487be57faf
3
+ size 1502
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d48fe15a35c8b63f73a2053ccc3691a347d09aa4e28b6f2a335cb5c8623ba1b
3
+ size 550673
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/model_ema.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bcb545f8e3ff78e5f2f2a5beed22a6146629e04bdf80c5a975a62aaf542f625
3
+ size 551585
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/output/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ebaf2c1bb96a0e9e9032e11c3367eecbbb27dc5b5ef037fd4406551fcf68b7e
3
+ size 17864
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:147188e89a0542cf3b022c634e88c2d00f2d4ee70b9581034df8ccb87204eee8
3
+ size 3234
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:515294ac3f64bc7db5c9724dba42d4156b6a574241ce8cc363ba379c85326f47
3
+ size 910
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f6efec9b954ac996b00b4815700c705efc1426bbdb4933aa589e3797ef598ec
3
+ size 4040
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5830e178260157b3ab802fe19cb870cc438ef2c670d783cf3167f661af678f01
3
+ size 881
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1207bcd03560fd5e534c9b55e7ef32d0bf5bf1ccb7c37782749c850b76b062ef
3
+ size 644
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c541b677fb2d45c5bc79338eeee9fd8c91484b195a0c2c546c2fbabf113b7ea
3
+ size 11298
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:614ebfac5f41d6f661aff675fa18c0f933a8d9bcc77ea71b7b2360c2f0155837
3
+ size 90069
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e55f5edbe7942ff01630de91a9c70dfbc6445eba76c7b970350364546b67c2d7
3
+ size 11218
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/staged/tabddpm/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:225c17af5d722c594d4b1471f15cb2ec037e7b78ad0dffe91a736bf578e26922
3
+ size 321
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/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/m4/tabddpm/tabddpm-m4-20260501_002012/staged/tabddpm/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82f850731886699c1e55cf9ecb628031a094829201bdc1faaa08a355b95043d2
3
+ size 4237
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/tabddpm-m4-2217-20260501_002103.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75d65561f3b4531077e2145626ef2f81dd90f4be95c6bb9d62f0c97ea4bb7143
3
+ size 102421
syntheticSuccess/m4/tabddpm/tabddpm-m4-20260501_002012/train_20260501_002012.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65856d3d7601f57664a0b451b5d8b311571553e2b88be056194e543c47267934
3
+ size 9176