jialinzhang commited on
Commit ·
f3fe375
1
Parent(s): 8cc337d
Add syntheticSuccess n3
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/_arf_generate.pyAdded+93
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/_arf_train.pyAdded+37
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/arf-n3-3918-20260501_225052.csvAdded+3
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/arf_model.pklAdded+3
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/gen_20260501_225052.logAdded+3
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/input_snapshot.jsonAdded+36
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/public_gate/normalized_schema_snapshot.jsonAdded+259
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/public_gate/public_gate_report.jsonAdded+37
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/public_gate/staged_input_manifest.jsonAdded+264
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/runtime_result.jsonAdded+27
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/arf/adapter_report.jsonAdded+7
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/arf/adapter_transforms_applied.jsonAdded+1
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/arf/model_input_manifest.jsonAdded+266
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/public/staged_features.jsonAdded+62
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/public/test.csvAdded+3
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/public/train.csvAdded+3
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/public/val.csvAdded+3
- syntheticSuccess/n3/arf/arf-n3-20260501_225023/train_20260501_225023.logAdded+3
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/_bayesnet_generate.pyAdded+105
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/_bayesnet_train.pyAdded+133
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet-n3-3918-20260501_225112.csvAdded+3
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_coltypes.jsonAdded+53
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_model.pklAdded+3
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/const_cols.jsonAdded+1
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/gen_20260501_225112.logAdded+3
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/input_snapshot.jsonAdded+36
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/public_gate/normalized_schema_snapshot.jsonAdded+259
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/public_gate/public_gate_report.jsonAdded+37
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/public_gate/staged_input_manifest.jsonAdded+264
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/runtime_result.jsonAdded+27
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/bayesnet/adapter_report.jsonAdded+7
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/bayesnet/adapter_transforms_applied.jsonAdded+1
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/bayesnet/model_input_manifest.jsonAdded+266
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/staged_features.jsonAdded+62
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/test.csvAdded+3
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/train.csvAdded+3
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/val.csvAdded+3
- syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/train_20260501_225104.logAdded+3
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/_fd_X_host.npyAdded+3
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/_fd_gen.pyAdded+8
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/_fd_meta_host.jsonAdded+1
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/_fd_train.pyAdded+28
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/forest-n3-3918-20260501_180740.csvAdded+3
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/forestdiffusion_model.joblibAdded+3
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/gen_20260501_180740.logAdded+3
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/input_snapshot.jsonAdded+36
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/models_fd/model.joblibAdded+3
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/public_gate/normalized_schema_snapshot.jsonAdded+259
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/public_gate/public_gate_report.jsonAdded+37
- syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/public_gate/staged_input_manifest.jsonAdded+264
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293import pickleimport numpy as npimport 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(3918)c_csv = "/work/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/staged/public/train.csv"with open("/work/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/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 = 'n3'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/n3/arf/arf-n3-20260501_225023/arf-n3-3918-20260501_225052.csv", index=False)print(f"[ARF] Generated {len(syn)} rows (requested {n_target}) -> /work/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/arf-n3-3918-20260501_225052.csv")12345678910111213141516171819202122232425262728293031323334353637import pickleimport numpy as npimport pandas as pdfrom 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/n3/arf/arf-n3-20260501_225023/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/n3/arf/arf-n3-20260501_225023/arf_model.pkl", "wb") as f: pickle.dump(model, f)print(f"[ARF] Model saved -> /work/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/arf_model.pkl")123version https://git-lfs.github.com/spec/v1oid sha256:034d26d9e71f204197db1f262436a3474fe972cc90043a2777d5f7960608352csize 876973123version https://git-lfs.github.com/spec/v1oid sha256:8c20fa2967362ef7efcb0a9251ff27d2a011b28bbc6d70d442806a722bfce04bsize 21167791123version https://git-lfs.github.com/spec/v1oid sha256:144b44334b50030bc8239b616693a40a439cd3c6109ba8a941f7e2e45e0fabbasize 719123456789101112131415161718192021222324252627282930313233343536{ "dataset_id": "n3", "model": "arf", "inputs": { "train_csv": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-train.csv", "exists": true, "size": 211519, "sha256": "2160a06db2fea02adb0ebb79d8d853bd2544580be301e71f6e8deeb1489a9009" }, "val_csv": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-val.csv", "exists": true, "size": 26499, "sha256": "d5ccfee07dfa9e7bdee5bb87642b43828e09f74c6cc0266a3d19d9feaa83106e" }, "test_csv": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-test.csv", "exists": true, "size": 26676, "sha256": "6f83aacb0d1747b95e287352a7fff5d9d65a1c127b773852346c68485c4ede47" }, "profile_json": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/n3/n3-dataset_profile.json", "exists": true, "size": 5235, "sha256": "23d2e5904a2ca90cbf8d6e3c75887681721e9b90cc705c31a680c11513d0c46f" }, "contract_json": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/n3/n3-dataset_contract_v1.json", "exists": true, "size": 6281, "sha256": "c0cc56f5fe28e1b65927255c6e3c2b0e9479862c2ec6f2fea1664da36c9a3a09" } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259{ "dataset_id": "n3", "target_column": "quality", "task_type": "classification", "columns": [ { "name": "fixed acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 66, "unique_ratio": 0.016845, "example_values": [ "7.1", "8.5", "6.4", "6.8", "7.6" ] } }, { "name": "volatile acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 121, "unique_ratio": 0.030883, "example_values": [ "0.31", "0.21", "0.24", "0.43", "0.27" ] } }, { "name": "citric acid", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 85, "unique_ratio": 0.021695, "example_values": [ "0.17", "0.41", "0.31", "0.25", "0.3" ] } }, { "name": "residual sugar", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 296, "unique_ratio": 0.075549, "example_values": [ "1", "4.3", "2.8", "13", "12.9" ] } }, { "name": "chlorides", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 147, "unique_ratio": 0.037519, "example_values": [ "0.042", "0.036", "0.038", "0.047", "0.033" ] } }, { "name": "free sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 120, "unique_ratio": 0.030628, "example_values": [ "21", "24", "41", "43", "69" ] } }, { "name": "total sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 244, "unique_ratio": 0.062277, "example_values": [ "144", "99", "114", "132", "160" ] } }, { "name": "density", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 839, "unique_ratio": 0.21414, "example_values": [ "0.99304", "0.9947", "0.99155", "0.98975", "0.99705" ] } }, { "name": "pH", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 100, "unique_ratio": 0.025523, "example_values": [ "3.13", "3.18", "3.37", "3.21", "3.16" ] } }, { "name": "sulphates", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 78, "unique_ratio": 0.019908, "example_values": [ "0.4", "0.53", "0.66", "0.47", "0.5" ] } }, { "name": "alcohol", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 97, "unique_ratio": 0.024758, "example_values": [ "9.6", "9.7", "11.7", "13.4", "8.8" ] } }, { "name": "quality", "role": "target", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 7, "unique_ratio": 0.001787, "example_values": [ "5", "6", "7", "8", "3" ] } } ]}12345678910111213141516171819202122232425262728293031323334353637{ "dataset_id": "n3", "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": "quality", "task_type": "classification", "input_splits": { "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-train.csv", "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-val.csv", "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-test.csv" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264{ "dataset_id": "n3", "target_column": "quality", "task_type": "classification", "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/staged/public/train.csv", "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/staged/public/val.csv", "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/staged/public/test.csv", "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/staged/public/staged_features.json", "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/public_gate/public_gate_report.json", "column_schema": [ { "name": "fixed acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 66, "unique_ratio": 0.016845, "example_values": [ "7.1", "8.5", "6.4", "6.8", "7.6" ] } }, { "name": "volatile acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 121, "unique_ratio": 0.030883, "example_values": [ "0.31", "0.21", "0.24", "0.43", "0.27" ] } }, { "name": "citric acid", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 85, "unique_ratio": 0.021695, "example_values": [ "0.17", "0.41", "0.31", "0.25", "0.3" ] } }, { "name": "residual sugar", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 296, "unique_ratio": 0.075549, "example_values": [ "1", "4.3", "2.8", "13", "12.9" ] } }, { "name": "chlorides", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 147, "unique_ratio": 0.037519, "example_values": [ "0.042", "0.036", "0.038", "0.047", "0.033" ] } }, { "name": "free sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 120, "unique_ratio": 0.030628, "example_values": [ "21", "24", "41", "43", "69" ] } }, { "name": "total sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 244, "unique_ratio": 0.062277, "example_values": [ "144", "99", "114", "132", "160" ] } }, { "name": "density", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 839, "unique_ratio": 0.21414, "example_values": [ "0.99304", "0.9947", "0.99155", "0.98975", "0.99705" ] } }, { "name": "pH", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 100, "unique_ratio": 0.025523, "example_values": [ "3.13", "3.18", "3.37", "3.21", "3.16" ] } }, { "name": "sulphates", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 78, "unique_ratio": 0.019908, "example_values": [ "0.4", "0.53", "0.66", "0.47", "0.5" ] } }, { "name": "alcohol", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 97, "unique_ratio": 0.024758, "example_values": [ "9.6", "9.7", "11.7", "13.4", "8.8" ] } }, { "name": "quality", "role": "target", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 7, "unique_ratio": 0.001787, "example_values": [ "5", "6", "7", "8", "3" ] } } ]}123456789101112131415161718192021222324252627{ "dataset_id": "n3", "model": "arf", "run_id": "arf-n3-20260501_225023", "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/n3/arf/arf-n3-20260501_225023/arf-n3-3918-20260501_225052.csv", "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/arf_model.pkl" }, "timings": { "train": { "started_at": "2026-05-01T22:50:23", "ended_at": "2026-05-01T22:50:52", "duration_sec": 28.875 }, "generate": { "started_at": "2026-05-01T22:50:52", "ended_at": "2026-05-01T22:50:54", "duration_sec": 2.591 } }}1234567{ "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/n3/arf/arf-n3-20260501_225023/staged/arf/model_input_manifest.json"}1[]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266{ "dataset_id": "n3", "model": "arf", "target_column": "quality", "task_type": "classification", "column_schema": [ { "name": "fixed acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 66, "unique_ratio": 0.016845, "example_values": [ "7.1", "8.5", "6.4", "6.8", "7.6" ] } }, { "name": "volatile acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 121, "unique_ratio": 0.030883, "example_values": [ "0.31", "0.21", "0.24", "0.43", "0.27" ] } }, { "name": "citric acid", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 85, "unique_ratio": 0.021695, "example_values": [ "0.17", "0.41", "0.31", "0.25", "0.3" ] } }, { "name": "residual sugar", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 296, "unique_ratio": 0.075549, "example_values": [ "1", "4.3", "2.8", "13", "12.9" ] } }, { "name": "chlorides", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 147, "unique_ratio": 0.037519, "example_values": [ "0.042", "0.036", "0.038", "0.047", "0.033" ] } }, { "name": "free sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 120, "unique_ratio": 0.030628, "example_values": [ "21", "24", "41", "43", "69" ] } }, { "name": "total sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 244, "unique_ratio": 0.062277, "example_values": [ "144", "99", "114", "132", "160" ] } }, { "name": "density", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 839, "unique_ratio": 0.21414, "example_values": [ "0.99304", "0.9947", "0.99155", "0.98975", "0.99705" ] } }, { "name": "pH", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 100, "unique_ratio": 0.025523, "example_values": [ "3.13", "3.18", "3.37", "3.21", "3.16" ] } }, { "name": "sulphates", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 78, "unique_ratio": 0.019908, "example_values": [ "0.4", "0.53", "0.66", "0.47", "0.5" ] } }, { "name": "alcohol", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 97, "unique_ratio": 0.024758, "example_values": [ "9.6", "9.7", "11.7", "13.4", "8.8" ] } }, { "name": "quality", "role": "target", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 7, "unique_ratio": 0.001787, "example_values": [ "5", "6", "7", "8", "3" ] } } ], "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/public_gate/staged_input_manifest.json", "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/staged/public/train.csv", "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/staged/public/val.csv", "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/staged/public/test.csv", "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/staged/public/staged_features.json", "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/arf/arf-n3-20260501_225023/public_gate/public_gate_report.json"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162[ { "feature_name": "fixed acidity", "data_type": "continuous", "is_target": false }, { "feature_name": "volatile acidity", "data_type": "continuous", "is_target": false }, { "feature_name": "citric acid", "data_type": "continuous", "is_target": false }, { "feature_name": "residual sugar", "data_type": "continuous", "is_target": false }, { "feature_name": "chlorides", "data_type": "continuous", "is_target": false }, { "feature_name": "free sulfur dioxide", "data_type": "continuous", "is_target": false }, { "feature_name": "total sulfur dioxide", "data_type": "continuous", "is_target": false }, { "feature_name": "density", "data_type": "continuous", "is_target": false }, { "feature_name": "pH", "data_type": "continuous", "is_target": false }, { "feature_name": "sulphates", "data_type": "continuous", "is_target": false }, { "feature_name": "alcohol", "data_type": "continuous", "is_target": false }, { "feature_name": "quality", "data_type": "continuous", "is_target": true }]123version https://git-lfs.github.com/spec/v1oid sha256:19e107152a94432e2a37ff045c00cfe35e1be30208b1553080d7dd0ede256d3bsize 28944123version https://git-lfs.github.com/spec/v1oid sha256:7813c8cca73ba4bfc6559215257b341c21e459980ad17ae6ddc809306bc9a0b9size 229945123version https://git-lfs.github.com/spec/v1oid sha256:cf5979d9675567d9d6642640c9b84fc6c49e492604144723c30f50516c05cee6size 28791123version https://git-lfs.github.com/spec/v1oid sha256:e2178ce762ea2f8d576ec23371a0d6569661f9d5ac97736a0c9b02e75c175edfsize 613123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
import pickleimport subprocessimport sysimport warnings
import numpy as npimport pandas as pdfrom pgmpy.sampling import BayesianModelSampling
warnings.filterwarnings("ignore", category=FutureWarning)
def _ensure_cloudpickle(): try: import cloudpickle # noqa: F401 except ModuleNotFoundError: subprocess.check_call( [sys.executable, "-m", "pip", "install", "--quiet", "cloudpickle"], )
_ensure_cloudpickle()
with open("/work/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_model.pkl", "rb") as f: bundle = pickle.load(f)
network = bundle["network"]inverse = bundle["inverse"]cols = bundle["column_order"]integer_columns = set(bundle.get("integer_columns") or [])full_order = bundle.get("full_column_order") or colsconst_cols = bundle.get("const_cols") or {}
num_rows = int(3918)sampler = BayesianModelSampling(network)raw = sampler.forward_sample(size=num_rows, show_progress=False)raw = raw.reset_index(drop=True)if len(raw) > num_rows: raw = raw.iloc[:num_rows]_tries = 0while len(raw) < num_rows and _tries < 64: _tries += 1 nextra = min(10000, num_rows - len(raw)) more = sampler.forward_sample(size=max(nextra, 1), show_progress=False) more = more.reset_index(drop=True) if len(more) == 0: break raw = pd.concat([raw, more], ignore_index=True) if len(raw) > num_rows: raw = raw.iloc[:num_rows]
out = pd.DataFrame(index=raw.index)rng = np.random.default_rng()
for c in cols: if c in inverse["categorical"]: levels = inverse["categorical"][c] idx = raw[c].astype(int).to_numpy() idx = np.clip(idx, 0, max(0, len(levels) - 1)) out[c] = [levels[i] for i in idx] else: edges = np.asarray(inverse["continuous"][c], dtype=float) if edges.size < 2: out[c] = 0.0 else: nbin = edges.size - 1 res = [] for k in raw[c].astype(int).to_numpy(): k = int(k) if k < 0: k = 0 if k >= nbin: k = nbin - 1 lo, hi = float(edges[k]), float(edges[k + 1]) if hi < lo: lo, hi = hi, lo v = rng.uniform(lo, hi) if c in integer_columns: v = int(round(v)) res.append(v) out[c] = res
final = pd.DataFrame(index=out.index)for c in full_order: if c in const_cols: final[c] = const_cols[c] elif c in out.columns: final[c] = out[c]
dtypes = bundle.get("original_dtypes") or {}for c, dts in dtypes.items(): if c not in final.columns: continue try: if "int" in dts: final[c] = pd.to_numeric(final[c], errors="coerce").astype("Int64") elif "float" in dts: final[c] = pd.to_numeric(final[c], errors="coerce") except Exception: pass
if len(final) != num_rows: final = final.iloc[:num_rows].copy()final = final.reset_index(drop=True)final.to_csv("/work/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet-n3-3918-20260501_225112.csv", index=False)print(f"[BayesNet] Generated {len(final)} rows (requested {num_rows}) -> /work/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet-n3-3918-20260501_225112.csv")123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
import jsonimport pickleimport subprocessimport sysimport warnings
import numpy as npimport pandas as pdfrom pgmpy.estimators import TreeSearchfrom pgmpy.models import DiscreteBayesianNetworkwarnings.filterwarnings("ignore", category=FutureWarning)
def _ensure_cloudpickle(): try: import cloudpickle # noqa: F401 except ModuleNotFoundError: subprocess.check_call( [sys.executable, "-m", "pip", "install", "--quiet", "cloudpickle"], )
_ensure_cloudpickle()
with open("/work/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_coltypes.json", "r", encoding="utf-8") as _f: colmeta = json.load(_f)integer_columns = set(colmeta.get("integer_columns") or [])
df = pd.read_csv("/work/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/train.csv")df = df.dropna(axis=1, how="all")full_column_order = list(df.columns)
const_cols = {}for col in list(df.columns): if df[col].nunique(dropna=True) <= 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}'")
const_path = "/work/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_model.pkl".replace("bayesnet_model.pkl", "const_cols.json")with open(const_path, "w", encoding="utf-8") as _f: json.dump({k: str(v) for k, v in const_cols.items()}, _f)
inverse = {"categorical": {}, "continuous": {}}enc = pd.DataFrame(index=df.index)_n_samples = len(df)_n_plan = sum( 1 for e in colmeta["columns"] if str(e.get("name", "")) in df.columns)max_bins = 10max_cat_levels = 256if _n_plan > 35 or _n_samples > 200000: max_bins = 5 max_cat_levels = 64if _n_plan > 55: max_bins = 4 max_cat_levels = 32print( f"[BayesNet] max_bins={max_bins}, max_cat_levels={max_cat_levels} " f"(cols_in_df={_n_plan}, rows={_n_samples})")
for entry in colmeta["columns"]: name = entry["name"] if name not in df.columns: continue kind = entry["type"] s = df[name] if kind == "categorical": s2 = s.astype(str).fillna("__NA__") counts = s2.value_counts(dropna=False) if len(counts) > max_cat_levels: keep = set(counts.index[: max_cat_levels - 1].tolist()) s2 = s2.map(lambda x: x if x in keep else "__OTHER__") uniques = sorted(s2.dropna().unique(), key=lambda x: str(x)) mapping = {str(v): i for i, v in enumerate(uniques)} inverse["categorical"][name] = [uniques[i] for i in range(len(uniques))] enc[name] = s2.map(lambda x, m=mapping: m.get(str(x), 0)).astype(int) else: s_num = pd.to_numeric(s, errors="coerce") nu = int(s_num.nunique(dropna=True)) q = min(max_bins, max(2, nu)) if nu < 2: enc[name] = np.zeros(len(s_num), dtype=int) lo, hi = float(s_num.min()), float(s_num.max()) inverse["continuous"][name] = [lo, hi] else: try: _, bins = pd.qcut( s_num, q=q, retbins=True, duplicates="drop" ) except Exception: med = float(s_num.median()) s2 = s_num.fillna(med) _, bins = pd.qcut( s2, q=min(q, 3), retbins=True, duplicates="drop" ) bins = np.asarray(bins, dtype=float) lab = pd.cut( s_num, bins=bins, labels=False, include_lowest=True ) enc[name] = lab.fillna(0).astype(int) inverse["continuous"][name] = bins.tolist()
print(f"[BayesNet] Training on {len(enc)} rows, {len(enc.columns)} cols (encoded)")
enc_struct = encif len(enc) > 25000: enc_struct = enc.sample(n=25000, random_state=0, replace=False) print(f"[BayesNet] TreeSearch on {len(enc_struct)} rows (subsample; full n={len(enc)})")dag = TreeSearch(enc_struct).estimate(show_progress=False)for col in enc.columns: if col not in dag.nodes(): dag.add_node(col) print(f"[BayesNet] Added isolated node to DAG: {col}")network = DiscreteBayesianNetwork(dag)enc_fit = encif len(enc) > 120000: enc_fit = enc.sample(n=120000, random_state=1, replace=False) print(f"[BayesNet] fit() on {len(enc_fit)} rows (full n={len(enc)})")network.fit(enc_fit)
bundle = { "network": network, "inverse": inverse, "column_order": list(enc.columns), "full_column_order": full_column_order, "integer_columns": list(integer_columns), "original_dtypes": {c: str(df[c].dtype) for c in enc.columns}, "const_cols": const_cols,}with open("/work/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_model.pkl", "wb") as _f: pickle.dump(bundle, _f)print(f"[BayesNet] Model saved -> /work/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_model.pkl")123version https://git-lfs.github.com/spec/v1oid sha256:7eaef9af040116c7fea3c8e5e566ea772624f1e1548c99fa7b800a0deeac3f44size 8843071234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ "columns": [ { "name": "fixed acidity", "type": "continuous" }, { "name": "volatile acidity", "type": "continuous" }, { "name": "citric acid", "type": "continuous" }, { "name": "residual sugar", "type": "continuous" }, { "name": "chlorides", "type": "continuous" }, { "name": "free sulfur dioxide", "type": "continuous" }, { "name": "total sulfur dioxide", "type": "continuous" }, { "name": "density", "type": "continuous" }, { "name": "pH", "type": "continuous" }, { "name": "sulphates", "type": "continuous" }, { "name": "alcohol", "type": "continuous" }, { "name": "quality", "type": "continuous" } ], "integer_columns": []}123version https://git-lfs.github.com/spec/v1oid sha256:6796efb78000c399e81e0fc93d03b1d91f3c5d4aec0d0f61ad13d70100e0c1f5size 182941{}123version https://git-lfs.github.com/spec/v1oid sha256:3c998b1d75b6c0e1a4e92d1349b8faebfbc99e3baf489c9bf5c951f847863656size 3661123456789101112131415161718192021222324252627282930313233343536{ "dataset_id": "n3", "model": "bayesnet", "inputs": { "train_csv": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-train.csv", "exists": true, "size": 211519, "sha256": "2160a06db2fea02adb0ebb79d8d853bd2544580be301e71f6e8deeb1489a9009" }, "val_csv": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-val.csv", "exists": true, "size": 26499, "sha256": "d5ccfee07dfa9e7bdee5bb87642b43828e09f74c6cc0266a3d19d9feaa83106e" }, "test_csv": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-test.csv", "exists": true, "size": 26676, "sha256": "6f83aacb0d1747b95e287352a7fff5d9d65a1c127b773852346c68485c4ede47" }, "profile_json": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/n3/n3-dataset_profile.json", "exists": true, "size": 5235, "sha256": "23d2e5904a2ca90cbf8d6e3c75887681721e9b90cc705c31a680c11513d0c46f" }, "contract_json": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/n3/n3-dataset_contract_v1.json", "exists": true, "size": 6281, "sha256": "c0cc56f5fe28e1b65927255c6e3c2b0e9479862c2ec6f2fea1664da36c9a3a09" } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259{ "dataset_id": "n3", "target_column": "quality", "task_type": "classification", "columns": [ { "name": "fixed acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 66, "unique_ratio": 0.016845, "example_values": [ "7.1", "8.5", "6.4", "6.8", "7.6" ] } }, { "name": "volatile acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 121, "unique_ratio": 0.030883, "example_values": [ "0.31", "0.21", "0.24", "0.43", "0.27" ] } }, { "name": "citric acid", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 85, "unique_ratio": 0.021695, "example_values": [ "0.17", "0.41", "0.31", "0.25", "0.3" ] } }, { "name": "residual sugar", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 296, "unique_ratio": 0.075549, "example_values": [ "1", "4.3", "2.8", "13", "12.9" ] } }, { "name": "chlorides", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 147, "unique_ratio": 0.037519, "example_values": [ "0.042", "0.036", "0.038", "0.047", "0.033" ] } }, { "name": "free sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 120, "unique_ratio": 0.030628, "example_values": [ "21", "24", "41", "43", "69" ] } }, { "name": "total sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 244, "unique_ratio": 0.062277, "example_values": [ "144", "99", "114", "132", "160" ] } }, { "name": "density", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 839, "unique_ratio": 0.21414, "example_values": [ "0.99304", "0.9947", "0.99155", "0.98975", "0.99705" ] } }, { "name": "pH", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 100, "unique_ratio": 0.025523, "example_values": [ "3.13", "3.18", "3.37", "3.21", "3.16" ] } }, { "name": "sulphates", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 78, "unique_ratio": 0.019908, "example_values": [ "0.4", "0.53", "0.66", "0.47", "0.5" ] } }, { "name": "alcohol", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 97, "unique_ratio": 0.024758, "example_values": [ "9.6", "9.7", "11.7", "13.4", "8.8" ] } }, { "name": "quality", "role": "target", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 7, "unique_ratio": 0.001787, "example_values": [ "5", "6", "7", "8", "3" ] } } ]}12345678910111213141516171819202122232425262728293031323334353637{ "dataset_id": "n3", "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": "quality", "task_type": "classification", "input_splits": { "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-train.csv", "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-val.csv", "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-test.csv" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264{ "dataset_id": "n3", "target_column": "quality", "task_type": "classification", "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/train.csv", "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/val.csv", "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/test.csv", "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/staged_features.json", "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/public_gate/public_gate_report.json", "column_schema": [ { "name": "fixed acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 66, "unique_ratio": 0.016845, "example_values": [ "7.1", "8.5", "6.4", "6.8", "7.6" ] } }, { "name": "volatile acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 121, "unique_ratio": 0.030883, "example_values": [ "0.31", "0.21", "0.24", "0.43", "0.27" ] } }, { "name": "citric acid", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 85, "unique_ratio": 0.021695, "example_values": [ "0.17", "0.41", "0.31", "0.25", "0.3" ] } }, { "name": "residual sugar", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 296, "unique_ratio": 0.075549, "example_values": [ "1", "4.3", "2.8", "13", "12.9" ] } }, { "name": "chlorides", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 147, "unique_ratio": 0.037519, "example_values": [ "0.042", "0.036", "0.038", "0.047", "0.033" ] } }, { "name": "free sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 120, "unique_ratio": 0.030628, "example_values": [ "21", "24", "41", "43", "69" ] } }, { "name": "total sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 244, "unique_ratio": 0.062277, "example_values": [ "144", "99", "114", "132", "160" ] } }, { "name": "density", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 839, "unique_ratio": 0.21414, "example_values": [ "0.99304", "0.9947", "0.99155", "0.98975", "0.99705" ] } }, { "name": "pH", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 100, "unique_ratio": 0.025523, "example_values": [ "3.13", "3.18", "3.37", "3.21", "3.16" ] } }, { "name": "sulphates", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 78, "unique_ratio": 0.019908, "example_values": [ "0.4", "0.53", "0.66", "0.47", "0.5" ] } }, { "name": "alcohol", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 97, "unique_ratio": 0.024758, "example_values": [ "9.6", "9.7", "11.7", "13.4", "8.8" ] } }, { "name": "quality", "role": "target", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 7, "unique_ratio": 0.001787, "example_values": [ "5", "6", "7", "8", "3" ] } } ]}123456789101112131415161718192021222324252627{ "dataset_id": "n3", "model": "bayesnet", "run_id": "bayesnet-n3-20260501_225103", "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/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet-n3-3918-20260501_225112.csv", "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_model.pkl" }, "timings": { "train": { "started_at": "2026-05-01T22:51:04", "ended_at": "2026-05-01T22:51:12", "duration_sec": 7.985 }, "generate": { "started_at": "2026-05-01T22:51:12", "ended_at": "2026-05-01T22:51:17", "duration_sec": 5.51 } }}1234567{ "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/n3/bayesnet/bayesnet-n3-20260501_225103/staged/bayesnet/model_input_manifest.json"}1[]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266{ "dataset_id": "n3", "model": "bayesnet", "target_column": "quality", "task_type": "classification", "column_schema": [ { "name": "fixed acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 66, "unique_ratio": 0.016845, "example_values": [ "7.1", "8.5", "6.4", "6.8", "7.6" ] } }, { "name": "volatile acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 121, "unique_ratio": 0.030883, "example_values": [ "0.31", "0.21", "0.24", "0.43", "0.27" ] } }, { "name": "citric acid", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 85, "unique_ratio": 0.021695, "example_values": [ "0.17", "0.41", "0.31", "0.25", "0.3" ] } }, { "name": "residual sugar", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 296, "unique_ratio": 0.075549, "example_values": [ "1", "4.3", "2.8", "13", "12.9" ] } }, { "name": "chlorides", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 147, "unique_ratio": 0.037519, "example_values": [ "0.042", "0.036", "0.038", "0.047", "0.033" ] } }, { "name": "free sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 120, "unique_ratio": 0.030628, "example_values": [ "21", "24", "41", "43", "69" ] } }, { "name": "total sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 244, "unique_ratio": 0.062277, "example_values": [ "144", "99", "114", "132", "160" ] } }, { "name": "density", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 839, "unique_ratio": 0.21414, "example_values": [ "0.99304", "0.9947", "0.99155", "0.98975", "0.99705" ] } }, { "name": "pH", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 100, "unique_ratio": 0.025523, "example_values": [ "3.13", "3.18", "3.37", "3.21", "3.16" ] } }, { "name": "sulphates", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 78, "unique_ratio": 0.019908, "example_values": [ "0.4", "0.53", "0.66", "0.47", "0.5" ] } }, { "name": "alcohol", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 97, "unique_ratio": 0.024758, "example_values": [ "9.6", "9.7", "11.7", "13.4", "8.8" ] } }, { "name": "quality", "role": "target", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 7, "unique_ratio": 0.001787, "example_values": [ "5", "6", "7", "8", "3" ] } } ], "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/public_gate/staged_input_manifest.json", "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/train.csv", "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/val.csv", "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/test.csv", "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/staged_features.json", "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/bayesnet/bayesnet-n3-20260501_225103/public_gate/public_gate_report.json"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162[ { "feature_name": "fixed acidity", "data_type": "continuous", "is_target": false }, { "feature_name": "volatile acidity", "data_type": "continuous", "is_target": false }, { "feature_name": "citric acid", "data_type": "continuous", "is_target": false }, { "feature_name": "residual sugar", "data_type": "continuous", "is_target": false }, { "feature_name": "chlorides", "data_type": "continuous", "is_target": false }, { "feature_name": "free sulfur dioxide", "data_type": "continuous", "is_target": false }, { "feature_name": "total sulfur dioxide", "data_type": "continuous", "is_target": false }, { "feature_name": "density", "data_type": "continuous", "is_target": false }, { "feature_name": "pH", "data_type": "continuous", "is_target": false }, { "feature_name": "sulphates", "data_type": "continuous", "is_target": false }, { "feature_name": "alcohol", "data_type": "continuous", "is_target": false }, { "feature_name": "quality", "data_type": "continuous", "is_target": true }]123version https://git-lfs.github.com/spec/v1oid sha256:19e107152a94432e2a37ff045c00cfe35e1be30208b1553080d7dd0ede256d3bsize 28944123version https://git-lfs.github.com/spec/v1oid sha256:7813c8cca73ba4bfc6559215257b341c21e459980ad17ae6ddc809306bc9a0b9size 229945123version https://git-lfs.github.com/spec/v1oid sha256:cf5979d9675567d9d6642640c9b84fc6c49e492604144723c30f50516c05cee6size 28791123version https://git-lfs.github.com/spec/v1oid sha256:62ccdc6bb8d143b5e6ea6deccbac97f29a291610113c088a7479c26916b67c4csize 3740123version https://git-lfs.github.com/spec/v1oid sha256:b15fb02a2af34c0c93fdfe59170a6f8c933a7a529162825116447fdff3efa1ffsize 18819212345678
import joblib, pandas as pdm, meta = joblib.load(r'/work/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/forestdiffusion_model.joblib')# generate:batch_size 为样本数arr = m.generate(batch_size=int(3918))df = pd.DataFrame(arr, columns=meta["column_names"])df.to_csv(r'/work/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/forest-n3-3918-20260501_180740.csv', index=False)print("saved", len(df))1{"column_names": ["fixed acidity", "volatile acidity", "citric acid", "residual sugar", "chlorides", "free sulfur dioxide", "total sulfur dioxide", "density", "pH", "sulphates", "alcohol", "quality"], "cat_indexes": []}12345678910111213141516171819202122232425262728
import shutil, jsonshutil.copy(r'/work/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/_fd_X_host.npy', '/tmp/fd_X.npy')with open(r'/work/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/_fd_meta_host.json') as f: open('/tmp/fd_meta.json','w').write(f.read())
import numpy as np, joblib, json, osfrom ForestDiffusion import ForestDiffusionModelX = np.load("/tmp/fd_X.npy")with open("/tmp/fd_meta.json") as f: meta = json.load(f)cat_indexes = meta["cat_indexes"]print( "[ForestDiffusion] train config: " f"rows={X.shape[0]} cols={X.shape[1]} n_t=20 " f"n_estimators=100 duplicate_K=20 n_jobs=2 " f"xgb_verbosity=1", flush=True,)m = ForestDiffusionModel( X, n_t=20, n_estimators=100, duplicate_K=20, n_jobs=2, model="xgboost", max_depth=6, tree_method="hist", cat_indexes=cat_indexes, verbosity=1,)joblib.dump((m, meta), "/tmp/fd_model.joblib")print("ForestDiffusion train OK")
shutil.copy('/tmp/fd_model.joblib', r'/work/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/forestdiffusion_model.joblib')123version https://git-lfs.github.com/spec/v1oid sha256:0dc1c9e6161a7a3513fcbbfae9f79784fe424e8cdcbb3ea644bf6ae70f528826size 885780123version https://git-lfs.github.com/spec/v1oid sha256:66e33e576edc1764bb9aa9241fd93cc76909c92d632f5f6ec59032c1077da881size 112963525123version https://git-lfs.github.com/spec/v1oid sha256:64470da0846551efa04a9c102196df00df47ef0fb56dda8937a30799fdcd3f94size 294123456789101112131415161718192021222324252627282930313233343536{ "dataset_id": "n3", "model": "forestdiffusion", "inputs": { "train_csv": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-train.csv", "exists": true, "size": 211519, "sha256": "2160a06db2fea02adb0ebb79d8d853bd2544580be301e71f6e8deeb1489a9009" }, "val_csv": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-val.csv", "exists": true, "size": 26499, "sha256": "d5ccfee07dfa9e7bdee5bb87642b43828e09f74c6cc0266a3d19d9feaa83106e" }, "test_csv": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-test.csv", "exists": true, "size": 26676, "sha256": "6f83aacb0d1747b95e287352a7fff5d9d65a1c127b773852346c68485c4ede47" }, "profile_json": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/n3/n3-dataset_profile.json", "exists": true, "size": 5235, "sha256": "23d2e5904a2ca90cbf8d6e3c75887681721e9b90cc705c31a680c11513d0c46f" }, "contract_json": { "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/n3/n3-dataset_contract_v1.json", "exists": true, "size": 6281, "sha256": "c0cc56f5fe28e1b65927255c6e3c2b0e9479862c2ec6f2fea1664da36c9a3a09" } }}123version https://git-lfs.github.com/spec/v1oid sha256:66e33e576edc1764bb9aa9241fd93cc76909c92d632f5f6ec59032c1077da881size 112963525123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259{ "dataset_id": "n3", "target_column": "quality", "task_type": "classification", "columns": [ { "name": "fixed acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 66, "unique_ratio": 0.016845, "example_values": [ "7.1", "8.5", "6.4", "6.8", "7.6" ] } }, { "name": "volatile acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 121, "unique_ratio": 0.030883, "example_values": [ "0.31", "0.21", "0.24", "0.43", "0.27" ] } }, { "name": "citric acid", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 85, "unique_ratio": 0.021695, "example_values": [ "0.17", "0.41", "0.31", "0.25", "0.3" ] } }, { "name": "residual sugar", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 296, "unique_ratio": 0.075549, "example_values": [ "1", "4.3", "2.8", "13", "12.9" ] } }, { "name": "chlorides", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 147, "unique_ratio": 0.037519, "example_values": [ "0.042", "0.036", "0.038", "0.047", "0.033" ] } }, { "name": "free sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 120, "unique_ratio": 0.030628, "example_values": [ "21", "24", "41", "43", "69" ] } }, { "name": "total sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 244, "unique_ratio": 0.062277, "example_values": [ "144", "99", "114", "132", "160" ] } }, { "name": "density", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 839, "unique_ratio": 0.21414, "example_values": [ "0.99304", "0.9947", "0.99155", "0.98975", "0.99705" ] } }, { "name": "pH", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 100, "unique_ratio": 0.025523, "example_values": [ "3.13", "3.18", "3.37", "3.21", "3.16" ] } }, { "name": "sulphates", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 78, "unique_ratio": 0.019908, "example_values": [ "0.4", "0.53", "0.66", "0.47", "0.5" ] } }, { "name": "alcohol", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 97, "unique_ratio": 0.024758, "example_values": [ "9.6", "9.7", "11.7", "13.4", "8.8" ] } }, { "name": "quality", "role": "target", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 7, "unique_ratio": 0.001787, "example_values": [ "5", "6", "7", "8", "3" ] } } ]}12345678910111213141516171819202122232425262728293031323334353637{ "dataset_id": "n3", "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": "quality", "task_type": "classification", "input_splits": { "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-train.csv", "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-val.csv", "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/n3/n3-test.csv" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264{ "dataset_id": "n3", "target_column": "quality", "task_type": "classification", "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/staged/public/train.csv", "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/staged/public/val.csv", "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/staged/public/test.csv", "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/staged/public/staged_features.json", "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/n3/forestdiffusion/forest-n3-20260501_180619/public_gate/public_gate_report.json", "column_schema": [ { "name": "fixed acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 66, "unique_ratio": 0.016845, "example_values": [ "7.1", "8.5", "6.4", "6.8", "7.6" ] } }, { "name": "volatile acidity", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 121, "unique_ratio": 0.030883, "example_values": [ "0.31", "0.21", "0.24", "0.43", "0.27" ] } }, { "name": "citric acid", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 85, "unique_ratio": 0.021695, "example_values": [ "0.17", "0.41", "0.31", "0.25", "0.3" ] } }, { "name": "residual sugar", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 296, "unique_ratio": 0.075549, "example_values": [ "1", "4.3", "2.8", "13", "12.9" ] } }, { "name": "chlorides", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 147, "unique_ratio": 0.037519, "example_values": [ "0.042", "0.036", "0.038", "0.047", "0.033" ] } }, { "name": "free sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 120, "unique_ratio": 0.030628, "example_values": [ "21", "24", "41", "43", "69" ] } }, { "name": "total sulfur dioxide", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 244, "unique_ratio": 0.062277, "example_values": [ "144", "99", "114", "132", "160" ] } }, { "name": "density", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 839, "unique_ratio": 0.21414, "example_values": [ "0.99304", "0.9947", "0.99155", "0.98975", "0.99705" ] } }, { "name": "pH", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 100, "unique_ratio": 0.025523, "example_values": [ "3.13", "3.18", "3.37", "3.21", "3.16" ] } }, { "name": "sulphates", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 78, "unique_ratio": 0.019908, "example_values": [ "0.4", "0.53", "0.66", "0.47", "0.5" ] } }, { "name": "alcohol", "role": "feature", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 97, "unique_ratio": 0.024758, "example_values": [ "9.6", "9.7", "11.7", "13.4", "8.8" ] } }, { "name": "quality", "role": "target", "semantic_type": "numeric", "nullable": false, "missing_tokens": [], "parse_format": null, "impute_strategy": "median", "profile_stats": { "missing_rate": 0.0, "unique_count": 7, "unique_ratio": 0.001787, "example_values": [ "5", "6", "7", "8", "3" ] } } ]}syntheticSuccess/n3/arf/arf-n3-20260501_225023/_arf_generate.pyAdded+93
syntheticSuccess/n3/arf/arf-n3-20260501_225023/_arf_train.pyAdded+37
syntheticSuccess/n3/arf/arf-n3-20260501_225023/arf-n3-3918-20260501_225052.csvAdded+3
syntheticSuccess/n3/arf/arf-n3-20260501_225023/arf_model.pklAdded+3
syntheticSuccess/n3/arf/arf-n3-20260501_225023/gen_20260501_225052.logAdded+3
syntheticSuccess/n3/arf/arf-n3-20260501_225023/input_snapshot.jsonAdded+36
syntheticSuccess/n3/arf/arf-n3-20260501_225023/public_gate/normalized_schema_snapshot.jsonAdded+259
syntheticSuccess/n3/arf/arf-n3-20260501_225023/public_gate/public_gate_report.jsonAdded+37
syntheticSuccess/n3/arf/arf-n3-20260501_225023/public_gate/staged_input_manifest.jsonAdded+264
syntheticSuccess/n3/arf/arf-n3-20260501_225023/runtime_result.jsonAdded+27
syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/arf/adapter_report.jsonAdded+7
syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/arf/adapter_transforms_applied.jsonAdded+1
syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/arf/model_input_manifest.jsonAdded+266
syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/public/staged_features.jsonAdded+62
syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/public/test.csvAdded+3
syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/public/train.csvAdded+3
syntheticSuccess/n3/arf/arf-n3-20260501_225023/staged/public/val.csvAdded+3
syntheticSuccess/n3/arf/arf-n3-20260501_225023/train_20260501_225023.logAdded+3
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/_bayesnet_generate.pyAdded+105
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/_bayesnet_train.pyAdded+133
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet-n3-3918-20260501_225112.csvAdded+3
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_coltypes.jsonAdded+53
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/bayesnet_model.pklAdded+3
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/const_cols.jsonAdded+1
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/gen_20260501_225112.logAdded+3
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/input_snapshot.jsonAdded+36
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/public_gate/normalized_schema_snapshot.jsonAdded+259
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/public_gate/public_gate_report.jsonAdded+37
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/public_gate/staged_input_manifest.jsonAdded+264
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/runtime_result.jsonAdded+27
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/bayesnet/adapter_report.jsonAdded+7
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/bayesnet/adapter_transforms_applied.jsonAdded+1
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/bayesnet/model_input_manifest.jsonAdded+266
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/staged_features.jsonAdded+62
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/test.csvAdded+3
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/train.csvAdded+3
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/staged/public/val.csvAdded+3
syntheticSuccess/n3/bayesnet/bayesnet-n3-20260501_225103/train_20260501_225104.logAdded+3
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/_fd_X_host.npyAdded+3
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/_fd_gen.pyAdded+8
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/_fd_meta_host.jsonAdded+1
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/_fd_train.pyAdded+28
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/forest-n3-3918-20260501_180740.csvAdded+3
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/forestdiffusion_model.joblibAdded+3
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/gen_20260501_180740.logAdded+3
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/input_snapshot.jsonAdded+36
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/models_fd/model.joblibAdded+3
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/public_gate/normalized_schema_snapshot.jsonAdded+259
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/public_gate/public_gate_report.jsonAdded+37
syntheticSuccess/n3/forestdiffusion/forest-n3-20260501_180619/public_gate/staged_input_manifest.jsonAdded+264