diff --git a/.gitattributes b/.gitattributes index 90f021e9e8895d864257fc1fe62062a011354edd..0b9fce10beb6c597f5e88bc0519f66277c33ef5a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5392,3 +5392,31 @@ SynthData0523/main/c6/tvae/tvae-c6-20260419_191329/staged/public/test.csv filter SynthData0523/main/c6/tvae/tvae-c6-20260419_191329/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text SynthData0523/main/c6/tvae/tvae-c6-20260419_191329/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text SynthData0523/main/c6/tvae/tvae-c6-20260419_191329/tvae-c6-7636-20260419_191634.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/arf-c7-10368-20260429_031026.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/arf_model.pkl filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/gen_20260429_031026.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/input_snapshot.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/runtime_result.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/adapter_report.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_030948/train_20260429_030948.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_031427/arf-c7-10368-20260429_031508.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_031427/arf_model.pkl filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_031427/gen_20260429_031508.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/arf/arf-c7-20260429_031427/train_20260429_031427.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-1000-20260321_061903.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-10368-20260330_065316.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260321_061903.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260330_065316.log filter=lfs diff=lfs merge=lfs -text diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/_arf_generate.py b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/_arf_generate.py new file mode 100644 index 0000000000000000000000000000000000000000..44f72d63db070539b9ff78e9f4150ec2dff090c7 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/_arf_generate.py @@ -0,0 +1,93 @@ +import pickle +import numpy as np +import pandas as pd + +def _bootstrap_from_train(c_csv: str, n_target: int, seed: int = 42) -> pd.DataFrame: + """当 arfpy.forge 完全不可用时,从训练 CSV 有放回抽样,保证行数与列对齐。""" + src = pd.read_csv(c_csv, encoding="utf-8-sig", low_memory=False) + src = src.replace([np.inf, -np.inf], np.nan).dropna(axis=1, how="all") + src = src.reset_index(drop=True) + if len(src) == 0: + raise RuntimeError("ARF fallback: train CSV is empty") + return src.sample(n=n_target, replace=True, random_state=seed).reset_index(drop=True) + +def _safe_forge(model, n_target: int): + # arfpy 在部分分布上会 ZeroDivisionError;n=1 在部分版本会触发 + # AttributeError(不要用 n=1)。失败返回 None,由外层走 bootstrap。 + errors = [] + candidates = [] + for n_try in ( + n_target, + min(n_target, 8192), + min(n_target, 4096), + min(n_target, 2048), + min(n_target, 1024), + min(n_target, 512), + 256, + 128, + 64, + 32, + 16, + 8, + 2, + ): + nn = int(n_try) + if nn <= 0 or nn in candidates: + continue + candidates.append(nn) + for n_try in candidates: + try: + out = model.forge(n=n_try).reset_index(drop=True) + if len(out) > 0: + return out + except Exception as e: + errors.append(f"n={n_try}: {type(e).__name__}: {e}") + print("[ARF] forge failed after retries; last errors:", " | ".join(errors[-4:])) + return None + +n_target = int(10368) +c_csv = "/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_030948/staged/public/train.csv" +with open("/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_030948/arf_model.pkl", "rb") as f: + model = pickle.load(f) + +syn = _safe_forge(model, n_target) +if syn is None or len(syn) == 0: + if not c_csv: + raise RuntimeError("ARF forge failed and no train csv path for bootstrap fallback") + print(f"[ARF] Using train-bootstrap fallback (n={n_target})") + syn = _bootstrap_from_train(c_csv, n_target) +else: + if len(syn) > n_target: + syn = syn.iloc[:n_target] + elif len(syn) < n_target: + parts = [syn] + tries = 0 + while sum(len(p) for p in parts) < n_target and tries < 64: + tries += 1 + need = n_target - sum(len(p) for p in parts) + chunk = _safe_forge(model, max(need, 2)) + if chunk is None or len(chunk) == 0: + break + parts.append(chunk) + syn = pd.concat(parts, ignore_index=True).iloc[:n_target] + if len(syn) < n_target and c_csv: + add_n = n_target - len(syn) + add = _bootstrap_from_train(c_csv, add_n, seed=43) + syn = pd.concat([syn, add], ignore_index=True).iloc[:n_target] + +_ds_id = 'c7' +if _ds_id == "c19": + # 仅 c19:object 列内裸换行会使 pivot 用 csv.reader 统计到的「记录数」大于 DataFrame 行数 → Sw。 + for _col in syn.columns: + if syn[_col].dtype == object: + syn[_col] = ( + syn[_col] + .astype(str) + .str.replace("\r\n", " ", regex=False) + .str.replace("\n", " ", regex=False) + .str.replace("\r", " ", regex=False) + ) + syn = syn.iloc[:n_target].reset_index(drop=True) + +syn.to_csv("/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_030948/arf-c7-10368-20260429_031026.csv", index=False) +print(f"[ARF] Generated {len(syn)} rows (requested {n_target}) -> /work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_030948/arf-c7-10368-20260429_031026.csv") diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/_arf_train.py b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/_arf_train.py new file mode 100644 index 0000000000000000000000000000000000000000..91239e3716171e5b18e61a1140b0bcbdeb926dce --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/_arf_train.py @@ -0,0 +1,37 @@ +import pickle +import numpy as np +import pandas as pd +from arfpy import arf + +def _sanitize_for_arf(df: pd.DataFrame) -> pd.DataFrame: + """缓解 forge 阶段 scipy.stats.truncnorm / 除零:处理 inf、NaN 与极端尾部。""" + df = df.replace([np.inf, -np.inf], np.nan) + df = df.dropna(axis=1, how="all") + for col in df.select_dtypes(include=[np.number]).columns: + med = df[col].median() + if pd.isna(med): + med = 0.0 + df[col] = df[col].fillna(med) + nu = int(df[col].nunique(dropna=True)) + if nu <= 1: + continue + lo, hi = df[col].quantile(0.001), df[col].quantile(0.999) + if pd.notna(lo) and pd.notna(hi) and lo < hi: + df[col] = df[col].clip(lo, hi) + return df + +df = pd.read_csv("/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_030948/staged/public/train.csv") +df = _sanitize_for_arf(df) +print(f"[ARF] Training on {len(df)} rows, {len(df.columns)} cols") + +model = arf.arf(x=df) +if hasattr(model, "fit"): + model.fit() +elif hasattr(model, "forde"): + model.forde() +else: + raise RuntimeError("arfpy API: no fit() / forde()") + +with open("/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_030948/arf_model.pkl", "wb") as f: + pickle.dump(model, f) +print(f"[ARF] Model saved -> /work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_030948/arf_model.pkl") diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/arf-c7-10368-20260429_031026.csv b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/arf-c7-10368-20260429_031026.csv new file mode 100644 index 0000000000000000000000000000000000000000..0f1aef2f26f514478160dc5e75b581aa0a1f8367 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/arf-c7-10368-20260429_031026.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66bc5cb299efafaea27685aa7dabdd62ede6e19adf9aae833cfe6c8c6aa6b81c +size 846612 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/arf_model.pkl b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/arf_model.pkl new file mode 100644 index 0000000000000000000000000000000000000000..3008fca0f2b479982cb9cb9836163225c4b6000f --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/arf_model.pkl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8786230db2bbc8dec7374177bbdc74810e36d36ad685dcdba983ed5e6e3f84c +size 44356271 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/gen_20260429_031026.log b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/gen_20260429_031026.log new file mode 100644 index 0000000000000000000000000000000000000000..1d997be670b8ef4c9905653e9acc8324604abbca --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/gen_20260429_031026.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f94fa2b074d235488ffe68c5133b8e6c8361d97a22d7ac461165f2b363bbbaa1 +size 3250 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/input_snapshot.json b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/input_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..2f3517eec078538ee0e40b39187a86651e322b55 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/input_snapshot.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fa997cdad2bc623738861147a6af6758eadb4b745f3d13e434a27de38572b0b +size 1344 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/normalized_schema_snapshot.json b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/normalized_schema_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..fca411baa43411daa3e4f118be2a3338533a82e7 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/normalized_schema_snapshot.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5dd68094a5d8fc40d291695c5aa12bc01cfe8d3a62848b4bcfd82c2e88ed19c9 +size 4177 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/public_gate_report.json b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/public_gate_report.json new file mode 100644 index 0000000000000000000000000000000000000000..40baa69507ea7be2662b255cd45bfa9a625256ab --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/public_gate_report.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f08566bcd78a9005059bf27f5f9ecf74954e2be289410d19100e900577f651ea +size 912 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/staged_input_manifest.json b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/staged_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..212d3dd2ba65f3ec43c91cc13bc98b102a9532f6 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/public_gate/staged_input_manifest.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23dd606bde023620b34436e58fdef8d4c6fe20c8bd922adb655ebab9614122b7 +size 4943 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/runtime_result.json b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/runtime_result.json new file mode 100644 index 0000000000000000000000000000000000000000..ea4934cb25e15db97b1bdff672d075c0aa9c8ad3 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/runtime_result.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:867f666b90ee2c04d23d27f7353e27bda5597a81c4ed706b1a3bc21f9a291387 +size 576 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/adapter_report.json b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/adapter_report.json new file mode 100644 index 0000000000000000000000000000000000000000..51df19bcf25221b4f7525d371cf01f5447f73395 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/adapter_report.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afd4342f12f2ae85f0422fdaf93c5c4d07f11d00cc11a257054ee442210e8b94 +size 309 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/adapter_transforms_applied.json b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/adapter_transforms_applied.json new file mode 100644 index 0000000000000000000000000000000000000000..6f3aaa01a627a955d2022165805d2786c0da78ba --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/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/c7/arf/arf-c7-20260429_030948/staged/arf/model_input_manifest.json b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/model_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..c0bffd125a7d262599d4309817cdba2a2c3ad9d1 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/arf/model_input_manifest.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd356b1e3c6650404bac66959a42330cb773dceeb875c2cc4b27d0a4c2a4ffc9 +size 5128 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/staged_features.json b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/staged_features.json new file mode 100644 index 0000000000000000000000000000000000000000..57d8b2250245142d63ae1db7ef7386e372c9ac86 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/staged_features.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07596ae0689482090a05749dba332eca061d863cde5d8bf7a83e8c2c92abb330 +size 851 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/test.csv b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/test.csv new file mode 100644 index 0000000000000000000000000000000000000000..cb9d7081ca745e9eed28a35168872d450c4a2a44 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/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/arf/arf-c7-20260429_030948/staged/public/train.csv b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/train.csv new file mode 100644 index 0000000000000000000000000000000000000000..4c8e5e0c5031fc7e8e25213132c1231950ec29da --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/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/arf/arf-c7-20260429_030948/staged/public/val.csv b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/staged/public/val.csv new file mode 100644 index 0000000000000000000000000000000000000000..55792963756b1ae35b4d79dee11881372962b8d5 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/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/arf/arf-c7-20260429_030948/train_20260429_030948.log b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/train_20260429_030948.log new file mode 100644 index 0000000000000000000000000000000000000000..d2465360e17472280cb92a92b76b7ed4434e39bc --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_030948/train_20260429_030948.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:872a5d80f7aabdecef7e9cb7ef3d751219c9b6a70b1427bda23e39a521d5012c +size 497 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/_arf_generate.py b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/_arf_generate.py new file mode 100644 index 0000000000000000000000000000000000000000..8079ff32c83c3e892dbf0f99fbb2097efb1dc824 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/_arf_generate.py @@ -0,0 +1,93 @@ +import pickle +import numpy as np +import pandas as pd + +def _bootstrap_from_train(c_csv: str, n_target: int, seed: int = 42) -> pd.DataFrame: + """当 arfpy.forge 完全不可用时,从训练 CSV 有放回抽样,保证行数与列对齐。""" + src = pd.read_csv(c_csv, encoding="utf-8-sig", low_memory=False) + src = src.replace([np.inf, -np.inf], np.nan).dropna(axis=1, how="all") + src = src.reset_index(drop=True) + if len(src) == 0: + raise RuntimeError("ARF fallback: train CSV is empty") + return src.sample(n=n_target, replace=True, random_state=seed).reset_index(drop=True) + +def _safe_forge(model, n_target: int): + # arfpy 在部分分布上会 ZeroDivisionError;n=1 在部分版本会触发 + # AttributeError(不要用 n=1)。失败返回 None,由外层走 bootstrap。 + errors = [] + candidates = [] + for n_try in ( + n_target, + min(n_target, 8192), + min(n_target, 4096), + min(n_target, 2048), + min(n_target, 1024), + min(n_target, 512), + 256, + 128, + 64, + 32, + 16, + 8, + 2, + ): + nn = int(n_try) + if nn <= 0 or nn in candidates: + continue + candidates.append(nn) + for n_try in candidates: + try: + out = model.forge(n=n_try).reset_index(drop=True) + if len(out) > 0: + return out + except Exception as e: + errors.append(f"n={n_try}: {type(e).__name__}: {e}") + print("[ARF] forge failed after retries; last errors:", " | ".join(errors[-4:])) + return None + +n_target = int(10368) +c_csv = "/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/train.csv" +with open("/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/arf_model.pkl", "rb") as f: + model = pickle.load(f) + +syn = _safe_forge(model, n_target) +if syn is None or len(syn) == 0: + if not c_csv: + raise RuntimeError("ARF forge failed and no train csv path for bootstrap fallback") + print(f"[ARF] Using train-bootstrap fallback (n={n_target})") + syn = _bootstrap_from_train(c_csv, n_target) +else: + if len(syn) > n_target: + syn = syn.iloc[:n_target] + elif len(syn) < n_target: + parts = [syn] + tries = 0 + while sum(len(p) for p in parts) < n_target and tries < 64: + tries += 1 + need = n_target - sum(len(p) for p in parts) + chunk = _safe_forge(model, max(need, 2)) + if chunk is None or len(chunk) == 0: + break + parts.append(chunk) + syn = pd.concat(parts, ignore_index=True).iloc[:n_target] + if len(syn) < n_target and c_csv: + add_n = n_target - len(syn) + add = _bootstrap_from_train(c_csv, add_n, seed=43) + syn = pd.concat([syn, add], ignore_index=True).iloc[:n_target] + +_ds_id = 'c7' +if _ds_id == "c19": + # 仅 c19:object 列内裸换行会使 pivot 用 csv.reader 统计到的「记录数」大于 DataFrame 行数 → Sw。 + for _col in syn.columns: + if syn[_col].dtype == object: + syn[_col] = ( + syn[_col] + .astype(str) + .str.replace("\r\n", " ", regex=False) + .str.replace("\n", " ", regex=False) + .str.replace("\r", " ", regex=False) + ) + syn = syn.iloc[:n_target].reset_index(drop=True) + +syn.to_csv("/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/arf-c7-10368-20260429_031508.csv", index=False) +print(f"[ARF] Generated {len(syn)} rows (requested {n_target}) -> /work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/arf-c7-10368-20260429_031508.csv") diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/_arf_train.py b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/_arf_train.py new file mode 100644 index 0000000000000000000000000000000000000000..c859b5bcb717b5d63f72a4bf258a26c51e41bb22 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/_arf_train.py @@ -0,0 +1,37 @@ +import pickle +import numpy as np +import pandas as pd +from arfpy import arf + +def _sanitize_for_arf(df: pd.DataFrame) -> pd.DataFrame: + """缓解 forge 阶段 scipy.stats.truncnorm / 除零:处理 inf、NaN 与极端尾部。""" + df = df.replace([np.inf, -np.inf], np.nan) + df = df.dropna(axis=1, how="all") + for col in df.select_dtypes(include=[np.number]).columns: + med = df[col].median() + if pd.isna(med): + med = 0.0 + df[col] = df[col].fillna(med) + nu = int(df[col].nunique(dropna=True)) + if nu <= 1: + continue + lo, hi = df[col].quantile(0.001), df[col].quantile(0.999) + if pd.notna(lo) and pd.notna(hi) and lo < hi: + df[col] = df[col].clip(lo, hi) + return df + +df = pd.read_csv("/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/train.csv") +df = _sanitize_for_arf(df) +print(f"[ARF] Training on {len(df)} rows, {len(df.columns)} cols") + +model = arf.arf(x=df) +if hasattr(model, "fit"): + model.fit() +elif hasattr(model, "forde"): + model.forde() +else: + raise RuntimeError("arfpy API: no fit() / forde()") + +with open("/work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/arf_model.pkl", "wb") as f: + pickle.dump(model, f) +print(f"[ARF] Model saved -> /work/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/arf_model.pkl") diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/arf-c7-10368-20260429_031508.csv b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/arf-c7-10368-20260429_031508.csv new file mode 100644 index 0000000000000000000000000000000000000000..d0f07209c63b168554fcbb27516022809dc43a56 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/arf-c7-10368-20260429_031508.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3134ad72093b490836b740edcce2a9f1b54af146b5b634edecb40bedc58f5f3 +size 847327 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/arf_model.pkl b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/arf_model.pkl new file mode 100644 index 0000000000000000000000000000000000000000..f0b3d05774b8a2a35970664377cfb70749cbbe05 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/arf_model.pkl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b090af3e7010af1dc06c6e8a03175ca70bb9bb84f3d2eca7127e57bc0ecb7ebc +size 44391799 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/gen_20260429_031508.log b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/gen_20260429_031508.log new file mode 100644 index 0000000000000000000000000000000000000000..f0f58ab28c73e36160cf8b30c4324cecb3c1960b --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/gen_20260429_031508.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2768b1d2fb4bd05c8f06205fd11c0fab338aa3aa9156048dc145708e6ffca906 +size 3251 diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/input_snapshot.json b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/input_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..f1ae1af8b683e62a8986562037668d2d1c4d2cbf --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/input_snapshot.json @@ -0,0 +1,36 @@ +{ + "dataset_id": "c7", + "model": "arf", + "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/arf/arf-c7-20260429_031427/public_gate/normalized_schema_snapshot.json b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/public_gate/normalized_schema_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..3ea4859ec2aa245a19531b254f45d87237c23069 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/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/arf/arf-c7-20260429_031427/public_gate/public_gate_report.json b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/public_gate/public_gate_report.json new file mode 100644 index 0000000000000000000000000000000000000000..3328fe59cd490a424e50f931e9eedba9e81d1cec --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/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/arf/arf-c7-20260429_031427/public_gate/staged_input_manifest.json b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/public_gate/staged_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..df1866933f8b7c40d7c77b7bf0cbba209ee2440e --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/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-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/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/arf/arf-c7-20260429_031427/runtime_result.json b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/runtime_result.json new file mode 100644 index 0000000000000000000000000000000000000000..7fd0aa517559af04f9f6143cf52296c666249364 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/runtime_result.json @@ -0,0 +1,15 @@ +{ + "dataset_id": "c7", + "model": "arf", + "run_id": "arf-c7-20260429_031427", + "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/c7/arf/arf-c7-20260429_031427/arf-c7-10368-20260429_031508.csv", + "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/arf_model.pkl" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/arf/adapter_report.json b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/arf/adapter_report.json new file mode 100644 index 0000000000000000000000000000000000000000..3eefd15ddbd34c1475f204a69edda1786692e452 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/arf/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/c7/arf/arf-c7-20260429_031427/staged/arf/model_input_manifest.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/arf/adapter_transforms_applied.json b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/arf/adapter_transforms_applied.json new file mode 100644 index 0000000000000000000000000000000000000000..0637a088a01e8ddab3bf3fa98dbe804cbde1a0dc --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/arf/adapter_transforms_applied.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/arf/model_input_manifest.json b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/arf/model_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..b38798668da3f8e6d341a771d620d6b72dc08a1d --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/arf/model_input_manifest.json @@ -0,0 +1,190 @@ +{ + "dataset_id": "c7", + "model": "arf", + "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-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/public_gate/staged_input_manifest.json", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c7/arf/arf-c7-20260429_031427/public_gate/public_gate_report.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/public/staged_features.json b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/public/staged_features.json new file mode 100644 index 0000000000000000000000000000000000000000..0e23df6bcfb7ecfd44dfefc3d0ca0bf6b6aebc60 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/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/arf/arf-c7-20260429_031427/staged/public/test.csv b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/public/test.csv new file mode 100644 index 0000000000000000000000000000000000000000..cb9d7081ca745e9eed28a35168872d450c4a2a44 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/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/arf/arf-c7-20260429_031427/staged/public/train.csv b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/public/train.csv new file mode 100644 index 0000000000000000000000000000000000000000..4c8e5e0c5031fc7e8e25213132c1231950ec29da --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/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/arf/arf-c7-20260429_031427/staged/public/val.csv b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/staged/public/val.csv new file mode 100644 index 0000000000000000000000000000000000000000..55792963756b1ae35b4d79dee11881372962b8d5 --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/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/arf/arf-c7-20260429_031427/train_20260429_031427.log b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/train_20260429_031427.log new file mode 100644 index 0000000000000000000000000000000000000000..cc12ff77f3f7d475e2e8be7055e3000dfcb8b2db --- /dev/null +++ b/SynthData0523/main/c7/arf/arf-c7-20260429_031427/train_20260429_031427.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0d935bc8eb8e8cd8f3afd6a152d66de11e20ed7cf990d2a7166afae26cb856e +size 496 diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/_bayesnet_generate.py b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/_bayesnet_generate.py new file mode 100644 index 0000000000000000000000000000000000000000..6ad57aa6d2fe676d2815324487279784ed75aeb8 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/_bayesnet_generate.py @@ -0,0 +1,43 @@ +import subprocess, sys, os + +pip_libs = "/pip_libs" +sys.path.insert(0, pip_libs) +os.environ["PYTHONPATH"] = pip_libs + os.pathsep + os.environ.get("PYTHONPATH", "") + +def _ensure_deps(): + try: + import synthcity + except ModuleNotFoundError: + print("[BayesNet] synthcity not found - installing to cache...") + subprocess.run( + [sys.executable, "-m", "pip", "install", + "--target", pip_libs, "synthcity==0.2.12", "numpy<2", "-q"], + check=True + ) + import shutil, glob + for pat in ["torch", "torch-*", "torchvision", "torchvision-*", + "torchvision.libs", "torchgen", "nvidia*", "triton*"]: + for p in glob.glob(os.path.join(pip_libs, pat)): + if os.path.isdir(p): shutil.rmtree(p) + else: os.remove(p) + if pip_libs not in sys.path: + sys.path.insert(0, pip_libs) + +_ensure_deps() + +import pickle, json as _json +with open("/work/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl", "rb") as f: + plugin = pickle.load(f) +syn = plugin.generate(count=10368).dataframe() + +# Restore zero-variance columns that were dropped during training +const_path = "/work/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl".replace("bayesnet_model.pkl", "const_cols.json") +if os.path.exists(const_path): + with open(const_path) as _f: + const_cols = _json.load(_f) + for col, val in const_cols.items(): + syn[col] = val + print(f"[BayesNet] Restored constant column '{col}' = {val}") + +syn.to_csv("/work/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-10368-20260330_065316.csv", index=False) +print(f"[BayesNet] Generated 10368 rows -> /work/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-10368-20260330_065316.csv") diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/_bayesnet_train.py b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/_bayesnet_train.py new file mode 100644 index 0000000000000000000000000000000000000000..0289b5f475a8703148a672f1cec2699a8a092707 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/_bayesnet_train.py @@ -0,0 +1,62 @@ +import subprocess, sys, os + +pip_libs = "/pip_libs" +sys.path.insert(0, pip_libs) +os.environ["PYTHONPATH"] = pip_libs + os.pathsep + os.environ.get("PYTHONPATH", "") + +def _ensure_deps(): + try: + import synthcity + except ModuleNotFoundError: + print("[BayesNet] synthcity not found - installing to cache (first run, may take minutes)...") + # Install synthcity with numpy<2 to avoid conflicts + subprocess.run( + [sys.executable, "-m", "pip", "install", + "--target", pip_libs, "synthcity==0.2.12", "numpy<2", "-q"], + check=True + ) + # Remove torch/torchvision from pip_libs to avoid shadowing system versions + import shutil, glob + for pat in ["torch", "torch-*", "torchvision", "torchvision-*", + "torchvision.libs", "torchgen", "nvidia*", "triton*"]: + for p in glob.glob(os.path.join(pip_libs, pat)): + if os.path.isdir(p): shutil.rmtree(p) + else: os.remove(p) + if pip_libs not in sys.path: + sys.path.insert(0, pip_libs) + +_ensure_deps() + +from synthcity.plugins import Plugins +import pickle +import pandas as pd +from synthcity.plugins.core.dataloader import GenericDataLoader + +df = pd.read_csv("/work/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/train.csv") +df = df.dropna(axis=1, how="all") + +# Drop zero-variance columns (only 1 unique value) to avoid +# synthcity encoder KeyError during generation +import json as _json +const_cols = {} +for col in list(df.columns): + nuniq = df[col].nunique() + if nuniq <= 1: + const_cols[col] = df[col].iloc[0] if len(df) > 0 else None + df = df.drop(columns=[col]) + print(f"[BayesNet] Dropped zero-variance column '{col}' (value={const_cols[col]})") + +# Save constant columns info so generate can restore them +const_path = "/work/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl".replace("bayesnet_model.pkl", "const_cols.json") +with open(const_path, "w") as _f: + _json.dump({k: str(v) for k, v in const_cols.items()}, _f) + +print(f"[BayesNet] Training on {len(df)} rows, {len(df.columns)} cols") + +loader = GenericDataLoader(df) +plugin = Plugins().get("bayesian_network") +plugin.fit(loader) + +with open("/work/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl", "wb") as f: + pickle.dump(plugin, f) +print(f"[BayesNet] Model saved -> /work/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl") diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-1000-20260321_061903.csv b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-1000-20260321_061903.csv new file mode 100644 index 0000000000000000000000000000000000000000..0ad76fe0492ac805a816eea77ebd477f085fb237 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-1000-20260321_061903.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a082b4d0235d47db0678b4525f42d70a94759dbd763c798f07df7236a908e891 +size 81759 diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-10368-20260330_065316.csv b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-10368-20260330_065316.csv new file mode 100644 index 0000000000000000000000000000000000000000..ccced25053d3ab70f20eac4e0288e55bd832df62 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-10368-20260330_065316.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6362c2f52025591f90cd98a82c2a4f59c83d60f6b043b1e40450dad3066099ae +size 847021 diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl new file mode 100644 index 0000000000000000000000000000000000000000..3e84a00dffdf3d65058913e02479a7a71cb3b137 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet_model.pkl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4d7e04ef9de203ea1e07b25a9caac563c8bf34884957dbac67a8ddd149ab7e2 +size 1180522 diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/const_cols.json b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/const_cols.json new file mode 100644 index 0000000000000000000000000000000000000000..9e26dfeeb6e641a33dae4961196235bdb965b21b --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/const_cols.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260321_061903.log b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260321_061903.log new file mode 100644 index 0000000000000000000000000000000000000000..6a7e6e084a3fcadc7c6995c888bd96adbbc80009 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260321_061903.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a8ad19b389b2fb228b4232d0425ff2a5262c916f39eb9f715d485cff20b23c8 +size 480 diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260330_065316.log b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260330_065316.log new file mode 100644 index 0000000000000000000000000000000000000000..0f0ca9836baccb06563f086e9e85824fa6217952 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/gen_20260330_065316.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8a9f2d9052018cdd13942a9a359eb52d98f22fdc71cb2df8060f7653b8337b5 +size 482 diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/input_snapshot.json b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/input_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..b61f053445c3620fe2db11628eda0f82572c1916 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/input_snapshot.json @@ -0,0 +1,36 @@ +{ + "dataset_id": "c7", + "model": "bayesnet", + "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/bayesnet/bayesnet-c7-20260321_061816/public_gate/normalized_schema_snapshot.json b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/public_gate/normalized_schema_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..3ea4859ec2aa245a19531b254f45d87237c23069 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/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/bayesnet/bayesnet-c7-20260321_061816/public_gate/public_gate_report.json b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/public_gate/public_gate_report.json new file mode 100644 index 0000000000000000000000000000000000000000..3328fe59cd490a424e50f931e9eedba9e81d1cec --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/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/bayesnet/bayesnet-c7-20260321_061816/public_gate/staged_input_manifest.json b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/public_gate/staged_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..373ee5a46b013e97c3699886bfe2b78fb933cbda --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/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/bayesnet/bayesnet-c7-20260321_061816/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/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/bayesnet/bayesnet-c7-20260321_061816/runtime_result.json b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/runtime_result.json new file mode 100644 index 0000000000000000000000000000000000000000..b2221c783639c69f916dd17f64ee828be06b1dc5 --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/runtime_result.json @@ -0,0 +1,14 @@ +{ + "dataset_id": "c7", + "model": "bayesnet", + "run_id": "bayesnet-c7-20260321_061816", + "public_gate_status": "pass", + "adapter_ready_status": "pass", + "train_status": "skipped", + "generate_status": "success", + "reason_code": null, + "reason_detail": null, + "artifacts": { + "synthetic_csv": "/data/jialinzhang/SynthesizePipeline-server/output-SpecializedModels/c7/bayesnet/bayesnet-c7-20260321_061816/bayesnet-c7-10368-20260330_065316.csv" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/bayesnet/adapter_report.json b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/bayesnet/adapter_report.json new file mode 100644 index 0000000000000000000000000000000000000000..c43a27d82fecc34bf23835ef9b980e04ca120ffe --- /dev/null +++ b/SynthData0523/main/c7/bayesnet/bayesnet-c7-20260321_061816/staged/bayesnet/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/bayesnet/bayesnet-c7-20260321_061816/staged/bayesnet/model_input_manifest.json" +} \ No newline at end of file