diff --git a/.gitattributes b/.gitattributes index 239dee57335db037a9ced483cd637d55a0cb6c46..cc33520dfa82e922214e85e7274b49e3409f3585 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5585,3 +5585,35 @@ SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabbyflow_train_met SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_cat_test.npy filter=lfs diff=lfs merge=lfs -text SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_cat_val.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_test.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_val.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/info.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/real.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/test.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/val.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_test.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_val.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/train_20260429_041030.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/y_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/gen_20260422_211650.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/X_cat_unnorm.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/loss.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/model.pt filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/model_ema.pt filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/y_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/tabddpm-c7-10368-20260422_211650.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/train_20260422_211247.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/config.toml filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/config_sample_20260429_052217_r0.toml filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/info.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/y_train.npy filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/gen_20260429_052217_r0.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/input_snapshot.json filter=lfs diff=lfs merge=lfs -text diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_test.npy b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_test.npy new file mode 100644 index 0000000000000000000000000000000000000000..05368376414bc8e2221b9744c2e3746a587e749c --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_test.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba6482dc6705ea0ac5fc0355391800cb0937fe4c3221baa21bc1f47beec8c260 +size 128 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_train.npy b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..05368376414bc8e2221b9744c2e3746a587e749c --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba6482dc6705ea0ac5fc0355391800cb0937fe4c3221baa21bc1f47beec8c260 +size 128 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_val.npy b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_val.npy new file mode 100644 index 0000000000000000000000000000000000000000..05368376414bc8e2221b9744c2e3746a587e749c --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/X_num_val.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba6482dc6705ea0ac5fc0355391800cb0937fe4c3221baa21bc1f47beec8c260 +size 128 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/info.json b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/info.json new file mode 100644 index 0000000000000000000000000000000000000000..bb5c707d5a1452c467d7af5ddef5f665e0e52b44 --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/info.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf8e6d04301a95b045dd40f724647298b6bfd3566896816392a3f7add51b0e40 +size 1665 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/real.csv b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/real.csv new file mode 100644 index 0000000000000000000000000000000000000000..38ea9e3e3a618729b1d98a0d1efb1a2e98f2cbc8 --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/real.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ba16ecd55573b2bdc268f8a19464703e0109546f5951689c6d9a99eb5c6cc09 +size 269700 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/test.csv b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/test.csv new file mode 100644 index 0000000000000000000000000000000000000000..38ea9e3e3a618729b1d98a0d1efb1a2e98f2cbc8 --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/test.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ba16ecd55573b2bdc268f8a19464703e0109546f5951689c6d9a99eb5c6cc09 +size 269700 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/val.csv b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/val.csv new file mode 100644 index 0000000000000000000000000000000000000000..38ea9e3e3a618729b1d98a0d1efb1a2e98f2cbc8 --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/val.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ba16ecd55573b2bdc268f8a19464703e0109546f5951689c6d9a99eb5c6cc09 +size 269700 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_test.npy b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_test.npy new file mode 100644 index 0000000000000000000000000000000000000000..91a84420670ea33a588c708837d1c1fff56c64cd --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_test.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99ac41d294af4eecd6e8a45863077f58b49456e9d0e055344706824cbb034964 +size 83072 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_train.npy b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..91a84420670ea33a588c708837d1c1fff56c64cd --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99ac41d294af4eecd6e8a45863077f58b49456e9d0e055344706824cbb034964 +size 83072 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_val.npy b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_val.npy new file mode 100644 index 0000000000000000000000000000000000000000..91a84420670ea33a588c708837d1c1fff56c64cd --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/tabular_bundle/pipeline_c7/y_val.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99ac41d294af4eecd6e8a45863077f58b49456e9d0e055344706824cbb034964 +size 83072 diff --git a/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/train_20260429_041030.log b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/train_20260429_041030.log new file mode 100644 index 0000000000000000000000000000000000000000..572e7a80a24b5d4995f0aede17cc50fca294934b --- /dev/null +++ b/SynthData0523/main/c7/tabbyflow/tabbyflow-c7-20260429_041029/train_20260429_041030.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc98d78a1665a8ecd34fdf05631ab0fb93fd7e961a785cba1ba557d521b9a74f +size 452556 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/_tabddpm_sample.py b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/_tabddpm_sample.py new file mode 100644 index 0000000000000000000000000000000000000000..a5e6a37ca660f5f3e9fb4e51cdf4cb3b00e7c7d1 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/_tabddpm_sample.py @@ -0,0 +1,67 @@ +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 10368 rows") +ret = subprocess.run( + [sys.executable, wrapper, "scripts/pipeline.py", + "--config", "/work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/config_sample_20260422_211650.toml", + "--sample"], + cwd=tabddpm_root, + env=env +) +if ret.returncode != 0: + sys.exit(ret.returncode) + +# 将 .npy 输出转为 CSV +work_dir = "/work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246" +info_path = os.path.join(work_dir, "data", "info.json") +with open(info_path) as f: + info = json.load(f) + +output_dir = os.path.join(work_dir, "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-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/tabddpm-c7-10368-20260422_211650.csv", index=False) + print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/tabddpm-c7-10368-20260422_211650.csv") +else: + print("[TabDDPM] WARNING: No output .npy files found") + sys.exit(1) diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/_tabddpm_train.py b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/_tabddpm_train.py new file mode 100644 index 0000000000000000000000000000000000000000..ca34e9c5a89803ca4601fa39e091ec5dbc675ff7 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/_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-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/config.toml") +ret = subprocess.run( + [sys.executable, wrapper, "scripts/pipeline.py", + "--config", "/work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/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/c7/tabddpm/tabddpm-c7-20260422_211246/config.toml b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/config.toml new file mode 100644 index 0000000000000000000000000000000000000000..fb3507c47c65e585ed553137ac897af3cae2fd41 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/config.toml @@ -0,0 +1,39 @@ +seed = 0 +parent_dir = "/work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/output" +real_data_path = "/work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/data" +model_type = "mlp" +num_numerical_features = 0 +device = "cuda:0" + +[model_params] +d_in = 8 +num_classes = 5 +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 = 1000 +seed = 0 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/config_sample_20260422_211650.toml b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/config_sample_20260422_211650.toml new file mode 100644 index 0000000000000000000000000000000000000000..8291818e700d28d267bde633242bcdd5dd298a4b --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/config_sample_20260422_211650.toml @@ -0,0 +1,39 @@ +seed = 0 +parent_dir = "/work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/output" +real_data_path = "/work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/data" +model_type = "mlp" +num_numerical_features = 0 +device = "cuda:0" + +[model_params] +d_in = 8 +num_classes = 5 +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 = 10368 +batch_size = 1000 +seed = 0 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/X_cat_train.npy b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/X_cat_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..5088dd2f36e0ffeae013fe0c5cdc769d9d88d33b --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/X_cat_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe170020f0e97be3d763c4207ff95efc4e981264660ef6397fcf5f6e62d31eec +size 663680 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/info.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/info.json new file mode 100644 index 0000000000000000000000000000000000000000..348c194d9d198ccbef46a7046431163d973ec28c --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/info.json @@ -0,0 +1,33 @@ +{ + "name": "benchmark_dataset", + "task_type": "multiclass", + "n_num_features": 0, + "n_cat_features": 8, + "train_size": 10368, + "num_col_idx": [], + "cat_col_idx": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "target_col_idx": [ + 8 + ], + "column_names": [ + "parents", + "has_nurs", + "form", + "children", + "housing", + "finance", + "social", + "health", + "class" + ], + "num_classes": 5 +} \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/y_train.npy b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/y_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..91a84420670ea33a588c708837d1c1fff56c64cd --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/data/y_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99ac41d294af4eecd6e8a45863077f58b49456e9d0e055344706824cbb034964 +size 83072 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/gen_20260422_211650.log b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/gen_20260422_211650.log new file mode 100644 index 0000000000000000000000000000000000000000..0653ca49fe538737cc656ba3d7c7ed90a8e04046 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/gen_20260422_211650.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd3d24b779719f9ecfc0129b61fca1e901bb561708b26c0032dd35e9c3be7ebe +size 231192 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/input_snapshot.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/input_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..a96e042f3873b34ba4355c25abd9c6dbcf21adc5 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/input_snapshot.json @@ -0,0 +1,36 @@ +{ + "dataset_id": "c7", + "model": "tabddpm", + "inputs": { + "train_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-train.csv", + "exists": true, + "size": 857718, + "sha256": "0ec97b49cecfd452f07551a63db7b812b5998a1e37101eae82255d00aa6a6243" + }, + "val_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-val.csv", + "exists": true, + "size": 107489, + "sha256": "4501bb2be19f7e13b7ff5e9dedd74e3dd42f2cafc8cefd5435bda61fc974a769" + }, + "test_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-test.csv", + "exists": true, + "size": 107327, + "sha256": "f9e808033a07feabb980addcf8c5f75111189ac2fb70993b8ad0f5ca3d5cfbae" + }, + "profile_json": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c7/c7-dataset_profile.json", + "exists": true, + "size": 4014, + "sha256": "60424c615b91a26cf02d9bc1d7f91caa0ceb95bab39eb7cff6f9edea3ca0600e" + }, + "contract_json": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c7/c7-dataset_contract_v1.json", + "exists": true, + "size": 4759, + "sha256": "79a434a1e2553b14b9f2e98c1adfc32a71aaa0d6cd49234f3f8a5603efca4ebd" + } + } +} \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/X_cat_train.npy b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/X_cat_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..f8183bc55eccd79d810b175857172683dd345ab7 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/X_cat_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d34542d69bfcb43446e6b2145f7b4e3d7021647bf1ccae6bbeba3d28d493e8b +size 166337 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/X_cat_unnorm.npy b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/X_cat_unnorm.npy new file mode 100644 index 0000000000000000000000000000000000000000..c0bdad330becd4499ef968c87f2aaa57f4fcf2e5 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/X_cat_unnorm.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfcecc9937247ae449abe66f98c0f2dc30f6e626654a6773ed4acf442b65781d +size 663680 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/config.toml b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/config.toml new file mode 100644 index 0000000000000000000000000000000000000000..8291818e700d28d267bde633242bcdd5dd298a4b --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/config.toml @@ -0,0 +1,39 @@ +seed = 0 +parent_dir = "/work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/output" +real_data_path = "/work/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/data" +model_type = "mlp" +num_numerical_features = 0 +device = "cuda:0" + +[model_params] +d_in = 8 +num_classes = 5 +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 = 10368 +batch_size = 1000 +seed = 0 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/info.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/info.json new file mode 100644 index 0000000000000000000000000000000000000000..348c194d9d198ccbef46a7046431163d973ec28c --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/info.json @@ -0,0 +1,33 @@ +{ + "name": "benchmark_dataset", + "task_type": "multiclass", + "n_num_features": 0, + "n_cat_features": 8, + "train_size": 10368, + "num_col_idx": [], + "cat_col_idx": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "target_col_idx": [ + 8 + ], + "column_names": [ + "parents", + "has_nurs", + "form", + "children", + "housing", + "finance", + "social", + "health", + "class" + ], + "num_classes": 5 +} \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/loss.csv b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/loss.csv new file mode 100644 index 0000000000000000000000000000000000000000..c076a3fa94f8f24c742f6d4be7812ea84af2c936 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/loss.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb3bdcbf723a868ebd4498356ad8ca74c05df740337a5113f1fc296e89e7ff45 +size 1255 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/model.pt b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/model.pt new file mode 100644 index 0000000000000000000000000000000000000000..01f8ce778d19208dab929e07297f7a8002b86f85 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/model.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30cd294d3ef5b5652c736a09769437f08af5f27832a2accb4faf9453c44a4ec3 +size 576662 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/model_ema.pt b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/model_ema.pt new file mode 100644 index 0000000000000000000000000000000000000000..cc549ad8852bc6e48f0569a02cb8762f2632088a --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/model_ema.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd4abc351c4e06d506cc2eeee33844cbafca9bb6be7deb7d513e6c4409e61585 +size 577506 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/y_train.npy b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/y_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..8477ee1875e26cf8e1a7705daef31a8ad528766e --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/output/y_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8bc12cd5aab117213155fc70e2895b6990bc505a4d5e69dd12e2d8651a64e214 +size 83072 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/normalized_schema_snapshot.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/normalized_schema_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..3ea4859ec2aa245a19531b254f45d87237c23069 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/normalized_schema_snapshot.json @@ -0,0 +1,183 @@ +{ + "dataset_id": "c7", + "target_column": "class", + "task_type": "classification", + "columns": [ + { + "name": "parents", + "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.000289, + "example_values": [ + "usual", + "pretentious", + "great_pret" + ] + } + }, + { + "name": "has_nurs", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 5, + "unique_ratio": 0.000482, + "example_values": [ + "very_crit", + "critical", + "improper", + "less_proper", + "proper" + ] + } + }, + { + "name": "form", + "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.000386, + "example_values": [ + "complete", + "completed", + "incomplete", + "foster" + ] + } + }, + { + "name": "children", + "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.000386, + "example_values": [ + "1", + "3", + "2", + "more" + ] + } + }, + { + "name": "housing", + "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.000289, + "example_values": [ + "less_conv", + "convenient", + "critical" + ] + } + }, + { + "name": "finance", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 2, + "unique_ratio": 0.000193, + "example_values": [ + "convenient", + "inconv" + ] + } + }, + { + "name": "social", + "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.000289, + "example_values": [ + "slightly_prob", + "nonprob", + "problematic" + ] + } + }, + { + "name": "health", + "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.000289, + "example_values": [ + "recommended", + "priority", + "not_recom" + ] + } + }, + { + "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": 5, + "unique_ratio": 0.000482, + "example_values": [ + "priority", + "spec_prior", + "not_recom", + "very_recom", + "recommend" + ] + } + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/public_gate_report.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/public_gate_report.json new file mode 100644 index 0000000000000000000000000000000000000000..3328fe59cd490a424e50f931e9eedba9e81d1cec --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/public_gate_report.json @@ -0,0 +1,37 @@ +{ + "dataset_id": "c7", + "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/c7/c7-train.csv", + "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-val.csv", + "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c7/c7-test.csv" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/staged_input_manifest.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/staged_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..ee8ee8effdbb918ae13e20b6b70f39d8315d6a5d --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/staged_input_manifest.json @@ -0,0 +1,188 @@ +{ + "dataset_id": "c7", + "target_column": "class", + "task_type": "classification", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/public_gate_report.json", + "column_schema": [ + { + "name": "parents", + "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.000289, + "example_values": [ + "usual", + "pretentious", + "great_pret" + ] + } + }, + { + "name": "has_nurs", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 5, + "unique_ratio": 0.000482, + "example_values": [ + "very_crit", + "critical", + "improper", + "less_proper", + "proper" + ] + } + }, + { + "name": "form", + "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.000386, + "example_values": [ + "complete", + "completed", + "incomplete", + "foster" + ] + } + }, + { + "name": "children", + "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.000386, + "example_values": [ + "1", + "3", + "2", + "more" + ] + } + }, + { + "name": "housing", + "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.000289, + "example_values": [ + "less_conv", + "convenient", + "critical" + ] + } + }, + { + "name": "finance", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 2, + "unique_ratio": 0.000193, + "example_values": [ + "convenient", + "inconv" + ] + } + }, + { + "name": "social", + "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.000289, + "example_values": [ + "slightly_prob", + "nonprob", + "problematic" + ] + } + }, + { + "name": "health", + "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.000289, + "example_values": [ + "recommended", + "priority", + "not_recom" + ] + } + }, + { + "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": 5, + "unique_ratio": 0.000482, + "example_values": [ + "priority", + "spec_prior", + "not_recom", + "very_recom", + "recommend" + ] + } + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/runtime_result.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/runtime_result.json new file mode 100644 index 0000000000000000000000000000000000000000..46507a164d9ce010e306aea699a321db8fdc5669 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/runtime_result.json @@ -0,0 +1,15 @@ +{ + "dataset_id": "c7", + "model": "tabddpm", + "run_id": "tabddpm-c7-20260422_211246", + "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-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/tabddpm-c7-10368-20260422_211650.csv", + "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/staged_features.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/staged_features.json new file mode 100644 index 0000000000000000000000000000000000000000..0e23df6bcfb7ecfd44dfefc3d0ca0bf6b6aebc60 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/staged_features.json @@ -0,0 +1,47 @@ +[ + { + "feature_name": "parents", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "has_nurs", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "form", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "children", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "housing", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "finance", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "social", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "health", + "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/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/test.csv b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/test.csv new file mode 100644 index 0000000000000000000000000000000000000000..cb9d7081ca745e9eed28a35168872d450c4a2a44 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/test.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2042076337d5c37c6476e6bca2bd33cb5a171450c27894534ef50ac223256058 +size 106030 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/train.csv b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/train.csv new file mode 100644 index 0000000000000000000000000000000000000000..4c8e5e0c5031fc7e8e25213132c1231950ec29da --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/train.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b37f6b2ef5257f40bd826ac956749881f0f474362bdb56e8c5728ad629242e3a +size 847349 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/val.csv b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/val.csv new file mode 100644 index 0000000000000000000000000000000000000000..55792963756b1ae35b4d79dee11881372962b8d5 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/val.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eff6dec27c3740661a1ae84dea391d690dfb60342bfd5d7527b903fdd6009780 +size 106192 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/tabddpm/adapter_report.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/tabddpm/adapter_report.json new file mode 100644 index 0000000000000000000000000000000000000000..47c04f15d2dcdc52872fa585dab0a545b3fb90f6 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/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-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/staged/tabddpm/model_input_manifest.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/tabddpm/adapter_transforms_applied.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/tabddpm/adapter_transforms_applied.json new file mode 100644 index 0000000000000000000000000000000000000000..0637a088a01e8ddab3bf3fa98dbe804cbde1a0dc --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/tabddpm/adapter_transforms_applied.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/tabddpm/model_input_manifest.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/tabddpm/model_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..7e392a26c0b40aa9b60261ccfc731641c529a0e2 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/staged/tabddpm/model_input_manifest.json @@ -0,0 +1,190 @@ +{ + "dataset_id": "c7", + "model": "tabddpm", + "target_column": "class", + "task_type": "classification", + "column_schema": [ + { + "name": "parents", + "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.000289, + "example_values": [ + "usual", + "pretentious", + "great_pret" + ] + } + }, + { + "name": "has_nurs", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 5, + "unique_ratio": 0.000482, + "example_values": [ + "very_crit", + "critical", + "improper", + "less_proper", + "proper" + ] + } + }, + { + "name": "form", + "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.000386, + "example_values": [ + "complete", + "completed", + "incomplete", + "foster" + ] + } + }, + { + "name": "children", + "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.000386, + "example_values": [ + "1", + "3", + "2", + "more" + ] + } + }, + { + "name": "housing", + "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.000289, + "example_values": [ + "less_conv", + "convenient", + "critical" + ] + } + }, + { + "name": "finance", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 2, + "unique_ratio": 0.000193, + "example_values": [ + "convenient", + "inconv" + ] + } + }, + { + "name": "social", + "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.000289, + "example_values": [ + "slightly_prob", + "nonprob", + "problematic" + ] + } + }, + { + "name": "health", + "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.000289, + "example_values": [ + "recommended", + "priority", + "not_recom" + ] + } + }, + { + "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": 5, + "unique_ratio": 0.000482, + "example_values": [ + "priority", + "spec_prior", + "not_recom", + "very_recom", + "recommend" + ] + } + } + ], + "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/staged_input_manifest.json", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/tabddpm/tabddpm-c7-20260422_211246/public_gate/public_gate_report.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/tabddpm-c7-10368-20260422_211650.csv b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/tabddpm-c7-10368-20260422_211650.csv new file mode 100644 index 0000000000000000000000000000000000000000..9af24a30160952a7a37b5d60c89a33ed48d016c8 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/tabddpm-c7-10368-20260422_211650.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a3f834e97b757984797f87b84fb79cc1a333ca7802f16fe63c85f1fb60eae4f +size 846383 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/train_20260422_211247.log b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/train_20260422_211247.log new file mode 100644 index 0000000000000000000000000000000000000000..1131680952d1e73a1b937c0ce5947165913d9aab --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260422_211246/train_20260422_211247.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f028e706e08a19c4a934b82131e1effca68e7b9828a75b6b087059ef0d8381ed +size 807 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/_tabddpm_sample_r0.py b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/_tabddpm_sample_r0.py new file mode 100644 index 0000000000000000000000000000000000000000..6cee16423f22d5273df79a48b8f237db4b9d4d7b --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/_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 10368 rows") +ret = subprocess.run( + [sys.executable, wrapper, "scripts/pipeline.py", + "--config", "/work/output-Benchmark-trainonly-v1/c7/tabddpm/tabddpm-c7-20260429_052039/config_sample_20260429_052217_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/c7/tabddpm/tabddpm-c7-20260429_052039/data/info.json" +with open(info_path) as f: + info = json.load(f) + +output_dir = "/work/output-Benchmark-trainonly-v1/c7/tabddpm/tabddpm-c7-20260429_052039/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/c7/tabddpm/tabddpm-c7-20260429_052039/tabddpm-c7-10368-20260429_052217.csv", index=False) + print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-Benchmark-trainonly-v1/c7/tabddpm/tabddpm-c7-20260429_052039/tabddpm-c7-10368-20260429_052217.csv") +else: + print("[TabDDPM] WARNING: No output .npy files found") + sys.exit(1) diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/_tabddpm_train.py b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/_tabddpm_train.py new file mode 100644 index 0000000000000000000000000000000000000000..d8e86af9f02664794a8c84227a73652c2b8262e6 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/_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/c7/tabddpm/tabddpm-c7-20260429_052039/config.toml") +ret = subprocess.run( + [sys.executable, wrapper, "scripts/pipeline.py", + "--config", "/work/output-Benchmark-trainonly-v1/c7/tabddpm/tabddpm-c7-20260429_052039/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/c7/tabddpm/tabddpm-c7-20260429_052039/config.toml b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/config.toml new file mode 100644 index 0000000000000000000000000000000000000000..37152f5497165f0b2cd3a2690600761e8509d232 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/config.toml @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38e0dd85672fa33a4970b0ea4092e7c012689bf30cece5e40ebd8b6e8e6de7be +size 768 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/config_sample_20260429_052217_r0.toml b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/config_sample_20260429_052217_r0.toml new file mode 100644 index 0000000000000000000000000000000000000000..9c422dcbf9d73ac224936c252b61ba80bda1b3ef --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/config_sample_20260429_052217_r0.toml @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71b6ed1f4efb6485fabe59a519fe78c4c2800060621e21dedd76cf81a6a47515 +size 769 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/X_cat_train.npy b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/X_cat_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..5088dd2f36e0ffeae013fe0c5cdc769d9d88d33b --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/X_cat_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe170020f0e97be3d763c4207ff95efc4e981264660ef6397fcf5f6e62d31eec +size 663680 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/info.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/info.json new file mode 100644 index 0000000000000000000000000000000000000000..0fd0f75ad6d7cd9b67efcf24ef7932bd59958ef8 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/info.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:960b6c1ebf533b50080c1a84134f73e428959d81c2855d624612b931ff02c08c +size 438 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/y_train.npy b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/y_train.npy new file mode 100644 index 0000000000000000000000000000000000000000..91a84420670ea33a588c708837d1c1fff56c64cd --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/data/y_train.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99ac41d294af4eecd6e8a45863077f58b49456e9d0e055344706824cbb034964 +size 83072 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/gen_20260429_052217_r0.log b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/gen_20260429_052217_r0.log new file mode 100644 index 0000000000000000000000000000000000000000..fe08f5b853719148a08e8916a44b9a1f7fbb02b0 --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/gen_20260429_052217_r0.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69eefeccadb18bbb24b45d6445e5a0e9ef0df1dafbb5ac687437c022bb447521 +size 231465 diff --git a/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/input_snapshot.json b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/input_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..41c636fddd02a3a86781f0c7d0fa41be5e93537d --- /dev/null +++ b/SynthData0523/main/c7/tabddpm/tabddpm-c7-20260429_052039/input_snapshot.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d056a60ef09690aa2a16b0f7f9017df8959c0ffddb6e355f24ba7ced79ae4d3 +size 1348