diff --git a/.gitattributes b/.gitattributes index f612d8653aec0b3cd731477057b2c3ec5b4a785b..9115f2a68e0eff3f70a028eaecfd718103a045e2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3675,3 +3675,31 @@ SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/output/model_ema.pt fil SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/output/y_train.npy filter=lfs diff=lfs merge=lfs -text SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/runtime_result.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_report.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/tabddpm-c2-1382-20260501_053541.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/train_20260501_053445.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/y_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/gen_20260504_181140_r0.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/X_cat_unnorm.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/loss.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/model.pt filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/model_ema.pt filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/y_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/tabddpm-c2-1382-20260504_181140.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/train_20260504_181103.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/y_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/gen_20260504_181327_r0.log filter=lfs diff=lfs merge=lfs -text diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/staged_input_manifest.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/staged_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..7f87f56e2323deae70a1c8712e9110247ddeb145 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/public_gate/staged_input_manifest.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:156f740ae668bcb72462d2df63e51b375d23f6a61426c25efcd6987947b42ff4 +size 3959 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/runtime_result.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/runtime_result.json new file mode 100644 index 0000000000000000000000000000000000000000..e13a1bdae08655332265e719278c1937a0585048 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/runtime_result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6ad96d5e45234f6b774a7d9500514e63c61ad3addb12db870048f6f58dbb4e9 +size 881 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/staged_features.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/staged_features.json new file mode 100644 index 0000000000000000000000000000000000000000..96ce2fcc5c1b712d1baabe9a6462bb9c882c30fc --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/staged_features.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37511511f1d7cb0e004f9d7305c900644ebefe672c9a1a418c1f29b36786fabd +size 659 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/test.csv b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/test.csv new file mode 100644 index 0000000000000000000000000000000000000000..392a0d7189a34d8f13ecf20a99d64b03230d517c --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/test.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b48114a7d0bc5bd9a07920f903c8d4aba8bf98bf2a66a050da03588b0245ca73 +size 5273 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/train.csv b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/train.csv new file mode 100644 index 0000000000000000000000000000000000000000..da4f4d55134eebc0e51157d0d467536371db1484 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/train.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4aed00c2c2b3f88a55a7ebff31b2e1b5e0e32fb0a7267e0b9d2779cd23e434dd +size 41565 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/val.csv b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/val.csv new file mode 100644 index 0000000000000000000000000000000000000000..af8caf7ee42524188534a3daf32996dc491952d9 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/public/val.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26e90c1170a57a14c05832ac88027722b1f3848f9662c7c09ef7c93dcba4cc01 +size 5176 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_report.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_report.json new file mode 100644 index 0000000000000000000000000000000000000000..25624093d075f8d61b3ed47980c977d6db214df6 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_report.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f3886fed1c3c45d970950b1ff76bda3eadef540d92ca3882f9a95b8bcb5552e +size 321 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_transforms_applied.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_transforms_applied.json new file mode 100644 index 0000000000000000000000000000000000000000..6f3aaa01a627a955d2022165805d2786c0da78ba --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/adapter_transforms_applied.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945 +size 2 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/model_input_manifest.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/model_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..b468c8bea9a1bc0f4e70550b86b61e71fc7f6a80 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/staged/tabddpm/model_input_manifest.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d086bdd555e6b8eae6ccd98c347004f596a1f6a0326e5332fd20dd80a2607e1 +size 4156 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/tabddpm-c2-1382-20260501_053541.csv b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/tabddpm-c2-1382-20260501_053541.csv new file mode 100644 index 0000000000000000000000000000000000000000..c376101a1ef09fbcff2ee85db3a4a42bcb0fed51 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/tabddpm-c2-1382-20260501_053541.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4553c4d7f6686251dd80cb9a41858e9fb809c608decc7da1f008c0f8eb9bca1 +size 41616 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/train_20260501_053445.log b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/train_20260501_053445.log new file mode 100644 index 0000000000000000000000000000000000000000..c9cecc5137d01c1ae345ddc11d054205dd6087a3 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260501_053445/train_20260501_053445.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc81c3da56b1deeaa60556e8f6cec9fd97ce7200a6cc83fda2acef2f37cba648 +size 1076 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/_tabddpm_sample_r0.py b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/_tabddpm_sample_r0.py new file mode 100644 index 0000000000000000000000000000000000000000..acd07a0b4e4bcf12e9a8c3908b4d5a6367d1d0d6 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/_tabddpm_sample_r0.py @@ -0,0 +1,66 @@ +import os, sys, subprocess, json +import numpy as np +import pandas as pd + +tabddpm_root = "/workspace/tabddpm/code" +assert os.path.isdir(tabddpm_root), f"TabDDPM source not mounted: {tabddpm_root}" +env = os.environ.copy() +env["PYTHONPATH"] = tabddpm_root + (os.pathsep + env.get("PYTHONPATH", "")) + +# Reuse the compat wrapper (patches collections.Sequence for skorch) +wrapper = os.path.join(tabddpm_root, "_compat_run.py") +if not os.path.exists(wrapper): + with open(wrapper, "w") as f: + f.write( + "import collections, collections.abc\n" + "for _a in ('Sequence','MutableSequence','MutableMapping','Mapping'," + "'MutableSet','Set','Callable','Iterable','Iterator'):\n" + " if not hasattr(collections, _a): setattr(collections, _a, getattr(collections.abc, _a, None))\n" + "import sys, runpy\n" + "sys.argv = sys.argv[1:]\n" + "runpy.run_path(sys.argv[0], run_name='__main__')\n" + ) + +print(f"[TabDDPM] Sampling 1382 rows") +ret = subprocess.run( + [sys.executable, wrapper, "scripts/pipeline.py", + "--config", "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/config_sample_20260504_181140_r0.toml", + "--sample"], + cwd=tabddpm_root, + env=env +) +if ret.returncode != 0: + sys.exit(ret.returncode) + +# 将 .npy 输出转为 CSV(npy 在 TabDDPM 的 parent_dir,即 npy_dir) +info_path = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/data/info.json" +with open(info_path) as f: + info = json.load(f) + +output_dir = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/output" +col_names = info.get("column_names", []) + +parts = [] +x_num_path = os.path.join(output_dir, "X_num_train.npy") +x_cat_path = os.path.join(output_dir, "X_cat_train.npy") +y_path = os.path.join(output_dir, "y_train.npy") + +if os.path.exists(x_num_path): + parts.append(np.load(x_num_path, allow_pickle=True)) +if os.path.exists(x_cat_path): + parts.append(np.load(x_cat_path, allow_pickle=True).astype(float)) +if os.path.exists(y_path): + y = np.load(y_path, allow_pickle=True) + parts.append(y.reshape(-1, 1) if y.ndim == 1 else y) + +if parts: + combined = np.concatenate(parts, axis=1) + if col_names and len(col_names) == combined.shape[1]: + df = pd.DataFrame(combined, columns=col_names) + else: + df = pd.DataFrame(combined) + df.to_csv("/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/tabddpm-c2-1382-20260504_181140.csv", index=False) + print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/tabddpm-c2-1382-20260504_181140.csv") +else: + print("[TabDDPM] WARNING: No output .npy files found") + sys.exit(1) diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/_tabddpm_train.py b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/_tabddpm_train.py new file mode 100644 index 0000000000000000000000000000000000000000..ddb041209cab17e11561f35f7bc9132dfe91f27a --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/_tabddpm_train.py @@ -0,0 +1,32 @@ +import os, sys, subprocess + +tabddpm_root = "/workspace/tabddpm/code" +assert os.path.isdir(tabddpm_root), f"TabDDPM source not mounted: {tabddpm_root}" +env = os.environ.copy() +env["PYTHONPATH"] = tabddpm_root + (os.pathsep + env.get("PYTHONPATH", "")) + +# Write a wrapper that patches collections.Sequence (removed in Python 3.10+) +# before running pipeline.py - needed because skorch uses old API +wrapper = os.path.join(tabddpm_root, "_compat_run.py") +with open(wrapper, "w") as f: + f.write( + "import collections, collections.abc\n" + "for _a in ('Sequence','MutableSequence','MutableMapping','Mapping'," + "'MutableSet','Set','Callable','Iterable','Iterator'):\n" + " if not hasattr(collections, _a): setattr(collections, _a, getattr(collections.abc, _a, None))\n" + "import sys, runpy\n" + "sys.argv = sys.argv[1:]\n" + "runpy.run_path(sys.argv[0], run_name='__main__')\n" + ) + +print(f"[TabDDPM] Training, config=/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/config.toml") +ret = subprocess.run( + [sys.executable, wrapper, "scripts/pipeline.py", + "--config", "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/config.toml", + "--train"], + cwd=tabddpm_root, + env=env +) +if ret.returncode != 0: + sys.exit(ret.returncode) +print("[TabDDPM] Training complete") diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/config.toml b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/config.toml new file mode 100644 index 0000000000000000000000000000000000000000..b32437de5ec87ecfb85758bc6c686c27a4499f45 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/config.toml @@ -0,0 +1,39 @@ +seed = 0 +parent_dir = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/output" +real_data_path = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/data" +model_type = "mlp" +num_numerical_features = 0 +device = "cuda:0" + +[model_params] +d_in = 6 +num_classes = 4 +is_y_cond = true + +[model_params.rtdl_params] +d_layers = [256, 256] +dropout = 0.0 + +[diffusion_params] +num_timesteps = 200 +gaussian_loss_type = "mse" + +[train.main] +steps = 2000 +lr = 0.001 +weight_decay = 0.0 +batch_size = 256 + +[train.T] +seed = 0 +normalization = "quantile" +num_nan_policy = "__none__" +cat_nan_policy = "__none__" +cat_min_frequency = "__none__" +cat_encoding = "__none__" +y_policy = "default" + +[sample] +num_samples = 1000 +batch_size = 256 +seed = 0 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/config_sample_20260504_181140_r0.toml b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/config_sample_20260504_181140_r0.toml new file mode 100644 index 0000000000000000000000000000000000000000..d2a6930b9108b5e2a8f747ee1a781a87b6bc55bb --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/config_sample_20260504_181140_r0.toml @@ -0,0 +1,39 @@ +seed = 0 +parent_dir = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/output" +real_data_path = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/data" +model_type = "mlp" +num_numerical_features = 0 +device = "cuda:0" + +[model_params] +d_in = 6 +num_classes = 4 +is_y_cond = true + +[model_params.rtdl_params] +d_layers = [256, 256] +dropout = 0.0 + +[diffusion_params] +num_timesteps = 200 +gaussian_loss_type = "mse" + +[train.main] +steps = 2000 +lr = 0.001 +weight_decay = 0.0 +batch_size = 256 + +[train.T] +seed = 0 +normalization = "quantile" +num_nan_policy = "__none__" +cat_nan_policy = "__none__" +cat_min_frequency = "__none__" +cat_encoding = "__none__" +y_policy = "default" + +[sample] +num_samples = 1382 +batch_size = 256 +seed = 0 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/X_cat_train.npy b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/X_cat_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..e99f1ae8dc9e7155e5c4bbbd3c2f3f7215c628f7 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/X_cat_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24d2203601ba060728920e754747e5a1dc3955a1b5775e147382fee4f1812542 +size 66464 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/info.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/info.json new file mode 100644 index 0000000000000000000000000000000000000000..0f2b351a317260c450725d5a04373330ad3701a3 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/info.json @@ -0,0 +1,29 @@ +{ + "name": "benchmark_dataset", + "task_type": "multiclass", + "n_num_features": 0, + "n_cat_features": 6, + "train_size": 1382, + "num_col_idx": [], + "cat_col_idx": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "target_col_idx": [ + 6 + ], + "column_names": [ + "buying", + "maint", + "doors", + "persons", + "lug_boot", + "safety", + "class" + ], + "num_classes": 4 +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/y_train.npy b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/y_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..8bfc8f9de7350657cd6411c55d2b9b87bea9c13a --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/data/y_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f8eb0b25043331a30fde5439f063eed59e7a76f45d7d102b9b4fbcd16b551b4 +size 11184 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/gen_20260504_181140_r0.log b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/gen_20260504_181140_r0.log new file mode 100644 index 0000000000000000000000000000000000000000..9fcd131940297336c95b3df388afad1eccd0f03f --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/gen_20260504_181140_r0.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:699ec388503c3fef971e172974cee64500a765cff8855575df673d28450f3420 +size 25662 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/input_snapshot.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/input_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..772021148f055243c89ddfd9b6fa388ee33d05ea --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/input_snapshot.json @@ -0,0 +1,36 @@ +{ + "dataset_id": "c2", + "model": "tabddpm", + "inputs": { + "train_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv", + "exists": true, + "size": 42948, + "sha256": "17bc560fa96bd00fb3b526e1e65bc91210b701d0d0a4e8bb9b4c5196cab56def" + }, + "val_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv", + "exists": true, + "size": 5349, + "sha256": "61e565eca62e65a7dccd9d51039a3170413379e10fc494e25870e7c4294863c9" + }, + "test_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv", + "exists": true, + "size": 5448, + "sha256": "cbcbb062a1faf5fa44b66c80532baa229e05b94fc42137269761e6c6d84af20a" + }, + "profile_json": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_profile.json", + "exists": true, + "size": 3240, + "sha256": "526b7163b2076c93c0bf4638438081ee8a6907065d5b608faa40d1a3dbc2a27b" + }, + "contract_json": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_contract_v1.json", + "exists": true, + "size": 3731, + "sha256": "fb595a876054c2ee9b4e10cfe83a5691588de1d25466cbb9d473c18ad3604009" + } + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/X_cat_train.npy b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/X_cat_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..862303f0519083c21dea3de3dfc30aaabc4a90fd --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/X_cat_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ab974a88850d8041e57dd6341c43e40877629a6e0adaf17a6152e0165922ed3 +size 16885 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/X_cat_unnorm.npy b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/X_cat_unnorm.npy new file mode 100644 index 0000000000000000000000000000000000000000..b648311a8f6441d68bdba8e8f5737657ea79a9e1 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/X_cat_unnorm.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06a6d4b433422299123e5388de04c0166e6143ab0788c38fe47f40da1c9c727d +size 66464 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/config.toml b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/config.toml new file mode 100644 index 0000000000000000000000000000000000000000..d2a6930b9108b5e2a8f747ee1a781a87b6bc55bb --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/config.toml @@ -0,0 +1,39 @@ +seed = 0 +parent_dir = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/output" +real_data_path = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/data" +model_type = "mlp" +num_numerical_features = 0 +device = "cuda:0" + +[model_params] +d_in = 6 +num_classes = 4 +is_y_cond = true + +[model_params.rtdl_params] +d_layers = [256, 256] +dropout = 0.0 + +[diffusion_params] +num_timesteps = 200 +gaussian_loss_type = "mse" + +[train.main] +steps = 2000 +lr = 0.001 +weight_decay = 0.0 +batch_size = 256 + +[train.T] +seed = 0 +normalization = "quantile" +num_nan_policy = "__none__" +cat_nan_policy = "__none__" +cat_min_frequency = "__none__" +cat_encoding = "__none__" +y_policy = "default" + +[sample] +num_samples = 1382 +batch_size = 256 +seed = 0 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/info.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/info.json new file mode 100644 index 0000000000000000000000000000000000000000..0f2b351a317260c450725d5a04373330ad3701a3 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/info.json @@ -0,0 +1,29 @@ +{ + "name": "benchmark_dataset", + "task_type": "multiclass", + "n_num_features": 0, + "n_cat_features": 6, + "train_size": 1382, + "num_col_idx": [], + "cat_col_idx": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "target_col_idx": [ + 6 + ], + "column_names": [ + "buying", + "maint", + "doors", + "persons", + "lug_boot", + "safety", + "class" + ], + "num_classes": 4 +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/loss.csv b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/loss.csv new file mode 100644 index 0000000000000000000000000000000000000000..d5c7da855b8ef5835b2dcde545c19bbb7c72d227 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/loss.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57f250e7354878e53460575baff2b9f2824f988cc8ff11b40b4c980408373c4f +size 505 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/model.pt b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/model.pt new file mode 100644 index 0000000000000000000000000000000000000000..127c529e5a524f3d4d02fdfd5c84087cabb70040 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/model.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:594458bf70bca8778c1355fcc833e6db2d387465769d2ea8135d727934e2c28f +size 566934 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/model_ema.pt b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/model_ema.pt new file mode 100644 index 0000000000000000000000000000000000000000..d29643dbbb54baed7564f91a11c10dffe3f1ed90 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/model_ema.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ecd8cbe4cf1c5d92c800e17e5be4d19b80c5673a835f655f373bf0dc0eef4c1 +size 567778 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/y_train.npy b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/y_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..aa9afff4d061333b18828274b1072d1b884f162c --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/output/y_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58b1a722d369027a22bed702e3539c6fefa976741570c4c0a2f8546e2978c3d7 +size 11184 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/normalized_schema_snapshot.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/normalized_schema_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..689b1d00d96508e44ba40e58dc4560e19afc2b3b --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/normalized_schema_snapshot.json @@ -0,0 +1,144 @@ +{ + "dataset_id": "c2", + "target_column": "class", + "task_type": "classification", + "columns": [ + { + "name": "buying", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "med", + "high", + "low" + ] + } + }, + { + "name": "maint", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "low", + "med", + "high" + ] + } + }, + { + "name": "doors", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "2", + "5more", + "3", + "4" + ] + } + }, + { + "name": "persons", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "2", + "4", + "more" + ] + } + }, + { + "name": "lug_boot", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "small", + "big", + "med" + ] + } + }, + { + "name": "safety", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "low", + "high", + "med" + ] + } + }, + { + "name": "class", + "role": "target", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "unacc", + "good", + "acc", + "vgood" + ] + } + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/public_gate_report.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/public_gate_report.json new file mode 100644 index 0000000000000000000000000000000000000000..2e4cdcb2a4e28e40d59b17a83e773f622b7636a5 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/public_gate_report.json @@ -0,0 +1,37 @@ +{ + "dataset_id": "c2", + "status": "pass", + "checks": [ + { + "check_id": "PG001_csv_parse_ok", + "status": "pass" + }, + { + "check_id": "PG002_split_header_consistent", + "status": "pass" + }, + { + "check_id": "PG003_profile_header_match", + "status": "pass" + }, + { + "check_id": "PG004_missing_token_normalized", + "status": "pass" + }, + { + "check_id": "PG005_semantic_type_validated", + "status": "pass" + }, + { + "check_id": "PG006_target_defined_and_valid", + "status": "pass" + } + ], + "target_column": "class", + "task_type": "classification", + "input_splits": { + "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv", + "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv", + "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/staged_input_manifest.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/staged_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..637a4e41d23df216439071f6757c5549d916d585 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/staged_input_manifest.json @@ -0,0 +1,149 @@ +{ + "dataset_id": "c2", + "target_column": "class", + "task_type": "classification", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/public_gate_report.json", + "column_schema": [ + { + "name": "buying", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "med", + "high", + "low" + ] + } + }, + { + "name": "maint", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "low", + "med", + "high" + ] + } + }, + { + "name": "doors", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "2", + "5more", + "3", + "4" + ] + } + }, + { + "name": "persons", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "2", + "4", + "more" + ] + } + }, + { + "name": "lug_boot", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "small", + "big", + "med" + ] + } + }, + { + "name": "safety", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "low", + "high", + "med" + ] + } + }, + { + "name": "class", + "role": "target", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "unacc", + "good", + "acc", + "vgood" + ] + } + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/run_config.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/run_config.json new file mode 100644 index 0000000000000000000000000000000000000000..a46955e1b93be7d7411b04cd706f9fb97f91be04 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/run_config.json @@ -0,0 +1,45 @@ +{ + "schema_version": 1, + "recorded_at": "2026-05-04T18:11:03", + "dataset_id": "c2", + "model": "tabddpm", + "work_dir": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103", + "dataset_source_requested": "new", + "dataset_source_resolved": "new", + "cli_args": { + "model": "tabddpm", + "dataset": "c2", + "dataset_source": "new", + "train": true, + "generate": true, + "num_rows": 0, + "epochs": null, + "output_dir": null, + "model_dir": null, + "work_dir": null, + "resume": false, + "no_stats": false + }, + "resolved": { + "num_rows": 1382, + "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103", + "output_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/tabddpm-c2-1382-20260504_181140.csv" + }, + "input_artifacts": { + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/public_gate_report.json", + "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/staged_input_manifest.json", + "model_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/model_input_manifest.json", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/train.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/staged_features.json", + "target_column": "class", + "task_type": "classification" + }, + "env_overrides": { + "BENCHMARK_TABDDPM_GPUS": "device=3", + "TABDDPM_NUM_TIMESTEPS": "200", + "TABDDPM_SAMPLE_BATCH_SIZE": "256", + "TABDDPM_STEPS_PER_EPOCH": "40", + "TABDDPM_TRAIN_BATCH_SIZE": "256", + "TABDDPM_TRAIN_LR": "0.001" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/runtime_result.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/runtime_result.json new file mode 100644 index 0000000000000000000000000000000000000000..878ba523189e12e2c0225261e4848c928b5dfaf3 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/runtime_result.json @@ -0,0 +1,27 @@ +{ + "dataset_id": "c2", + "model": "tabddpm", + "run_id": "tabddpm-c2-20260504_181103", + "public_gate_status": "pass", + "adapter_ready_status": "pass", + "train_status": "success", + "generate_status": "success", + "reason_code": null, + "reason_detail": null, + "artifacts": { + "synthetic_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/tabddpm-c2-1382-20260504_181140.csv", + "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103" + }, + "timings": { + "train": { + "started_at": "2026-05-04T18:11:03", + "ended_at": "2026-05-04T18:11:40", + "duration_sec": 36.309 + }, + "generate": { + "started_at": "2026-05-04T18:11:40", + "ended_at": "2026-05-04T18:11:55", + "duration_sec": 14.826 + } + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/staged_features.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/staged_features.json new file mode 100644 index 0000000000000000000000000000000000000000..61783861dd5de501592f76acb0469cf3f3b2622a --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/staged_features.json @@ -0,0 +1,37 @@ +[ + { + "feature_name": "buying", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "maint", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "doors", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "persons", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "lug_boot", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "safety", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "class", + "data_type": "categorical", + "is_target": true + } +] \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/test.csv b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/test.csv new file mode 100644 index 0000000000000000000000000000000000000000..392a0d7189a34d8f13ecf20a99d64b03230d517c --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/test.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b48114a7d0bc5bd9a07920f903c8d4aba8bf98bf2a66a050da03588b0245ca73 +size 5273 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/train.csv b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/train.csv new file mode 100644 index 0000000000000000000000000000000000000000..da4f4d55134eebc0e51157d0d467536371db1484 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/train.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4aed00c2c2b3f88a55a7ebff31b2e1b5e0e32fb0a7267e0b9d2779cd23e434dd +size 41565 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/val.csv b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/val.csv new file mode 100644 index 0000000000000000000000000000000000000000..af8caf7ee42524188534a3daf32996dc491952d9 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/val.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26e90c1170a57a14c05832ac88027722b1f3848f9662c7c09ef7c93dcba4cc01 +size 5176 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/adapter_report.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/adapter_report.json new file mode 100644 index 0000000000000000000000000000000000000000..2b7902d6a56d5de7e67c14f54def5d51a189eb8c --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/adapter_report.json @@ -0,0 +1,7 @@ +{ + "adapter_ready_status": "pass", + "adapter_fail_reason_code": null, + "adapter_fail_detail": null, + "adapter_transforms_applied": [], + "model_input_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/model_input_manifest.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/adapter_transforms_applied.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/adapter_transforms_applied.json new file mode 100644 index 0000000000000000000000000000000000000000..0637a088a01e8ddab3bf3fa98dbe804cbde1a0dc --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/adapter_transforms_applied.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/model_input_manifest.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/model_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..a0f2445cc08e90345603470963b98dc9b001343e --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/staged/tabddpm/model_input_manifest.json @@ -0,0 +1,151 @@ +{ + "dataset_id": "c2", + "model": "tabddpm", + "target_column": "class", + "task_type": "classification", + "column_schema": [ + { + "name": "buying", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "med", + "high", + "low" + ] + } + }, + { + "name": "maint", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "low", + "med", + "high" + ] + } + }, + { + "name": "doors", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "2", + "5more", + "3", + "4" + ] + } + }, + { + "name": "persons", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "2", + "4", + "more" + ] + } + }, + { + "name": "lug_boot", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "small", + "big", + "med" + ] + } + }, + { + "name": "safety", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "low", + "high", + "med" + ] + } + }, + { + "name": "class", + "role": "target", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "unacc", + "good", + "acc", + "vgood" + ] + } + } + ], + "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/staged_input_manifest.json", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181103/public_gate/public_gate_report.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/tabddpm-c2-1382-20260504_181140.csv b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/tabddpm-c2-1382-20260504_181140.csv new file mode 100644 index 0000000000000000000000000000000000000000..0e6d8c7e2706b54fb9fce4d10f3ba74378bb362f --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/tabddpm-c2-1382-20260504_181140.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:293d08ddd3708d81ed94b40d25b268a42f4d1c7351f50e3046b8b862e21c0e4b +size 41650 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/train_20260504_181103.log b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/train_20260504_181103.log new file mode 100644 index 0000000000000000000000000000000000000000..d1bb741fbeb6f2fcd03950e3432f561861e3193f --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181103/train_20260504_181103.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14cf68fa12bf8a9e4d7cc59a892456d54b976c676e71e3d6d92486ff58ee32d0 +size 766 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/_tabddpm_sample_r0.py b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/_tabddpm_sample_r0.py new file mode 100644 index 0000000000000000000000000000000000000000..9a94d2a41b2dcf189c488b2c4912a7dadb8e35ee --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/_tabddpm_sample_r0.py @@ -0,0 +1,66 @@ +import os, sys, subprocess, json +import numpy as np +import pandas as pd + +tabddpm_root = "/workspace/tabddpm/code" +assert os.path.isdir(tabddpm_root), f"TabDDPM source not mounted: {tabddpm_root}" +env = os.environ.copy() +env["PYTHONPATH"] = tabddpm_root + (os.pathsep + env.get("PYTHONPATH", "")) + +# Reuse the compat wrapper (patches collections.Sequence for skorch) +wrapper = os.path.join(tabddpm_root, "_compat_run.py") +if not os.path.exists(wrapper): + with open(wrapper, "w") as f: + f.write( + "import collections, collections.abc\n" + "for _a in ('Sequence','MutableSequence','MutableMapping','Mapping'," + "'MutableSet','Set','Callable','Iterable','Iterator'):\n" + " if not hasattr(collections, _a): setattr(collections, _a, getattr(collections.abc, _a, None))\n" + "import sys, runpy\n" + "sys.argv = sys.argv[1:]\n" + "runpy.run_path(sys.argv[0], run_name='__main__')\n" + ) + +print(f"[TabDDPM] Sampling 1382 rows") +ret = subprocess.run( + [sys.executable, wrapper, "scripts/pipeline.py", + "--config", "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/config_sample_20260504_181327_r0.toml", + "--sample"], + cwd=tabddpm_root, + env=env +) +if ret.returncode != 0: + sys.exit(ret.returncode) + +# 将 .npy 输出转为 CSV(npy 在 TabDDPM 的 parent_dir,即 npy_dir) +info_path = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/data/info.json" +with open(info_path) as f: + info = json.load(f) + +output_dir = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/output" +col_names = info.get("column_names", []) + +parts = [] +x_num_path = os.path.join(output_dir, "X_num_train.npy") +x_cat_path = os.path.join(output_dir, "X_cat_train.npy") +y_path = os.path.join(output_dir, "y_train.npy") + +if os.path.exists(x_num_path): + parts.append(np.load(x_num_path, allow_pickle=True)) +if os.path.exists(x_cat_path): + parts.append(np.load(x_cat_path, allow_pickle=True).astype(float)) +if os.path.exists(y_path): + y = np.load(y_path, allow_pickle=True) + parts.append(y.reshape(-1, 1) if y.ndim == 1 else y) + +if parts: + combined = np.concatenate(parts, axis=1) + if col_names and len(col_names) == combined.shape[1]: + df = pd.DataFrame(combined, columns=col_names) + else: + df = pd.DataFrame(combined) + df.to_csv("/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/tabddpm-c2-1382-20260504_181327.csv", index=False) + print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/tabddpm-c2-1382-20260504_181327.csv") +else: + print("[TabDDPM] WARNING: No output .npy files found") + sys.exit(1) diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/_tabddpm_train.py b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/_tabddpm_train.py new file mode 100644 index 0000000000000000000000000000000000000000..9930b28e955dff462191f2525b3a0fa738c7ca34 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/_tabddpm_train.py @@ -0,0 +1,32 @@ +import os, sys, subprocess + +tabddpm_root = "/workspace/tabddpm/code" +assert os.path.isdir(tabddpm_root), f"TabDDPM source not mounted: {tabddpm_root}" +env = os.environ.copy() +env["PYTHONPATH"] = tabddpm_root + (os.pathsep + env.get("PYTHONPATH", "")) + +# Write a wrapper that patches collections.Sequence (removed in Python 3.10+) +# before running pipeline.py - needed because skorch uses old API +wrapper = os.path.join(tabddpm_root, "_compat_run.py") +with open(wrapper, "w") as f: + f.write( + "import collections, collections.abc\n" + "for _a in ('Sequence','MutableSequence','MutableMapping','Mapping'," + "'MutableSet','Set','Callable','Iterable','Iterator'):\n" + " if not hasattr(collections, _a): setattr(collections, _a, getattr(collections.abc, _a, None))\n" + "import sys, runpy\n" + "sys.argv = sys.argv[1:]\n" + "runpy.run_path(sys.argv[0], run_name='__main__')\n" + ) + +print(f"[TabDDPM] Training, config=/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/config.toml") +ret = subprocess.run( + [sys.executable, wrapper, "scripts/pipeline.py", + "--config", "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/config.toml", + "--train"], + cwd=tabddpm_root, + env=env +) +if ret.returncode != 0: + sys.exit(ret.returncode) +print("[TabDDPM] Training complete") diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/config.toml b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/config.toml new file mode 100644 index 0000000000000000000000000000000000000000..1f89e2e3f7a297157b784a249a11249eeb27c9d0 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/config.toml @@ -0,0 +1,39 @@ +seed = 0 +parent_dir = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/output" +real_data_path = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/data" +model_type = "mlp" +num_numerical_features = 0 +device = "cuda:0" + +[model_params] +d_in = 6 +num_classes = 4 +is_y_cond = true + +[model_params.rtdl_params] +d_layers = [256, 256] +dropout = 0.0 + +[diffusion_params] +num_timesteps = 1000 +gaussian_loss_type = "mse" + +[train.main] +steps = 5000 +lr = 0.001 +weight_decay = 0.0 +batch_size = 256 + +[train.T] +seed = 0 +normalization = "quantile" +num_nan_policy = "__none__" +cat_nan_policy = "__none__" +cat_min_frequency = "__none__" +cat_encoding = "__none__" +y_policy = "default" + +[sample] +num_samples = 1000 +batch_size = 256 +seed = 0 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/config_sample_20260504_181327_r0.toml b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/config_sample_20260504_181327_r0.toml new file mode 100644 index 0000000000000000000000000000000000000000..6d926ececa1d9852eded91a9d1abf795c2056384 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/config_sample_20260504_181327_r0.toml @@ -0,0 +1,39 @@ +seed = 0 +parent_dir = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/output" +real_data_path = "/work/output-Benchmark-trainonly-v1/c2/tabddpm/tabddpm-c2-20260504_181207/data" +model_type = "mlp" +num_numerical_features = 0 +device = "cuda:0" + +[model_params] +d_in = 6 +num_classes = 4 +is_y_cond = true + +[model_params.rtdl_params] +d_layers = [256, 256] +dropout = 0.0 + +[diffusion_params] +num_timesteps = 1000 +gaussian_loss_type = "mse" + +[train.main] +steps = 5000 +lr = 0.001 +weight_decay = 0.0 +batch_size = 256 + +[train.T] +seed = 0 +normalization = "quantile" +num_nan_policy = "__none__" +cat_nan_policy = "__none__" +cat_min_frequency = "__none__" +cat_encoding = "__none__" +y_policy = "default" + +[sample] +num_samples = 1382 +batch_size = 256 +seed = 0 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/X_cat_train.npy b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/X_cat_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..e99f1ae8dc9e7155e5c4bbbd3c2f3f7215c628f7 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/X_cat_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24d2203601ba060728920e754747e5a1dc3955a1b5775e147382fee4f1812542 +size 66464 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/info.json b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/info.json new file mode 100644 index 0000000000000000000000000000000000000000..0f2b351a317260c450725d5a04373330ad3701a3 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/info.json @@ -0,0 +1,29 @@ +{ + "name": "benchmark_dataset", + "task_type": "multiclass", + "n_num_features": 0, + "n_cat_features": 6, + "train_size": 1382, + "num_col_idx": [], + "cat_col_idx": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "target_col_idx": [ + 6 + ], + "column_names": [ + "buying", + "maint", + "doors", + "persons", + "lug_boot", + "safety", + "class" + ], + "num_classes": 4 +} \ No newline at end of file diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/y_train.npy b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/y_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..8bfc8f9de7350657cd6411c55d2b9b87bea9c13a --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/data/y_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f8eb0b25043331a30fde5439f063eed59e7a76f45d7d102b9b4fbcd16b551b4 +size 11184 diff --git a/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/gen_20260504_181327_r0.log b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/gen_20260504_181327_r0.log new file mode 100644 index 0000000000000000000000000000000000000000..877963b0fe6be73beadf40653b39c241200f7327 --- /dev/null +++ b/SynthData0523/main/c2/tabddpm/tabddpm-c2-20260504_181207/gen_20260504_181327_r0.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b93d275fe4edebae555a0b578fb14998a7b5164eb5c79abe5b9d996cf4d671a9 +size 126462