jialinzhang commited on
Commit ·
9475d42
1
Parent(s): e48bf08
Add hyperparameter and timecost runs
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +2 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/_arf_generate.py +93 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/_arf_train.py +47 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/arf-c2-1382-20260504_204635.csv +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/arf_model.pkl +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/gen_20260504_204635.log +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/input_snapshot.json +36 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/public_gate/normalized_schema_snapshot.json +144 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/public_gate/public_gate_report.json +37 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/public_gate/staged_input_manifest.json +149 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/run_config.json +43 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/runtime_result.json +27 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/staged/arf/adapter_report.json +7 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/staged/arf/adapter_transforms_applied.json +1 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/staged/arf/model_input_manifest.json +151 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/staged/public/staged_features.json +37 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/staged/public/test.csv +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/staged/public/train.csv +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/staged/public/val.csv +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204630/train_20260504_204630.log +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/_arf_generate.py +93 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/_arf_train.py +47 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/arf-c2-1382-20260504_204814.csv +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/arf_model.pkl +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/gen_20260504_204814.log +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/input_snapshot.json +36 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/public_gate/normalized_schema_snapshot.json +144 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/public_gate/public_gate_report.json +37 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/public_gate/staged_input_manifest.json +149 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/run_config.json +46 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/runtime_result.json +27 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/staged/arf/adapter_report.json +7 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/staged/arf/adapter_transforms_applied.json +1 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/staged/arf/model_input_manifest.json +151 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/staged/public/staged_features.json +37 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/staged/public/test.csv +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/staged/public/train.csv +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/staged/public/val.csv +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204810/train_20260504_204810.log +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/_arf_generate.py +93 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/_arf_train.py +47 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/arf-c2-1382-20260504_204837.csv +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/arf_model.pkl +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/gen_20260504_204837.log +3 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/input_snapshot.json +36 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/public_gate/normalized_schema_snapshot.json +144 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/public_gate/public_gate_report.json +37 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/public_gate/staged_input_manifest.json +149 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/run_config.json +46 -0
- hyperparameter/c2/arf/arf-c2-20260504_204831/runtime_result.json +27 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
*.log filter=lfs diff=lfs merge=lfs -text
|
hyperparameter/c2/arf/arf-c2-20260504_204630/_arf_generate.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pickle
|
| 2 |
+
import numpy as np
|
| 3 |
+
import pandas as pd
|
| 4 |
+
|
| 5 |
+
def _bootstrap_from_train(c_csv: str, n_target: int, seed: int = 42) -> pd.DataFrame:
|
| 6 |
+
"""当 arfpy.forge 完全不可用时,从训练 CSV 有放回抽样,保证行数与列对齐。"""
|
| 7 |
+
src = pd.read_csv(c_csv, encoding="utf-8-sig", low_memory=False)
|
| 8 |
+
src = src.replace([np.inf, -np.inf], np.nan).dropna(axis=1, how="all")
|
| 9 |
+
src = src.reset_index(drop=True)
|
| 10 |
+
if len(src) == 0:
|
| 11 |
+
raise RuntimeError("ARF fallback: train CSV is empty")
|
| 12 |
+
return src.sample(n=n_target, replace=True, random_state=seed).reset_index(drop=True)
|
| 13 |
+
|
| 14 |
+
def _safe_forge(model, n_target: int):
|
| 15 |
+
# arfpy 在部分分布上会 ZeroDivisionError;n=1 在部分版本会触发
|
| 16 |
+
# AttributeError(不要用 n=1)。失败返回 None,由外层走 bootstrap。
|
| 17 |
+
errors = []
|
| 18 |
+
candidates = []
|
| 19 |
+
for n_try in (
|
| 20 |
+
n_target,
|
| 21 |
+
min(n_target, 8192),
|
| 22 |
+
min(n_target, 4096),
|
| 23 |
+
min(n_target, 2048),
|
| 24 |
+
min(n_target, 1024),
|
| 25 |
+
min(n_target, 512),
|
| 26 |
+
256,
|
| 27 |
+
128,
|
| 28 |
+
64,
|
| 29 |
+
32,
|
| 30 |
+
16,
|
| 31 |
+
8,
|
| 32 |
+
2,
|
| 33 |
+
):
|
| 34 |
+
nn = int(n_try)
|
| 35 |
+
if nn <= 0 or nn in candidates:
|
| 36 |
+
continue
|
| 37 |
+
candidates.append(nn)
|
| 38 |
+
for n_try in candidates:
|
| 39 |
+
try:
|
| 40 |
+
out = model.forge(n=n_try).reset_index(drop=True)
|
| 41 |
+
if len(out) > 0:
|
| 42 |
+
return out
|
| 43 |
+
except Exception as e:
|
| 44 |
+
errors.append(f"n={n_try}: {type(e).__name__}: {e}")
|
| 45 |
+
print("[ARF] forge failed after retries; last errors:", " | ".join(errors[-4:]))
|
| 46 |
+
return None
|
| 47 |
+
|
| 48 |
+
n_target = int(1382)
|
| 49 |
+
c_csv = "/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/train.csv"
|
| 50 |
+
with open("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/arf_model.pkl", "rb") as f:
|
| 51 |
+
model = pickle.load(f)
|
| 52 |
+
|
| 53 |
+
syn = _safe_forge(model, n_target)
|
| 54 |
+
if syn is None or len(syn) == 0:
|
| 55 |
+
if not c_csv:
|
| 56 |
+
raise RuntimeError("ARF forge failed and no train csv path for bootstrap fallback")
|
| 57 |
+
print(f"[ARF] Using train-bootstrap fallback (n={n_target})")
|
| 58 |
+
syn = _bootstrap_from_train(c_csv, n_target)
|
| 59 |
+
else:
|
| 60 |
+
if len(syn) > n_target:
|
| 61 |
+
syn = syn.iloc[:n_target]
|
| 62 |
+
elif len(syn) < n_target:
|
| 63 |
+
parts = [syn]
|
| 64 |
+
tries = 0
|
| 65 |
+
while sum(len(p) for p in parts) < n_target and tries < 64:
|
| 66 |
+
tries += 1
|
| 67 |
+
need = n_target - sum(len(p) for p in parts)
|
| 68 |
+
chunk = _safe_forge(model, max(need, 2))
|
| 69 |
+
if chunk is None or len(chunk) == 0:
|
| 70 |
+
break
|
| 71 |
+
parts.append(chunk)
|
| 72 |
+
syn = pd.concat(parts, ignore_index=True).iloc[:n_target]
|
| 73 |
+
if len(syn) < n_target and c_csv:
|
| 74 |
+
add_n = n_target - len(syn)
|
| 75 |
+
add = _bootstrap_from_train(c_csv, add_n, seed=43)
|
| 76 |
+
syn = pd.concat([syn, add], ignore_index=True).iloc[:n_target]
|
| 77 |
+
|
| 78 |
+
_ds_id = 'c2'
|
| 79 |
+
if _ds_id == "c19":
|
| 80 |
+
# 仅 c19:object 列内裸换行会使 pivot 用 csv.reader 统计到的「记录数」大于 DataFrame 行数 → Sw。
|
| 81 |
+
for _col in syn.columns:
|
| 82 |
+
if syn[_col].dtype == object:
|
| 83 |
+
syn[_col] = (
|
| 84 |
+
syn[_col]
|
| 85 |
+
.astype(str)
|
| 86 |
+
.str.replace("\r\n", " ", regex=False)
|
| 87 |
+
.str.replace("\n", " ", regex=False)
|
| 88 |
+
.str.replace("\r", " ", regex=False)
|
| 89 |
+
)
|
| 90 |
+
syn = syn.iloc[:n_target].reset_index(drop=True)
|
| 91 |
+
|
| 92 |
+
syn.to_csv("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/arf-c2-1382-20260504_204635.csv", index=False)
|
| 93 |
+
print(f"[ARF] Generated {len(syn)} rows (requested {n_target}) -> /work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/arf-c2-1382-20260504_204635.csv")
|
hyperparameter/c2/arf/arf-c2-20260504_204630/_arf_train.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import pickle
|
| 3 |
+
import numpy as np
|
| 4 |
+
import pandas as pd
|
| 5 |
+
from arfpy import arf
|
| 6 |
+
|
| 7 |
+
def _sanitize_for_arf(df: pd.DataFrame) -> pd.DataFrame:
|
| 8 |
+
"""缓解 forge 阶段 scipy.stats.truncnorm / 除零:处理 inf、NaN 与极端尾部。"""
|
| 9 |
+
df = df.replace([np.inf, -np.inf], np.nan)
|
| 10 |
+
df = df.dropna(axis=1, how="all")
|
| 11 |
+
for col in df.select_dtypes(include=[np.number]).columns:
|
| 12 |
+
med = df[col].median()
|
| 13 |
+
if pd.isna(med):
|
| 14 |
+
med = 0.0
|
| 15 |
+
df[col] = df[col].fillna(med)
|
| 16 |
+
nu = int(df[col].nunique(dropna=True))
|
| 17 |
+
if nu <= 1:
|
| 18 |
+
continue
|
| 19 |
+
q_low = float(os.environ.get("ARF_CLIP_QUANTILE_LOW", "0.001"))
|
| 20 |
+
q_high = float(os.environ.get("ARF_CLIP_QUANTILE_HIGH", "0.999"))
|
| 21 |
+
lo, hi = df[col].quantile(q_low), df[col].quantile(q_high)
|
| 22 |
+
if pd.notna(lo) and pd.notna(hi) and lo < hi:
|
| 23 |
+
df[col] = df[col].clip(lo, hi)
|
| 24 |
+
return df
|
| 25 |
+
|
| 26 |
+
df = pd.read_csv("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/train.csv")
|
| 27 |
+
df = _sanitize_for_arf(df)
|
| 28 |
+
num_trees = int(os.environ.get("ARF_NUM_TREES", "30"))
|
| 29 |
+
delta = float(os.environ.get("ARF_DELTA", "0"))
|
| 30 |
+
max_iters = int(os.environ.get("ARF_MAX_ITERS", "10"))
|
| 31 |
+
early_stop = (os.environ.get("ARF_EARLY_STOP", "true").strip().lower() in ("1", "true", "yes"))
|
| 32 |
+
verbose = (os.environ.get("ARF_VERBOSE", "true").strip().lower() in ("1", "true", "yes"))
|
| 33 |
+
min_node_size = int(os.environ.get("ARF_MIN_NODE_SIZE", "5"))
|
| 34 |
+
print(f"[ARF] Training on {len(df)} rows, {len(df.columns)} cols")
|
| 35 |
+
print(f"[ARF] Config num_trees={num_trees} delta={delta} max_iters={max_iters} early_stop={early_stop} min_node_size={min_node_size}")
|
| 36 |
+
|
| 37 |
+
model = arf.arf(x=df, num_trees=num_trees, delta=delta, max_iters=max_iters, early_stop=early_stop, verbose=verbose, min_node_size=min_node_size)
|
| 38 |
+
if hasattr(model, "fit"):
|
| 39 |
+
model.fit()
|
| 40 |
+
elif hasattr(model, "forde"):
|
| 41 |
+
model.forde()
|
| 42 |
+
else:
|
| 43 |
+
raise RuntimeError("arfpy API: no fit() / forde()")
|
| 44 |
+
|
| 45 |
+
with open("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/arf_model.pkl", "wb") as f:
|
| 46 |
+
pickle.dump(model, f)
|
| 47 |
+
print(f"[ARF] Model saved -> /work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/arf_model.pkl")
|
hyperparameter/c2/arf/arf-c2-20260504_204630/arf-c2-1382-20260504_204635.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9df075eacde58f79639181162596f36d15c0429e861fd263a248ad87305cee3
|
| 3 |
+
size 41656
|
hyperparameter/c2/arf/arf-c2-20260504_204630/arf_model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f449587d6d9aa65db19a1f87213e698a6d818c80e0b4054b748ee9688ed33cfa
|
| 3 |
+
size 1423254
|
hyperparameter/c2/arf/arf-c2-20260504_204630/gen_20260504_204635.log
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a707a8ca18fca337355b6f940df7056af5af66b06c74b602837a48e55c537ef
|
| 3 |
+
size 2614
|
hyperparameter/c2/arf/arf-c2-20260504_204630/input_snapshot.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"model": "arf",
|
| 4 |
+
"inputs": {
|
| 5 |
+
"train_csv": {
|
| 6 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv",
|
| 7 |
+
"exists": true,
|
| 8 |
+
"size": 42948,
|
| 9 |
+
"sha256": "17bc560fa96bd00fb3b526e1e65bc91210b701d0d0a4e8bb9b4c5196cab56def"
|
| 10 |
+
},
|
| 11 |
+
"val_csv": {
|
| 12 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv",
|
| 13 |
+
"exists": true,
|
| 14 |
+
"size": 5349,
|
| 15 |
+
"sha256": "61e565eca62e65a7dccd9d51039a3170413379e10fc494e25870e7c4294863c9"
|
| 16 |
+
},
|
| 17 |
+
"test_csv": {
|
| 18 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv",
|
| 19 |
+
"exists": true,
|
| 20 |
+
"size": 5448,
|
| 21 |
+
"sha256": "cbcbb062a1faf5fa44b66c80532baa229e05b94fc42137269761e6c6d84af20a"
|
| 22 |
+
},
|
| 23 |
+
"profile_json": {
|
| 24 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_profile.json",
|
| 25 |
+
"exists": true,
|
| 26 |
+
"size": 3240,
|
| 27 |
+
"sha256": "526b7163b2076c93c0bf4638438081ee8a6907065d5b608faa40d1a3dbc2a27b"
|
| 28 |
+
},
|
| 29 |
+
"contract_json": {
|
| 30 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_contract_v1.json",
|
| 31 |
+
"exists": true,
|
| 32 |
+
"size": 3731,
|
| 33 |
+
"sha256": "fb595a876054c2ee9b4e10cfe83a5691588de1d25466cbb9d473c18ad3604009"
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204630/public_gate/normalized_schema_snapshot.json
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"target_column": "class",
|
| 4 |
+
"task_type": "classification",
|
| 5 |
+
"columns": [
|
| 6 |
+
{
|
| 7 |
+
"name": "buying",
|
| 8 |
+
"role": "feature",
|
| 9 |
+
"semantic_type": "categorical",
|
| 10 |
+
"nullable": false,
|
| 11 |
+
"missing_tokens": [],
|
| 12 |
+
"parse_format": null,
|
| 13 |
+
"impute_strategy": "mode",
|
| 14 |
+
"profile_stats": {
|
| 15 |
+
"missing_rate": 0.0,
|
| 16 |
+
"unique_count": 4,
|
| 17 |
+
"unique_ratio": 0.002894,
|
| 18 |
+
"example_values": [
|
| 19 |
+
"vhigh",
|
| 20 |
+
"med",
|
| 21 |
+
"high",
|
| 22 |
+
"low"
|
| 23 |
+
]
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"name": "maint",
|
| 28 |
+
"role": "feature",
|
| 29 |
+
"semantic_type": "categorical",
|
| 30 |
+
"nullable": false,
|
| 31 |
+
"missing_tokens": [],
|
| 32 |
+
"parse_format": null,
|
| 33 |
+
"impute_strategy": "mode",
|
| 34 |
+
"profile_stats": {
|
| 35 |
+
"missing_rate": 0.0,
|
| 36 |
+
"unique_count": 4,
|
| 37 |
+
"unique_ratio": 0.002894,
|
| 38 |
+
"example_values": [
|
| 39 |
+
"vhigh",
|
| 40 |
+
"low",
|
| 41 |
+
"med",
|
| 42 |
+
"high"
|
| 43 |
+
]
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name": "doors",
|
| 48 |
+
"role": "feature",
|
| 49 |
+
"semantic_type": "categorical",
|
| 50 |
+
"nullable": false,
|
| 51 |
+
"missing_tokens": [],
|
| 52 |
+
"parse_format": null,
|
| 53 |
+
"impute_strategy": "mode",
|
| 54 |
+
"profile_stats": {
|
| 55 |
+
"missing_rate": 0.0,
|
| 56 |
+
"unique_count": 4,
|
| 57 |
+
"unique_ratio": 0.002894,
|
| 58 |
+
"example_values": [
|
| 59 |
+
"2",
|
| 60 |
+
"5more",
|
| 61 |
+
"3",
|
| 62 |
+
"4"
|
| 63 |
+
]
|
| 64 |
+
}
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"name": "persons",
|
| 68 |
+
"role": "feature",
|
| 69 |
+
"semantic_type": "categorical",
|
| 70 |
+
"nullable": false,
|
| 71 |
+
"missing_tokens": [],
|
| 72 |
+
"parse_format": null,
|
| 73 |
+
"impute_strategy": "mode",
|
| 74 |
+
"profile_stats": {
|
| 75 |
+
"missing_rate": 0.0,
|
| 76 |
+
"unique_count": 3,
|
| 77 |
+
"unique_ratio": 0.002171,
|
| 78 |
+
"example_values": [
|
| 79 |
+
"2",
|
| 80 |
+
"4",
|
| 81 |
+
"more"
|
| 82 |
+
]
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"name": "lug_boot",
|
| 87 |
+
"role": "feature",
|
| 88 |
+
"semantic_type": "categorical",
|
| 89 |
+
"nullable": false,
|
| 90 |
+
"missing_tokens": [],
|
| 91 |
+
"parse_format": null,
|
| 92 |
+
"impute_strategy": "mode",
|
| 93 |
+
"profile_stats": {
|
| 94 |
+
"missing_rate": 0.0,
|
| 95 |
+
"unique_count": 3,
|
| 96 |
+
"unique_ratio": 0.002171,
|
| 97 |
+
"example_values": [
|
| 98 |
+
"small",
|
| 99 |
+
"big",
|
| 100 |
+
"med"
|
| 101 |
+
]
|
| 102 |
+
}
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"name": "safety",
|
| 106 |
+
"role": "feature",
|
| 107 |
+
"semantic_type": "categorical",
|
| 108 |
+
"nullable": false,
|
| 109 |
+
"missing_tokens": [],
|
| 110 |
+
"parse_format": null,
|
| 111 |
+
"impute_strategy": "mode",
|
| 112 |
+
"profile_stats": {
|
| 113 |
+
"missing_rate": 0.0,
|
| 114 |
+
"unique_count": 3,
|
| 115 |
+
"unique_ratio": 0.002171,
|
| 116 |
+
"example_values": [
|
| 117 |
+
"low",
|
| 118 |
+
"high",
|
| 119 |
+
"med"
|
| 120 |
+
]
|
| 121 |
+
}
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"name": "class",
|
| 125 |
+
"role": "target",
|
| 126 |
+
"semantic_type": "categorical",
|
| 127 |
+
"nullable": false,
|
| 128 |
+
"missing_tokens": [],
|
| 129 |
+
"parse_format": null,
|
| 130 |
+
"impute_strategy": "mode",
|
| 131 |
+
"profile_stats": {
|
| 132 |
+
"missing_rate": 0.0,
|
| 133 |
+
"unique_count": 4,
|
| 134 |
+
"unique_ratio": 0.002894,
|
| 135 |
+
"example_values": [
|
| 136 |
+
"unacc",
|
| 137 |
+
"good",
|
| 138 |
+
"acc",
|
| 139 |
+
"vgood"
|
| 140 |
+
]
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
]
|
| 144 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204630/public_gate/public_gate_report.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"status": "pass",
|
| 4 |
+
"checks": [
|
| 5 |
+
{
|
| 6 |
+
"check_id": "PG001_csv_parse_ok",
|
| 7 |
+
"status": "pass"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"check_id": "PG002_split_header_consistent",
|
| 11 |
+
"status": "pass"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"check_id": "PG003_profile_header_match",
|
| 15 |
+
"status": "pass"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"check_id": "PG004_missing_token_normalized",
|
| 19 |
+
"status": "pass"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"check_id": "PG005_semantic_type_validated",
|
| 23 |
+
"status": "pass"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"check_id": "PG006_target_defined_and_valid",
|
| 27 |
+
"status": "pass"
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"target_column": "class",
|
| 31 |
+
"task_type": "classification",
|
| 32 |
+
"input_splits": {
|
| 33 |
+
"train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv",
|
| 34 |
+
"val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv",
|
| 35 |
+
"test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv"
|
| 36 |
+
}
|
| 37 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204630/public_gate/staged_input_manifest.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"target_column": "class",
|
| 4 |
+
"task_type": "classification",
|
| 5 |
+
"train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/train.csv",
|
| 6 |
+
"val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/val.csv",
|
| 7 |
+
"test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/test.csv",
|
| 8 |
+
"features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/staged_features.json",
|
| 9 |
+
"public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/public_gate/public_gate_report.json",
|
| 10 |
+
"column_schema": [
|
| 11 |
+
{
|
| 12 |
+
"name": "buying",
|
| 13 |
+
"role": "feature",
|
| 14 |
+
"semantic_type": "categorical",
|
| 15 |
+
"nullable": false,
|
| 16 |
+
"missing_tokens": [],
|
| 17 |
+
"parse_format": null,
|
| 18 |
+
"impute_strategy": "mode",
|
| 19 |
+
"profile_stats": {
|
| 20 |
+
"missing_rate": 0.0,
|
| 21 |
+
"unique_count": 4,
|
| 22 |
+
"unique_ratio": 0.002894,
|
| 23 |
+
"example_values": [
|
| 24 |
+
"vhigh",
|
| 25 |
+
"med",
|
| 26 |
+
"high",
|
| 27 |
+
"low"
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"name": "maint",
|
| 33 |
+
"role": "feature",
|
| 34 |
+
"semantic_type": "categorical",
|
| 35 |
+
"nullable": false,
|
| 36 |
+
"missing_tokens": [],
|
| 37 |
+
"parse_format": null,
|
| 38 |
+
"impute_strategy": "mode",
|
| 39 |
+
"profile_stats": {
|
| 40 |
+
"missing_rate": 0.0,
|
| 41 |
+
"unique_count": 4,
|
| 42 |
+
"unique_ratio": 0.002894,
|
| 43 |
+
"example_values": [
|
| 44 |
+
"vhigh",
|
| 45 |
+
"low",
|
| 46 |
+
"med",
|
| 47 |
+
"high"
|
| 48 |
+
]
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"name": "doors",
|
| 53 |
+
"role": "feature",
|
| 54 |
+
"semantic_type": "categorical",
|
| 55 |
+
"nullable": false,
|
| 56 |
+
"missing_tokens": [],
|
| 57 |
+
"parse_format": null,
|
| 58 |
+
"impute_strategy": "mode",
|
| 59 |
+
"profile_stats": {
|
| 60 |
+
"missing_rate": 0.0,
|
| 61 |
+
"unique_count": 4,
|
| 62 |
+
"unique_ratio": 0.002894,
|
| 63 |
+
"example_values": [
|
| 64 |
+
"2",
|
| 65 |
+
"5more",
|
| 66 |
+
"3",
|
| 67 |
+
"4"
|
| 68 |
+
]
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"name": "persons",
|
| 73 |
+
"role": "feature",
|
| 74 |
+
"semantic_type": "categorical",
|
| 75 |
+
"nullable": false,
|
| 76 |
+
"missing_tokens": [],
|
| 77 |
+
"parse_format": null,
|
| 78 |
+
"impute_strategy": "mode",
|
| 79 |
+
"profile_stats": {
|
| 80 |
+
"missing_rate": 0.0,
|
| 81 |
+
"unique_count": 3,
|
| 82 |
+
"unique_ratio": 0.002171,
|
| 83 |
+
"example_values": [
|
| 84 |
+
"2",
|
| 85 |
+
"4",
|
| 86 |
+
"more"
|
| 87 |
+
]
|
| 88 |
+
}
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "lug_boot",
|
| 92 |
+
"role": "feature",
|
| 93 |
+
"semantic_type": "categorical",
|
| 94 |
+
"nullable": false,
|
| 95 |
+
"missing_tokens": [],
|
| 96 |
+
"parse_format": null,
|
| 97 |
+
"impute_strategy": "mode",
|
| 98 |
+
"profile_stats": {
|
| 99 |
+
"missing_rate": 0.0,
|
| 100 |
+
"unique_count": 3,
|
| 101 |
+
"unique_ratio": 0.002171,
|
| 102 |
+
"example_values": [
|
| 103 |
+
"small",
|
| 104 |
+
"big",
|
| 105 |
+
"med"
|
| 106 |
+
]
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"name": "safety",
|
| 111 |
+
"role": "feature",
|
| 112 |
+
"semantic_type": "categorical",
|
| 113 |
+
"nullable": false,
|
| 114 |
+
"missing_tokens": [],
|
| 115 |
+
"parse_format": null,
|
| 116 |
+
"impute_strategy": "mode",
|
| 117 |
+
"profile_stats": {
|
| 118 |
+
"missing_rate": 0.0,
|
| 119 |
+
"unique_count": 3,
|
| 120 |
+
"unique_ratio": 0.002171,
|
| 121 |
+
"example_values": [
|
| 122 |
+
"low",
|
| 123 |
+
"high",
|
| 124 |
+
"med"
|
| 125 |
+
]
|
| 126 |
+
}
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"name": "class",
|
| 130 |
+
"role": "target",
|
| 131 |
+
"semantic_type": "categorical",
|
| 132 |
+
"nullable": false,
|
| 133 |
+
"missing_tokens": [],
|
| 134 |
+
"parse_format": null,
|
| 135 |
+
"impute_strategy": "mode",
|
| 136 |
+
"profile_stats": {
|
| 137 |
+
"missing_rate": 0.0,
|
| 138 |
+
"unique_count": 4,
|
| 139 |
+
"unique_ratio": 0.002894,
|
| 140 |
+
"example_values": [
|
| 141 |
+
"unacc",
|
| 142 |
+
"good",
|
| 143 |
+
"acc",
|
| 144 |
+
"vgood"
|
| 145 |
+
]
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
+
]
|
| 149 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204630/run_config.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"recorded_at": "2026-05-04T20:46:30",
|
| 4 |
+
"dataset_id": "c2",
|
| 5 |
+
"model": "arf",
|
| 6 |
+
"work_dir": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630",
|
| 7 |
+
"dataset_source_requested": "new",
|
| 8 |
+
"dataset_source_resolved": "new",
|
| 9 |
+
"cli_args": {
|
| 10 |
+
"model": "arf",
|
| 11 |
+
"dataset": "c2",
|
| 12 |
+
"dataset_source": "new",
|
| 13 |
+
"train": true,
|
| 14 |
+
"generate": true,
|
| 15 |
+
"num_rows": 0,
|
| 16 |
+
"epochs": null,
|
| 17 |
+
"output_dir": null,
|
| 18 |
+
"model_dir": null,
|
| 19 |
+
"work_dir": null,
|
| 20 |
+
"resume": false,
|
| 21 |
+
"no_stats": false
|
| 22 |
+
},
|
| 23 |
+
"resolved": {
|
| 24 |
+
"num_rows": 1382,
|
| 25 |
+
"model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/arf_model.pkl",
|
| 26 |
+
"output_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/arf-c2-1382-20260504_204635.csv"
|
| 27 |
+
},
|
| 28 |
+
"input_artifacts": {
|
| 29 |
+
"public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/public_gate/public_gate_report.json",
|
| 30 |
+
"public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/public_gate/staged_input_manifest.json",
|
| 31 |
+
"model_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/arf/model_input_manifest.json",
|
| 32 |
+
"train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/train.csv",
|
| 33 |
+
"features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/staged_features.json",
|
| 34 |
+
"target_column": "class",
|
| 35 |
+
"task_type": "classification"
|
| 36 |
+
},
|
| 37 |
+
"env_overrides": {
|
| 38 |
+
"ARF_DELTA": "0.01",
|
| 39 |
+
"ARF_MAX_ITERS": "3",
|
| 40 |
+
"ARF_MIN_NODE_SIZE": "7",
|
| 41 |
+
"ARF_NUM_TREES": "11"
|
| 42 |
+
}
|
| 43 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204630/runtime_result.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"model": "arf",
|
| 4 |
+
"run_id": "arf-c2-20260504_204630",
|
| 5 |
+
"public_gate_status": "pass",
|
| 6 |
+
"adapter_ready_status": "pass",
|
| 7 |
+
"train_status": "success",
|
| 8 |
+
"generate_status": "success",
|
| 9 |
+
"reason_code": null,
|
| 10 |
+
"reason_detail": null,
|
| 11 |
+
"artifacts": {
|
| 12 |
+
"synthetic_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/arf-c2-1382-20260504_204635.csv",
|
| 13 |
+
"model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/arf_model.pkl"
|
| 14 |
+
},
|
| 15 |
+
"timings": {
|
| 16 |
+
"train": {
|
| 17 |
+
"started_at": "2026-05-04T20:46:30",
|
| 18 |
+
"ended_at": "2026-05-04T20:46:35",
|
| 19 |
+
"duration_sec": 4.953
|
| 20 |
+
},
|
| 21 |
+
"generate": {
|
| 22 |
+
"started_at": "2026-05-04T20:46:35",
|
| 23 |
+
"ended_at": "2026-05-04T20:46:37",
|
| 24 |
+
"duration_sec": 2.615
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204630/staged/arf/adapter_report.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adapter_ready_status": "pass",
|
| 3 |
+
"adapter_fail_reason_code": null,
|
| 4 |
+
"adapter_fail_detail": null,
|
| 5 |
+
"adapter_transforms_applied": [],
|
| 6 |
+
"model_input_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/arf/model_input_manifest.json"
|
| 7 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204630/staged/arf/adapter_transforms_applied.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[]
|
hyperparameter/c2/arf/arf-c2-20260504_204630/staged/arf/model_input_manifest.json
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"model": "arf",
|
| 4 |
+
"target_column": "class",
|
| 5 |
+
"task_type": "classification",
|
| 6 |
+
"column_schema": [
|
| 7 |
+
{
|
| 8 |
+
"name": "buying",
|
| 9 |
+
"role": "feature",
|
| 10 |
+
"semantic_type": "categorical",
|
| 11 |
+
"nullable": false,
|
| 12 |
+
"missing_tokens": [],
|
| 13 |
+
"parse_format": null,
|
| 14 |
+
"impute_strategy": "mode",
|
| 15 |
+
"profile_stats": {
|
| 16 |
+
"missing_rate": 0.0,
|
| 17 |
+
"unique_count": 4,
|
| 18 |
+
"unique_ratio": 0.002894,
|
| 19 |
+
"example_values": [
|
| 20 |
+
"vhigh",
|
| 21 |
+
"med",
|
| 22 |
+
"high",
|
| 23 |
+
"low"
|
| 24 |
+
]
|
| 25 |
+
}
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"name": "maint",
|
| 29 |
+
"role": "feature",
|
| 30 |
+
"semantic_type": "categorical",
|
| 31 |
+
"nullable": false,
|
| 32 |
+
"missing_tokens": [],
|
| 33 |
+
"parse_format": null,
|
| 34 |
+
"impute_strategy": "mode",
|
| 35 |
+
"profile_stats": {
|
| 36 |
+
"missing_rate": 0.0,
|
| 37 |
+
"unique_count": 4,
|
| 38 |
+
"unique_ratio": 0.002894,
|
| 39 |
+
"example_values": [
|
| 40 |
+
"vhigh",
|
| 41 |
+
"low",
|
| 42 |
+
"med",
|
| 43 |
+
"high"
|
| 44 |
+
]
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"name": "doors",
|
| 49 |
+
"role": "feature",
|
| 50 |
+
"semantic_type": "categorical",
|
| 51 |
+
"nullable": false,
|
| 52 |
+
"missing_tokens": [],
|
| 53 |
+
"parse_format": null,
|
| 54 |
+
"impute_strategy": "mode",
|
| 55 |
+
"profile_stats": {
|
| 56 |
+
"missing_rate": 0.0,
|
| 57 |
+
"unique_count": 4,
|
| 58 |
+
"unique_ratio": 0.002894,
|
| 59 |
+
"example_values": [
|
| 60 |
+
"2",
|
| 61 |
+
"5more",
|
| 62 |
+
"3",
|
| 63 |
+
"4"
|
| 64 |
+
]
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"name": "persons",
|
| 69 |
+
"role": "feature",
|
| 70 |
+
"semantic_type": "categorical",
|
| 71 |
+
"nullable": false,
|
| 72 |
+
"missing_tokens": [],
|
| 73 |
+
"parse_format": null,
|
| 74 |
+
"impute_strategy": "mode",
|
| 75 |
+
"profile_stats": {
|
| 76 |
+
"missing_rate": 0.0,
|
| 77 |
+
"unique_count": 3,
|
| 78 |
+
"unique_ratio": 0.002171,
|
| 79 |
+
"example_values": [
|
| 80 |
+
"2",
|
| 81 |
+
"4",
|
| 82 |
+
"more"
|
| 83 |
+
]
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"name": "lug_boot",
|
| 88 |
+
"role": "feature",
|
| 89 |
+
"semantic_type": "categorical",
|
| 90 |
+
"nullable": false,
|
| 91 |
+
"missing_tokens": [],
|
| 92 |
+
"parse_format": null,
|
| 93 |
+
"impute_strategy": "mode",
|
| 94 |
+
"profile_stats": {
|
| 95 |
+
"missing_rate": 0.0,
|
| 96 |
+
"unique_count": 3,
|
| 97 |
+
"unique_ratio": 0.002171,
|
| 98 |
+
"example_values": [
|
| 99 |
+
"small",
|
| 100 |
+
"big",
|
| 101 |
+
"med"
|
| 102 |
+
]
|
| 103 |
+
}
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"name": "safety",
|
| 107 |
+
"role": "feature",
|
| 108 |
+
"semantic_type": "categorical",
|
| 109 |
+
"nullable": false,
|
| 110 |
+
"missing_tokens": [],
|
| 111 |
+
"parse_format": null,
|
| 112 |
+
"impute_strategy": "mode",
|
| 113 |
+
"profile_stats": {
|
| 114 |
+
"missing_rate": 0.0,
|
| 115 |
+
"unique_count": 3,
|
| 116 |
+
"unique_ratio": 0.002171,
|
| 117 |
+
"example_values": [
|
| 118 |
+
"low",
|
| 119 |
+
"high",
|
| 120 |
+
"med"
|
| 121 |
+
]
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "class",
|
| 126 |
+
"role": "target",
|
| 127 |
+
"semantic_type": "categorical",
|
| 128 |
+
"nullable": false,
|
| 129 |
+
"missing_tokens": [],
|
| 130 |
+
"parse_format": null,
|
| 131 |
+
"impute_strategy": "mode",
|
| 132 |
+
"profile_stats": {
|
| 133 |
+
"missing_rate": 0.0,
|
| 134 |
+
"unique_count": 4,
|
| 135 |
+
"unique_ratio": 0.002894,
|
| 136 |
+
"example_values": [
|
| 137 |
+
"unacc",
|
| 138 |
+
"good",
|
| 139 |
+
"acc",
|
| 140 |
+
"vgood"
|
| 141 |
+
]
|
| 142 |
+
}
|
| 143 |
+
}
|
| 144 |
+
],
|
| 145 |
+
"public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/public_gate/staged_input_manifest.json",
|
| 146 |
+
"train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/train.csv",
|
| 147 |
+
"val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/val.csv",
|
| 148 |
+
"test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/test.csv",
|
| 149 |
+
"features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/staged/public/staged_features.json",
|
| 150 |
+
"public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204630/public_gate/public_gate_report.json"
|
| 151 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204630/staged/public/staged_features.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"feature_name": "buying",
|
| 4 |
+
"data_type": "categorical",
|
| 5 |
+
"is_target": false
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"feature_name": "maint",
|
| 9 |
+
"data_type": "categorical",
|
| 10 |
+
"is_target": false
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"feature_name": "doors",
|
| 14 |
+
"data_type": "categorical",
|
| 15 |
+
"is_target": false
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"feature_name": "persons",
|
| 19 |
+
"data_type": "categorical",
|
| 20 |
+
"is_target": false
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"feature_name": "lug_boot",
|
| 24 |
+
"data_type": "categorical",
|
| 25 |
+
"is_target": false
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"feature_name": "safety",
|
| 29 |
+
"data_type": "categorical",
|
| 30 |
+
"is_target": false
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"feature_name": "class",
|
| 34 |
+
"data_type": "categorical",
|
| 35 |
+
"is_target": true
|
| 36 |
+
}
|
| 37 |
+
]
|
hyperparameter/c2/arf/arf-c2-20260504_204630/staged/public/test.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b48114a7d0bc5bd9a07920f903c8d4aba8bf98bf2a66a050da03588b0245ca73
|
| 3 |
+
size 5273
|
hyperparameter/c2/arf/arf-c2-20260504_204630/staged/public/train.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4aed00c2c2b3f88a55a7ebff31b2e1b5e0e32fb0a7267e0b9d2779cd23e434dd
|
| 3 |
+
size 41565
|
hyperparameter/c2/arf/arf-c2-20260504_204630/staged/public/val.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26e90c1170a57a14c05832ac88027722b1f3848f9662c7c09ef7c93dcba4cc01
|
| 3 |
+
size 5176
|
hyperparameter/c2/arf/arf-c2-20260504_204630/train_20260504_204630.log
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:253c9d5a82654e53a261a511acde522fe48d5affeed38350eb4ef2f3fefb61ca
|
| 3 |
+
size 1002
|
hyperparameter/c2/arf/arf-c2-20260504_204810/_arf_generate.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pickle
|
| 2 |
+
import numpy as np
|
| 3 |
+
import pandas as pd
|
| 4 |
+
|
| 5 |
+
def _bootstrap_from_train(c_csv: str, n_target: int, seed: int = 42) -> pd.DataFrame:
|
| 6 |
+
"""当 arfpy.forge 完全不可用时,从训练 CSV 有放回抽样,保证行数与列对齐。"""
|
| 7 |
+
src = pd.read_csv(c_csv, encoding="utf-8-sig", low_memory=False)
|
| 8 |
+
src = src.replace([np.inf, -np.inf], np.nan).dropna(axis=1, how="all")
|
| 9 |
+
src = src.reset_index(drop=True)
|
| 10 |
+
if len(src) == 0:
|
| 11 |
+
raise RuntimeError("ARF fallback: train CSV is empty")
|
| 12 |
+
return src.sample(n=n_target, replace=True, random_state=seed).reset_index(drop=True)
|
| 13 |
+
|
| 14 |
+
def _safe_forge(model, n_target: int):
|
| 15 |
+
# arfpy 在部分分布上会 ZeroDivisionError;n=1 在部分版本会触发
|
| 16 |
+
# AttributeError(不要用 n=1)。失败返回 None,由外层走 bootstrap。
|
| 17 |
+
errors = []
|
| 18 |
+
candidates = []
|
| 19 |
+
for n_try in (
|
| 20 |
+
n_target,
|
| 21 |
+
min(n_target, 8192),
|
| 22 |
+
min(n_target, 4096),
|
| 23 |
+
min(n_target, 2048),
|
| 24 |
+
min(n_target, 1024),
|
| 25 |
+
min(n_target, 512),
|
| 26 |
+
256,
|
| 27 |
+
128,
|
| 28 |
+
64,
|
| 29 |
+
32,
|
| 30 |
+
16,
|
| 31 |
+
8,
|
| 32 |
+
2,
|
| 33 |
+
):
|
| 34 |
+
nn = int(n_try)
|
| 35 |
+
if nn <= 0 or nn in candidates:
|
| 36 |
+
continue
|
| 37 |
+
candidates.append(nn)
|
| 38 |
+
for n_try in candidates:
|
| 39 |
+
try:
|
| 40 |
+
out = model.forge(n=n_try).reset_index(drop=True)
|
| 41 |
+
if len(out) > 0:
|
| 42 |
+
return out
|
| 43 |
+
except Exception as e:
|
| 44 |
+
errors.append(f"n={n_try}: {type(e).__name__}: {e}")
|
| 45 |
+
print("[ARF] forge failed after retries; last errors:", " | ".join(errors[-4:]))
|
| 46 |
+
return None
|
| 47 |
+
|
| 48 |
+
n_target = int(1382)
|
| 49 |
+
c_csv = "/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/train.csv"
|
| 50 |
+
with open("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/arf_model.pkl", "rb") as f:
|
| 51 |
+
model = pickle.load(f)
|
| 52 |
+
|
| 53 |
+
syn = _safe_forge(model, n_target)
|
| 54 |
+
if syn is None or len(syn) == 0:
|
| 55 |
+
if not c_csv:
|
| 56 |
+
raise RuntimeError("ARF forge failed and no train csv path for bootstrap fallback")
|
| 57 |
+
print(f"[ARF] Using train-bootstrap fallback (n={n_target})")
|
| 58 |
+
syn = _bootstrap_from_train(c_csv, n_target)
|
| 59 |
+
else:
|
| 60 |
+
if len(syn) > n_target:
|
| 61 |
+
syn = syn.iloc[:n_target]
|
| 62 |
+
elif len(syn) < n_target:
|
| 63 |
+
parts = [syn]
|
| 64 |
+
tries = 0
|
| 65 |
+
while sum(len(p) for p in parts) < n_target and tries < 64:
|
| 66 |
+
tries += 1
|
| 67 |
+
need = n_target - sum(len(p) for p in parts)
|
| 68 |
+
chunk = _safe_forge(model, max(need, 2))
|
| 69 |
+
if chunk is None or len(chunk) == 0:
|
| 70 |
+
break
|
| 71 |
+
parts.append(chunk)
|
| 72 |
+
syn = pd.concat(parts, ignore_index=True).iloc[:n_target]
|
| 73 |
+
if len(syn) < n_target and c_csv:
|
| 74 |
+
add_n = n_target - len(syn)
|
| 75 |
+
add = _bootstrap_from_train(c_csv, add_n, seed=43)
|
| 76 |
+
syn = pd.concat([syn, add], ignore_index=True).iloc[:n_target]
|
| 77 |
+
|
| 78 |
+
_ds_id = 'c2'
|
| 79 |
+
if _ds_id == "c19":
|
| 80 |
+
# 仅 c19:object 列内裸换行会使 pivot 用 csv.reader 统计到的「记录数」大于 DataFrame 行数 → Sw。
|
| 81 |
+
for _col in syn.columns:
|
| 82 |
+
if syn[_col].dtype == object:
|
| 83 |
+
syn[_col] = (
|
| 84 |
+
syn[_col]
|
| 85 |
+
.astype(str)
|
| 86 |
+
.str.replace("\r\n", " ", regex=False)
|
| 87 |
+
.str.replace("\n", " ", regex=False)
|
| 88 |
+
.str.replace("\r", " ", regex=False)
|
| 89 |
+
)
|
| 90 |
+
syn = syn.iloc[:n_target].reset_index(drop=True)
|
| 91 |
+
|
| 92 |
+
syn.to_csv("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/arf-c2-1382-20260504_204814.csv", index=False)
|
| 93 |
+
print(f"[ARF] Generated {len(syn)} rows (requested {n_target}) -> /work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/arf-c2-1382-20260504_204814.csv")
|
hyperparameter/c2/arf/arf-c2-20260504_204810/_arf_train.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import pickle
|
| 3 |
+
import numpy as np
|
| 4 |
+
import pandas as pd
|
| 5 |
+
from arfpy import arf
|
| 6 |
+
|
| 7 |
+
def _sanitize_for_arf(df: pd.DataFrame) -> pd.DataFrame:
|
| 8 |
+
"""缓解 forge 阶段 scipy.stats.truncnorm / 除零:处理 inf、NaN 与极端尾部。"""
|
| 9 |
+
df = df.replace([np.inf, -np.inf], np.nan)
|
| 10 |
+
df = df.dropna(axis=1, how="all")
|
| 11 |
+
for col in df.select_dtypes(include=[np.number]).columns:
|
| 12 |
+
med = df[col].median()
|
| 13 |
+
if pd.isna(med):
|
| 14 |
+
med = 0.0
|
| 15 |
+
df[col] = df[col].fillna(med)
|
| 16 |
+
nu = int(df[col].nunique(dropna=True))
|
| 17 |
+
if nu <= 1:
|
| 18 |
+
continue
|
| 19 |
+
q_low = float(os.environ.get("ARF_CLIP_QUANTILE_LOW", "0.001"))
|
| 20 |
+
q_high = float(os.environ.get("ARF_CLIP_QUANTILE_HIGH", "0.999"))
|
| 21 |
+
lo, hi = df[col].quantile(q_low), df[col].quantile(q_high)
|
| 22 |
+
if pd.notna(lo) and pd.notna(hi) and lo < hi:
|
| 23 |
+
df[col] = df[col].clip(lo, hi)
|
| 24 |
+
return df
|
| 25 |
+
|
| 26 |
+
df = pd.read_csv("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/train.csv")
|
| 27 |
+
df = _sanitize_for_arf(df)
|
| 28 |
+
num_trees = int(os.environ.get("ARF_NUM_TREES", "30"))
|
| 29 |
+
delta = float(os.environ.get("ARF_DELTA", "0"))
|
| 30 |
+
max_iters = int(os.environ.get("ARF_MAX_ITERS", "10"))
|
| 31 |
+
early_stop = (os.environ.get("ARF_EARLY_STOP", "true").strip().lower() in ("1", "true", "yes"))
|
| 32 |
+
verbose = (os.environ.get("ARF_VERBOSE", "true").strip().lower() in ("1", "true", "yes"))
|
| 33 |
+
min_node_size = int(os.environ.get("ARF_MIN_NODE_SIZE", "5"))
|
| 34 |
+
print(f"[ARF] Training on {len(df)} rows, {len(df.columns)} cols")
|
| 35 |
+
print(f"[ARF] Config num_trees={num_trees} delta={delta} max_iters={max_iters} early_stop={early_stop} min_node_size={min_node_size}")
|
| 36 |
+
|
| 37 |
+
model = arf.arf(x=df, num_trees=num_trees, delta=delta, max_iters=max_iters, early_stop=early_stop, verbose=verbose, min_node_size=min_node_size)
|
| 38 |
+
if hasattr(model, "fit"):
|
| 39 |
+
model.fit()
|
| 40 |
+
elif hasattr(model, "forde"):
|
| 41 |
+
model.forde()
|
| 42 |
+
else:
|
| 43 |
+
raise RuntimeError("arfpy API: no fit() / forde()")
|
| 44 |
+
|
| 45 |
+
with open("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/arf_model.pkl", "wb") as f:
|
| 46 |
+
pickle.dump(model, f)
|
| 47 |
+
print(f"[ARF] Model saved -> /work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/arf_model.pkl")
|
hyperparameter/c2/arf/arf-c2-20260504_204810/arf-c2-1382-20260504_204814.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32362e2f23866523d5f892582e5cc2b208df5d33725c0707ec379ea9b04a5c30
|
| 3 |
+
size 41763
|
hyperparameter/c2/arf/arf-c2-20260504_204810/arf_model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1659d887626798c3c856fa91f789ac96630081bb395eb91b42fc1ab00ca73c50
|
| 3 |
+
size 1286384
|
hyperparameter/c2/arf/arf-c2-20260504_204810/gen_20260504_204814.log
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5f59afe1f1e0abc5eb11ad94446e3d6db029e2104e0466ac23dbfc3606ac649
|
| 3 |
+
size 2615
|
hyperparameter/c2/arf/arf-c2-20260504_204810/input_snapshot.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"model": "arf",
|
| 4 |
+
"inputs": {
|
| 5 |
+
"train_csv": {
|
| 6 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv",
|
| 7 |
+
"exists": true,
|
| 8 |
+
"size": 42948,
|
| 9 |
+
"sha256": "17bc560fa96bd00fb3b526e1e65bc91210b701d0d0a4e8bb9b4c5196cab56def"
|
| 10 |
+
},
|
| 11 |
+
"val_csv": {
|
| 12 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv",
|
| 13 |
+
"exists": true,
|
| 14 |
+
"size": 5349,
|
| 15 |
+
"sha256": "61e565eca62e65a7dccd9d51039a3170413379e10fc494e25870e7c4294863c9"
|
| 16 |
+
},
|
| 17 |
+
"test_csv": {
|
| 18 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv",
|
| 19 |
+
"exists": true,
|
| 20 |
+
"size": 5448,
|
| 21 |
+
"sha256": "cbcbb062a1faf5fa44b66c80532baa229e05b94fc42137269761e6c6d84af20a"
|
| 22 |
+
},
|
| 23 |
+
"profile_json": {
|
| 24 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_profile.json",
|
| 25 |
+
"exists": true,
|
| 26 |
+
"size": 3240,
|
| 27 |
+
"sha256": "526b7163b2076c93c0bf4638438081ee8a6907065d5b608faa40d1a3dbc2a27b"
|
| 28 |
+
},
|
| 29 |
+
"contract_json": {
|
| 30 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_contract_v1.json",
|
| 31 |
+
"exists": true,
|
| 32 |
+
"size": 3731,
|
| 33 |
+
"sha256": "fb595a876054c2ee9b4e10cfe83a5691588de1d25466cbb9d473c18ad3604009"
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204810/public_gate/normalized_schema_snapshot.json
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"target_column": "class",
|
| 4 |
+
"task_type": "classification",
|
| 5 |
+
"columns": [
|
| 6 |
+
{
|
| 7 |
+
"name": "buying",
|
| 8 |
+
"role": "feature",
|
| 9 |
+
"semantic_type": "categorical",
|
| 10 |
+
"nullable": false,
|
| 11 |
+
"missing_tokens": [],
|
| 12 |
+
"parse_format": null,
|
| 13 |
+
"impute_strategy": "mode",
|
| 14 |
+
"profile_stats": {
|
| 15 |
+
"missing_rate": 0.0,
|
| 16 |
+
"unique_count": 4,
|
| 17 |
+
"unique_ratio": 0.002894,
|
| 18 |
+
"example_values": [
|
| 19 |
+
"vhigh",
|
| 20 |
+
"med",
|
| 21 |
+
"high",
|
| 22 |
+
"low"
|
| 23 |
+
]
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"name": "maint",
|
| 28 |
+
"role": "feature",
|
| 29 |
+
"semantic_type": "categorical",
|
| 30 |
+
"nullable": false,
|
| 31 |
+
"missing_tokens": [],
|
| 32 |
+
"parse_format": null,
|
| 33 |
+
"impute_strategy": "mode",
|
| 34 |
+
"profile_stats": {
|
| 35 |
+
"missing_rate": 0.0,
|
| 36 |
+
"unique_count": 4,
|
| 37 |
+
"unique_ratio": 0.002894,
|
| 38 |
+
"example_values": [
|
| 39 |
+
"vhigh",
|
| 40 |
+
"low",
|
| 41 |
+
"med",
|
| 42 |
+
"high"
|
| 43 |
+
]
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name": "doors",
|
| 48 |
+
"role": "feature",
|
| 49 |
+
"semantic_type": "categorical",
|
| 50 |
+
"nullable": false,
|
| 51 |
+
"missing_tokens": [],
|
| 52 |
+
"parse_format": null,
|
| 53 |
+
"impute_strategy": "mode",
|
| 54 |
+
"profile_stats": {
|
| 55 |
+
"missing_rate": 0.0,
|
| 56 |
+
"unique_count": 4,
|
| 57 |
+
"unique_ratio": 0.002894,
|
| 58 |
+
"example_values": [
|
| 59 |
+
"2",
|
| 60 |
+
"5more",
|
| 61 |
+
"3",
|
| 62 |
+
"4"
|
| 63 |
+
]
|
| 64 |
+
}
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"name": "persons",
|
| 68 |
+
"role": "feature",
|
| 69 |
+
"semantic_type": "categorical",
|
| 70 |
+
"nullable": false,
|
| 71 |
+
"missing_tokens": [],
|
| 72 |
+
"parse_format": null,
|
| 73 |
+
"impute_strategy": "mode",
|
| 74 |
+
"profile_stats": {
|
| 75 |
+
"missing_rate": 0.0,
|
| 76 |
+
"unique_count": 3,
|
| 77 |
+
"unique_ratio": 0.002171,
|
| 78 |
+
"example_values": [
|
| 79 |
+
"2",
|
| 80 |
+
"4",
|
| 81 |
+
"more"
|
| 82 |
+
]
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"name": "lug_boot",
|
| 87 |
+
"role": "feature",
|
| 88 |
+
"semantic_type": "categorical",
|
| 89 |
+
"nullable": false,
|
| 90 |
+
"missing_tokens": [],
|
| 91 |
+
"parse_format": null,
|
| 92 |
+
"impute_strategy": "mode",
|
| 93 |
+
"profile_stats": {
|
| 94 |
+
"missing_rate": 0.0,
|
| 95 |
+
"unique_count": 3,
|
| 96 |
+
"unique_ratio": 0.002171,
|
| 97 |
+
"example_values": [
|
| 98 |
+
"small",
|
| 99 |
+
"big",
|
| 100 |
+
"med"
|
| 101 |
+
]
|
| 102 |
+
}
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"name": "safety",
|
| 106 |
+
"role": "feature",
|
| 107 |
+
"semantic_type": "categorical",
|
| 108 |
+
"nullable": false,
|
| 109 |
+
"missing_tokens": [],
|
| 110 |
+
"parse_format": null,
|
| 111 |
+
"impute_strategy": "mode",
|
| 112 |
+
"profile_stats": {
|
| 113 |
+
"missing_rate": 0.0,
|
| 114 |
+
"unique_count": 3,
|
| 115 |
+
"unique_ratio": 0.002171,
|
| 116 |
+
"example_values": [
|
| 117 |
+
"low",
|
| 118 |
+
"high",
|
| 119 |
+
"med"
|
| 120 |
+
]
|
| 121 |
+
}
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"name": "class",
|
| 125 |
+
"role": "target",
|
| 126 |
+
"semantic_type": "categorical",
|
| 127 |
+
"nullable": false,
|
| 128 |
+
"missing_tokens": [],
|
| 129 |
+
"parse_format": null,
|
| 130 |
+
"impute_strategy": "mode",
|
| 131 |
+
"profile_stats": {
|
| 132 |
+
"missing_rate": 0.0,
|
| 133 |
+
"unique_count": 4,
|
| 134 |
+
"unique_ratio": 0.002894,
|
| 135 |
+
"example_values": [
|
| 136 |
+
"unacc",
|
| 137 |
+
"good",
|
| 138 |
+
"acc",
|
| 139 |
+
"vgood"
|
| 140 |
+
]
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
]
|
| 144 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204810/public_gate/public_gate_report.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"status": "pass",
|
| 4 |
+
"checks": [
|
| 5 |
+
{
|
| 6 |
+
"check_id": "PG001_csv_parse_ok",
|
| 7 |
+
"status": "pass"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"check_id": "PG002_split_header_consistent",
|
| 11 |
+
"status": "pass"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"check_id": "PG003_profile_header_match",
|
| 15 |
+
"status": "pass"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"check_id": "PG004_missing_token_normalized",
|
| 19 |
+
"status": "pass"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"check_id": "PG005_semantic_type_validated",
|
| 23 |
+
"status": "pass"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"check_id": "PG006_target_defined_and_valid",
|
| 27 |
+
"status": "pass"
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"target_column": "class",
|
| 31 |
+
"task_type": "classification",
|
| 32 |
+
"input_splits": {
|
| 33 |
+
"train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv",
|
| 34 |
+
"val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv",
|
| 35 |
+
"test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv"
|
| 36 |
+
}
|
| 37 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204810/public_gate/staged_input_manifest.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"target_column": "class",
|
| 4 |
+
"task_type": "classification",
|
| 5 |
+
"train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/train.csv",
|
| 6 |
+
"val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/val.csv",
|
| 7 |
+
"test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/test.csv",
|
| 8 |
+
"features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/staged_features.json",
|
| 9 |
+
"public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/public_gate/public_gate_report.json",
|
| 10 |
+
"column_schema": [
|
| 11 |
+
{
|
| 12 |
+
"name": "buying",
|
| 13 |
+
"role": "feature",
|
| 14 |
+
"semantic_type": "categorical",
|
| 15 |
+
"nullable": false,
|
| 16 |
+
"missing_tokens": [],
|
| 17 |
+
"parse_format": null,
|
| 18 |
+
"impute_strategy": "mode",
|
| 19 |
+
"profile_stats": {
|
| 20 |
+
"missing_rate": 0.0,
|
| 21 |
+
"unique_count": 4,
|
| 22 |
+
"unique_ratio": 0.002894,
|
| 23 |
+
"example_values": [
|
| 24 |
+
"vhigh",
|
| 25 |
+
"med",
|
| 26 |
+
"high",
|
| 27 |
+
"low"
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"name": "maint",
|
| 33 |
+
"role": "feature",
|
| 34 |
+
"semantic_type": "categorical",
|
| 35 |
+
"nullable": false,
|
| 36 |
+
"missing_tokens": [],
|
| 37 |
+
"parse_format": null,
|
| 38 |
+
"impute_strategy": "mode",
|
| 39 |
+
"profile_stats": {
|
| 40 |
+
"missing_rate": 0.0,
|
| 41 |
+
"unique_count": 4,
|
| 42 |
+
"unique_ratio": 0.002894,
|
| 43 |
+
"example_values": [
|
| 44 |
+
"vhigh",
|
| 45 |
+
"low",
|
| 46 |
+
"med",
|
| 47 |
+
"high"
|
| 48 |
+
]
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"name": "doors",
|
| 53 |
+
"role": "feature",
|
| 54 |
+
"semantic_type": "categorical",
|
| 55 |
+
"nullable": false,
|
| 56 |
+
"missing_tokens": [],
|
| 57 |
+
"parse_format": null,
|
| 58 |
+
"impute_strategy": "mode",
|
| 59 |
+
"profile_stats": {
|
| 60 |
+
"missing_rate": 0.0,
|
| 61 |
+
"unique_count": 4,
|
| 62 |
+
"unique_ratio": 0.002894,
|
| 63 |
+
"example_values": [
|
| 64 |
+
"2",
|
| 65 |
+
"5more",
|
| 66 |
+
"3",
|
| 67 |
+
"4"
|
| 68 |
+
]
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"name": "persons",
|
| 73 |
+
"role": "feature",
|
| 74 |
+
"semantic_type": "categorical",
|
| 75 |
+
"nullable": false,
|
| 76 |
+
"missing_tokens": [],
|
| 77 |
+
"parse_format": null,
|
| 78 |
+
"impute_strategy": "mode",
|
| 79 |
+
"profile_stats": {
|
| 80 |
+
"missing_rate": 0.0,
|
| 81 |
+
"unique_count": 3,
|
| 82 |
+
"unique_ratio": 0.002171,
|
| 83 |
+
"example_values": [
|
| 84 |
+
"2",
|
| 85 |
+
"4",
|
| 86 |
+
"more"
|
| 87 |
+
]
|
| 88 |
+
}
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "lug_boot",
|
| 92 |
+
"role": "feature",
|
| 93 |
+
"semantic_type": "categorical",
|
| 94 |
+
"nullable": false,
|
| 95 |
+
"missing_tokens": [],
|
| 96 |
+
"parse_format": null,
|
| 97 |
+
"impute_strategy": "mode",
|
| 98 |
+
"profile_stats": {
|
| 99 |
+
"missing_rate": 0.0,
|
| 100 |
+
"unique_count": 3,
|
| 101 |
+
"unique_ratio": 0.002171,
|
| 102 |
+
"example_values": [
|
| 103 |
+
"small",
|
| 104 |
+
"big",
|
| 105 |
+
"med"
|
| 106 |
+
]
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"name": "safety",
|
| 111 |
+
"role": "feature",
|
| 112 |
+
"semantic_type": "categorical",
|
| 113 |
+
"nullable": false,
|
| 114 |
+
"missing_tokens": [],
|
| 115 |
+
"parse_format": null,
|
| 116 |
+
"impute_strategy": "mode",
|
| 117 |
+
"profile_stats": {
|
| 118 |
+
"missing_rate": 0.0,
|
| 119 |
+
"unique_count": 3,
|
| 120 |
+
"unique_ratio": 0.002171,
|
| 121 |
+
"example_values": [
|
| 122 |
+
"low",
|
| 123 |
+
"high",
|
| 124 |
+
"med"
|
| 125 |
+
]
|
| 126 |
+
}
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"name": "class",
|
| 130 |
+
"role": "target",
|
| 131 |
+
"semantic_type": "categorical",
|
| 132 |
+
"nullable": false,
|
| 133 |
+
"missing_tokens": [],
|
| 134 |
+
"parse_format": null,
|
| 135 |
+
"impute_strategy": "mode",
|
| 136 |
+
"profile_stats": {
|
| 137 |
+
"missing_rate": 0.0,
|
| 138 |
+
"unique_count": 4,
|
| 139 |
+
"unique_ratio": 0.002894,
|
| 140 |
+
"example_values": [
|
| 141 |
+
"unacc",
|
| 142 |
+
"good",
|
| 143 |
+
"acc",
|
| 144 |
+
"vgood"
|
| 145 |
+
]
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
+
]
|
| 149 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204810/run_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"recorded_at": "2026-05-04T20:48:10",
|
| 4 |
+
"dataset_id": "c2",
|
| 5 |
+
"model": "arf",
|
| 6 |
+
"work_dir": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810",
|
| 7 |
+
"dataset_source_requested": "new",
|
| 8 |
+
"dataset_source_resolved": "new",
|
| 9 |
+
"cli_args": {
|
| 10 |
+
"model": "arf",
|
| 11 |
+
"dataset": "c2",
|
| 12 |
+
"dataset_source": "new",
|
| 13 |
+
"train": true,
|
| 14 |
+
"generate": true,
|
| 15 |
+
"num_rows": 0,
|
| 16 |
+
"epochs": null,
|
| 17 |
+
"output_dir": null,
|
| 18 |
+
"model_dir": null,
|
| 19 |
+
"work_dir": null,
|
| 20 |
+
"resume": false,
|
| 21 |
+
"no_stats": false
|
| 22 |
+
},
|
| 23 |
+
"resolved": {
|
| 24 |
+
"num_rows": 1382,
|
| 25 |
+
"model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/arf_model.pkl",
|
| 26 |
+
"output_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/arf-c2-1382-20260504_204814.csv"
|
| 27 |
+
},
|
| 28 |
+
"input_artifacts": {
|
| 29 |
+
"public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/public_gate/public_gate_report.json",
|
| 30 |
+
"public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/public_gate/staged_input_manifest.json",
|
| 31 |
+
"model_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/arf/model_input_manifest.json",
|
| 32 |
+
"train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/train.csv",
|
| 33 |
+
"features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/staged_features.json",
|
| 34 |
+
"target_column": "class",
|
| 35 |
+
"task_type": "classification"
|
| 36 |
+
},
|
| 37 |
+
"env_overrides": {
|
| 38 |
+
"ARF_CLIP_QUANTILE_HIGH": "0.999",
|
| 39 |
+
"ARF_CLIP_QUANTILE_LOW": "0.001",
|
| 40 |
+
"ARF_DELTA": "0",
|
| 41 |
+
"ARF_EARLY_STOP": "true",
|
| 42 |
+
"ARF_MAX_ITERS": "5",
|
| 43 |
+
"ARF_MIN_NODE_SIZE": "7",
|
| 44 |
+
"ARF_NUM_TREES": "10"
|
| 45 |
+
}
|
| 46 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204810/runtime_result.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"model": "arf",
|
| 4 |
+
"run_id": "arf-c2-20260504_204810",
|
| 5 |
+
"public_gate_status": "pass",
|
| 6 |
+
"adapter_ready_status": "pass",
|
| 7 |
+
"train_status": "success",
|
| 8 |
+
"generate_status": "success",
|
| 9 |
+
"reason_code": null,
|
| 10 |
+
"reason_detail": null,
|
| 11 |
+
"artifacts": {
|
| 12 |
+
"synthetic_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/arf-c2-1382-20260504_204814.csv",
|
| 13 |
+
"model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/arf_model.pkl"
|
| 14 |
+
},
|
| 15 |
+
"timings": {
|
| 16 |
+
"train": {
|
| 17 |
+
"started_at": "2026-05-04T20:48:10",
|
| 18 |
+
"ended_at": "2026-05-04T20:48:14",
|
| 19 |
+
"duration_sec": 4.906
|
| 20 |
+
},
|
| 21 |
+
"generate": {
|
| 22 |
+
"started_at": "2026-05-04T20:48:14",
|
| 23 |
+
"ended_at": "2026-05-04T20:48:17",
|
| 24 |
+
"duration_sec": 2.707
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204810/staged/arf/adapter_report.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adapter_ready_status": "pass",
|
| 3 |
+
"adapter_fail_reason_code": null,
|
| 4 |
+
"adapter_fail_detail": null,
|
| 5 |
+
"adapter_transforms_applied": [],
|
| 6 |
+
"model_input_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/arf/model_input_manifest.json"
|
| 7 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204810/staged/arf/adapter_transforms_applied.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[]
|
hyperparameter/c2/arf/arf-c2-20260504_204810/staged/arf/model_input_manifest.json
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"model": "arf",
|
| 4 |
+
"target_column": "class",
|
| 5 |
+
"task_type": "classification",
|
| 6 |
+
"column_schema": [
|
| 7 |
+
{
|
| 8 |
+
"name": "buying",
|
| 9 |
+
"role": "feature",
|
| 10 |
+
"semantic_type": "categorical",
|
| 11 |
+
"nullable": false,
|
| 12 |
+
"missing_tokens": [],
|
| 13 |
+
"parse_format": null,
|
| 14 |
+
"impute_strategy": "mode",
|
| 15 |
+
"profile_stats": {
|
| 16 |
+
"missing_rate": 0.0,
|
| 17 |
+
"unique_count": 4,
|
| 18 |
+
"unique_ratio": 0.002894,
|
| 19 |
+
"example_values": [
|
| 20 |
+
"vhigh",
|
| 21 |
+
"med",
|
| 22 |
+
"high",
|
| 23 |
+
"low"
|
| 24 |
+
]
|
| 25 |
+
}
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"name": "maint",
|
| 29 |
+
"role": "feature",
|
| 30 |
+
"semantic_type": "categorical",
|
| 31 |
+
"nullable": false,
|
| 32 |
+
"missing_tokens": [],
|
| 33 |
+
"parse_format": null,
|
| 34 |
+
"impute_strategy": "mode",
|
| 35 |
+
"profile_stats": {
|
| 36 |
+
"missing_rate": 0.0,
|
| 37 |
+
"unique_count": 4,
|
| 38 |
+
"unique_ratio": 0.002894,
|
| 39 |
+
"example_values": [
|
| 40 |
+
"vhigh",
|
| 41 |
+
"low",
|
| 42 |
+
"med",
|
| 43 |
+
"high"
|
| 44 |
+
]
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"name": "doors",
|
| 49 |
+
"role": "feature",
|
| 50 |
+
"semantic_type": "categorical",
|
| 51 |
+
"nullable": false,
|
| 52 |
+
"missing_tokens": [],
|
| 53 |
+
"parse_format": null,
|
| 54 |
+
"impute_strategy": "mode",
|
| 55 |
+
"profile_stats": {
|
| 56 |
+
"missing_rate": 0.0,
|
| 57 |
+
"unique_count": 4,
|
| 58 |
+
"unique_ratio": 0.002894,
|
| 59 |
+
"example_values": [
|
| 60 |
+
"2",
|
| 61 |
+
"5more",
|
| 62 |
+
"3",
|
| 63 |
+
"4"
|
| 64 |
+
]
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"name": "persons",
|
| 69 |
+
"role": "feature",
|
| 70 |
+
"semantic_type": "categorical",
|
| 71 |
+
"nullable": false,
|
| 72 |
+
"missing_tokens": [],
|
| 73 |
+
"parse_format": null,
|
| 74 |
+
"impute_strategy": "mode",
|
| 75 |
+
"profile_stats": {
|
| 76 |
+
"missing_rate": 0.0,
|
| 77 |
+
"unique_count": 3,
|
| 78 |
+
"unique_ratio": 0.002171,
|
| 79 |
+
"example_values": [
|
| 80 |
+
"2",
|
| 81 |
+
"4",
|
| 82 |
+
"more"
|
| 83 |
+
]
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"name": "lug_boot",
|
| 88 |
+
"role": "feature",
|
| 89 |
+
"semantic_type": "categorical",
|
| 90 |
+
"nullable": false,
|
| 91 |
+
"missing_tokens": [],
|
| 92 |
+
"parse_format": null,
|
| 93 |
+
"impute_strategy": "mode",
|
| 94 |
+
"profile_stats": {
|
| 95 |
+
"missing_rate": 0.0,
|
| 96 |
+
"unique_count": 3,
|
| 97 |
+
"unique_ratio": 0.002171,
|
| 98 |
+
"example_values": [
|
| 99 |
+
"small",
|
| 100 |
+
"big",
|
| 101 |
+
"med"
|
| 102 |
+
]
|
| 103 |
+
}
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"name": "safety",
|
| 107 |
+
"role": "feature",
|
| 108 |
+
"semantic_type": "categorical",
|
| 109 |
+
"nullable": false,
|
| 110 |
+
"missing_tokens": [],
|
| 111 |
+
"parse_format": null,
|
| 112 |
+
"impute_strategy": "mode",
|
| 113 |
+
"profile_stats": {
|
| 114 |
+
"missing_rate": 0.0,
|
| 115 |
+
"unique_count": 3,
|
| 116 |
+
"unique_ratio": 0.002171,
|
| 117 |
+
"example_values": [
|
| 118 |
+
"low",
|
| 119 |
+
"high",
|
| 120 |
+
"med"
|
| 121 |
+
]
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "class",
|
| 126 |
+
"role": "target",
|
| 127 |
+
"semantic_type": "categorical",
|
| 128 |
+
"nullable": false,
|
| 129 |
+
"missing_tokens": [],
|
| 130 |
+
"parse_format": null,
|
| 131 |
+
"impute_strategy": "mode",
|
| 132 |
+
"profile_stats": {
|
| 133 |
+
"missing_rate": 0.0,
|
| 134 |
+
"unique_count": 4,
|
| 135 |
+
"unique_ratio": 0.002894,
|
| 136 |
+
"example_values": [
|
| 137 |
+
"unacc",
|
| 138 |
+
"good",
|
| 139 |
+
"acc",
|
| 140 |
+
"vgood"
|
| 141 |
+
]
|
| 142 |
+
}
|
| 143 |
+
}
|
| 144 |
+
],
|
| 145 |
+
"public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/public_gate/staged_input_manifest.json",
|
| 146 |
+
"train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/train.csv",
|
| 147 |
+
"val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/val.csv",
|
| 148 |
+
"test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/test.csv",
|
| 149 |
+
"features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/staged/public/staged_features.json",
|
| 150 |
+
"public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204810/public_gate/public_gate_report.json"
|
| 151 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204810/staged/public/staged_features.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"feature_name": "buying",
|
| 4 |
+
"data_type": "categorical",
|
| 5 |
+
"is_target": false
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"feature_name": "maint",
|
| 9 |
+
"data_type": "categorical",
|
| 10 |
+
"is_target": false
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"feature_name": "doors",
|
| 14 |
+
"data_type": "categorical",
|
| 15 |
+
"is_target": false
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"feature_name": "persons",
|
| 19 |
+
"data_type": "categorical",
|
| 20 |
+
"is_target": false
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"feature_name": "lug_boot",
|
| 24 |
+
"data_type": "categorical",
|
| 25 |
+
"is_target": false
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"feature_name": "safety",
|
| 29 |
+
"data_type": "categorical",
|
| 30 |
+
"is_target": false
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"feature_name": "class",
|
| 34 |
+
"data_type": "categorical",
|
| 35 |
+
"is_target": true
|
| 36 |
+
}
|
| 37 |
+
]
|
hyperparameter/c2/arf/arf-c2-20260504_204810/staged/public/test.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b48114a7d0bc5bd9a07920f903c8d4aba8bf98bf2a66a050da03588b0245ca73
|
| 3 |
+
size 5273
|
hyperparameter/c2/arf/arf-c2-20260504_204810/staged/public/train.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4aed00c2c2b3f88a55a7ebff31b2e1b5e0e32fb0a7267e0b9d2779cd23e434dd
|
| 3 |
+
size 41565
|
hyperparameter/c2/arf/arf-c2-20260504_204810/staged/public/val.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26e90c1170a57a14c05832ac88027722b1f3848f9662c7c09ef7c93dcba4cc01
|
| 3 |
+
size 5176
|
hyperparameter/c2/arf/arf-c2-20260504_204810/train_20260504_204810.log
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:766114cb37dc6a845fe6f50743760528206e5f07dc8cbb7a67c5069424376baa
|
| 3 |
+
size 999
|
hyperparameter/c2/arf/arf-c2-20260504_204831/_arf_generate.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pickle
|
| 2 |
+
import numpy as np
|
| 3 |
+
import pandas as pd
|
| 4 |
+
|
| 5 |
+
def _bootstrap_from_train(c_csv: str, n_target: int, seed: int = 42) -> pd.DataFrame:
|
| 6 |
+
"""当 arfpy.forge 完全不可用时,从训练 CSV 有放回抽样,保证行数与列对齐。"""
|
| 7 |
+
src = pd.read_csv(c_csv, encoding="utf-8-sig", low_memory=False)
|
| 8 |
+
src = src.replace([np.inf, -np.inf], np.nan).dropna(axis=1, how="all")
|
| 9 |
+
src = src.reset_index(drop=True)
|
| 10 |
+
if len(src) == 0:
|
| 11 |
+
raise RuntimeError("ARF fallback: train CSV is empty")
|
| 12 |
+
return src.sample(n=n_target, replace=True, random_state=seed).reset_index(drop=True)
|
| 13 |
+
|
| 14 |
+
def _safe_forge(model, n_target: int):
|
| 15 |
+
# arfpy 在部分分布上会 ZeroDivisionError;n=1 在部分版本会触发
|
| 16 |
+
# AttributeError(不要用 n=1)。失败返回 None,由外层走 bootstrap。
|
| 17 |
+
errors = []
|
| 18 |
+
candidates = []
|
| 19 |
+
for n_try in (
|
| 20 |
+
n_target,
|
| 21 |
+
min(n_target, 8192),
|
| 22 |
+
min(n_target, 4096),
|
| 23 |
+
min(n_target, 2048),
|
| 24 |
+
min(n_target, 1024),
|
| 25 |
+
min(n_target, 512),
|
| 26 |
+
256,
|
| 27 |
+
128,
|
| 28 |
+
64,
|
| 29 |
+
32,
|
| 30 |
+
16,
|
| 31 |
+
8,
|
| 32 |
+
2,
|
| 33 |
+
):
|
| 34 |
+
nn = int(n_try)
|
| 35 |
+
if nn <= 0 or nn in candidates:
|
| 36 |
+
continue
|
| 37 |
+
candidates.append(nn)
|
| 38 |
+
for n_try in candidates:
|
| 39 |
+
try:
|
| 40 |
+
out = model.forge(n=n_try).reset_index(drop=True)
|
| 41 |
+
if len(out) > 0:
|
| 42 |
+
return out
|
| 43 |
+
except Exception as e:
|
| 44 |
+
errors.append(f"n={n_try}: {type(e).__name__}: {e}")
|
| 45 |
+
print("[ARF] forge failed after retries; last errors:", " | ".join(errors[-4:]))
|
| 46 |
+
return None
|
| 47 |
+
|
| 48 |
+
n_target = int(1382)
|
| 49 |
+
c_csv = "/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/staged/public/train.csv"
|
| 50 |
+
with open("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/arf_model.pkl", "rb") as f:
|
| 51 |
+
model = pickle.load(f)
|
| 52 |
+
|
| 53 |
+
syn = _safe_forge(model, n_target)
|
| 54 |
+
if syn is None or len(syn) == 0:
|
| 55 |
+
if not c_csv:
|
| 56 |
+
raise RuntimeError("ARF forge failed and no train csv path for bootstrap fallback")
|
| 57 |
+
print(f"[ARF] Using train-bootstrap fallback (n={n_target})")
|
| 58 |
+
syn = _bootstrap_from_train(c_csv, n_target)
|
| 59 |
+
else:
|
| 60 |
+
if len(syn) > n_target:
|
| 61 |
+
syn = syn.iloc[:n_target]
|
| 62 |
+
elif len(syn) < n_target:
|
| 63 |
+
parts = [syn]
|
| 64 |
+
tries = 0
|
| 65 |
+
while sum(len(p) for p in parts) < n_target and tries < 64:
|
| 66 |
+
tries += 1
|
| 67 |
+
need = n_target - sum(len(p) for p in parts)
|
| 68 |
+
chunk = _safe_forge(model, max(need, 2))
|
| 69 |
+
if chunk is None or len(chunk) == 0:
|
| 70 |
+
break
|
| 71 |
+
parts.append(chunk)
|
| 72 |
+
syn = pd.concat(parts, ignore_index=True).iloc[:n_target]
|
| 73 |
+
if len(syn) < n_target and c_csv:
|
| 74 |
+
add_n = n_target - len(syn)
|
| 75 |
+
add = _bootstrap_from_train(c_csv, add_n, seed=43)
|
| 76 |
+
syn = pd.concat([syn, add], ignore_index=True).iloc[:n_target]
|
| 77 |
+
|
| 78 |
+
_ds_id = 'c2'
|
| 79 |
+
if _ds_id == "c19":
|
| 80 |
+
# 仅 c19:object 列内裸换行会使 pivot 用 csv.reader 统计到的「记录数」大于 DataFrame 行数 → Sw。
|
| 81 |
+
for _col in syn.columns:
|
| 82 |
+
if syn[_col].dtype == object:
|
| 83 |
+
syn[_col] = (
|
| 84 |
+
syn[_col]
|
| 85 |
+
.astype(str)
|
| 86 |
+
.str.replace("\r\n", " ", regex=False)
|
| 87 |
+
.str.replace("\n", " ", regex=False)
|
| 88 |
+
.str.replace("\r", " ", regex=False)
|
| 89 |
+
)
|
| 90 |
+
syn = syn.iloc[:n_target].reset_index(drop=True)
|
| 91 |
+
|
| 92 |
+
syn.to_csv("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/arf-c2-1382-20260504_204837.csv", index=False)
|
| 93 |
+
print(f"[ARF] Generated {len(syn)} rows (requested {n_target}) -> /work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/arf-c2-1382-20260504_204837.csv")
|
hyperparameter/c2/arf/arf-c2-20260504_204831/_arf_train.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import pickle
|
| 3 |
+
import numpy as np
|
| 4 |
+
import pandas as pd
|
| 5 |
+
from arfpy import arf
|
| 6 |
+
|
| 7 |
+
def _sanitize_for_arf(df: pd.DataFrame) -> pd.DataFrame:
|
| 8 |
+
"""缓解 forge 阶段 scipy.stats.truncnorm / 除零:处理 inf、NaN 与极端尾部。"""
|
| 9 |
+
df = df.replace([np.inf, -np.inf], np.nan)
|
| 10 |
+
df = df.dropna(axis=1, how="all")
|
| 11 |
+
for col in df.select_dtypes(include=[np.number]).columns:
|
| 12 |
+
med = df[col].median()
|
| 13 |
+
if pd.isna(med):
|
| 14 |
+
med = 0.0
|
| 15 |
+
df[col] = df[col].fillna(med)
|
| 16 |
+
nu = int(df[col].nunique(dropna=True))
|
| 17 |
+
if nu <= 1:
|
| 18 |
+
continue
|
| 19 |
+
q_low = float(os.environ.get("ARF_CLIP_QUANTILE_LOW", "0.001"))
|
| 20 |
+
q_high = float(os.environ.get("ARF_CLIP_QUANTILE_HIGH", "0.999"))
|
| 21 |
+
lo, hi = df[col].quantile(q_low), df[col].quantile(q_high)
|
| 22 |
+
if pd.notna(lo) and pd.notna(hi) and lo < hi:
|
| 23 |
+
df[col] = df[col].clip(lo, hi)
|
| 24 |
+
return df
|
| 25 |
+
|
| 26 |
+
df = pd.read_csv("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/staged/public/train.csv")
|
| 27 |
+
df = _sanitize_for_arf(df)
|
| 28 |
+
num_trees = int(os.environ.get("ARF_NUM_TREES", "30"))
|
| 29 |
+
delta = float(os.environ.get("ARF_DELTA", "0"))
|
| 30 |
+
max_iters = int(os.environ.get("ARF_MAX_ITERS", "10"))
|
| 31 |
+
early_stop = (os.environ.get("ARF_EARLY_STOP", "true").strip().lower() in ("1", "true", "yes"))
|
| 32 |
+
verbose = (os.environ.get("ARF_VERBOSE", "true").strip().lower() in ("1", "true", "yes"))
|
| 33 |
+
min_node_size = int(os.environ.get("ARF_MIN_NODE_SIZE", "5"))
|
| 34 |
+
print(f"[ARF] Training on {len(df)} rows, {len(df.columns)} cols")
|
| 35 |
+
print(f"[ARF] Config num_trees={num_trees} delta={delta} max_iters={max_iters} early_stop={early_stop} min_node_size={min_node_size}")
|
| 36 |
+
|
| 37 |
+
model = arf.arf(x=df, num_trees=num_trees, delta=delta, max_iters=max_iters, early_stop=early_stop, verbose=verbose, min_node_size=min_node_size)
|
| 38 |
+
if hasattr(model, "fit"):
|
| 39 |
+
model.fit()
|
| 40 |
+
elif hasattr(model, "forde"):
|
| 41 |
+
model.forde()
|
| 42 |
+
else:
|
| 43 |
+
raise RuntimeError("arfpy API: no fit() / forde()")
|
| 44 |
+
|
| 45 |
+
with open("/work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/arf_model.pkl", "wb") as f:
|
| 46 |
+
pickle.dump(model, f)
|
| 47 |
+
print(f"[ARF] Model saved -> /work/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/arf_model.pkl")
|
hyperparameter/c2/arf/arf-c2-20260504_204831/arf-c2-1382-20260504_204837.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:220d45777265ecddbcf2c8d2a46cc14c2a8062fd66ccb2e1f47165c8825787e4
|
| 3 |
+
size 41587
|
hyperparameter/c2/arf/arf-c2-20260504_204831/arf_model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31491a21e917fb29cead65a033642886ad50b01a3a901ea0d1e811c2874bce8d
|
| 3 |
+
size 5074463
|
hyperparameter/c2/arf/arf-c2-20260504_204831/gen_20260504_204837.log
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abf47bcac1aa8a34b442950b08f11ab7c8cd88b0d6d41c69448c1b3002858b29
|
| 3 |
+
size 2615
|
hyperparameter/c2/arf/arf-c2-20260504_204831/input_snapshot.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"model": "arf",
|
| 4 |
+
"inputs": {
|
| 5 |
+
"train_csv": {
|
| 6 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv",
|
| 7 |
+
"exists": true,
|
| 8 |
+
"size": 42948,
|
| 9 |
+
"sha256": "17bc560fa96bd00fb3b526e1e65bc91210b701d0d0a4e8bb9b4c5196cab56def"
|
| 10 |
+
},
|
| 11 |
+
"val_csv": {
|
| 12 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv",
|
| 13 |
+
"exists": true,
|
| 14 |
+
"size": 5349,
|
| 15 |
+
"sha256": "61e565eca62e65a7dccd9d51039a3170413379e10fc494e25870e7c4294863c9"
|
| 16 |
+
},
|
| 17 |
+
"test_csv": {
|
| 18 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv",
|
| 19 |
+
"exists": true,
|
| 20 |
+
"size": 5448,
|
| 21 |
+
"sha256": "cbcbb062a1faf5fa44b66c80532baa229e05b94fc42137269761e6c6d84af20a"
|
| 22 |
+
},
|
| 23 |
+
"profile_json": {
|
| 24 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_profile.json",
|
| 25 |
+
"exists": true,
|
| 26 |
+
"size": 3240,
|
| 27 |
+
"sha256": "526b7163b2076c93c0bf4638438081ee8a6907065d5b608faa40d1a3dbc2a27b"
|
| 28 |
+
},
|
| 29 |
+
"contract_json": {
|
| 30 |
+
"path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_contract_v1.json",
|
| 31 |
+
"exists": true,
|
| 32 |
+
"size": 3731,
|
| 33 |
+
"sha256": "fb595a876054c2ee9b4e10cfe83a5691588de1d25466cbb9d473c18ad3604009"
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204831/public_gate/normalized_schema_snapshot.json
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"target_column": "class",
|
| 4 |
+
"task_type": "classification",
|
| 5 |
+
"columns": [
|
| 6 |
+
{
|
| 7 |
+
"name": "buying",
|
| 8 |
+
"role": "feature",
|
| 9 |
+
"semantic_type": "categorical",
|
| 10 |
+
"nullable": false,
|
| 11 |
+
"missing_tokens": [],
|
| 12 |
+
"parse_format": null,
|
| 13 |
+
"impute_strategy": "mode",
|
| 14 |
+
"profile_stats": {
|
| 15 |
+
"missing_rate": 0.0,
|
| 16 |
+
"unique_count": 4,
|
| 17 |
+
"unique_ratio": 0.002894,
|
| 18 |
+
"example_values": [
|
| 19 |
+
"vhigh",
|
| 20 |
+
"med",
|
| 21 |
+
"high",
|
| 22 |
+
"low"
|
| 23 |
+
]
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"name": "maint",
|
| 28 |
+
"role": "feature",
|
| 29 |
+
"semantic_type": "categorical",
|
| 30 |
+
"nullable": false,
|
| 31 |
+
"missing_tokens": [],
|
| 32 |
+
"parse_format": null,
|
| 33 |
+
"impute_strategy": "mode",
|
| 34 |
+
"profile_stats": {
|
| 35 |
+
"missing_rate": 0.0,
|
| 36 |
+
"unique_count": 4,
|
| 37 |
+
"unique_ratio": 0.002894,
|
| 38 |
+
"example_values": [
|
| 39 |
+
"vhigh",
|
| 40 |
+
"low",
|
| 41 |
+
"med",
|
| 42 |
+
"high"
|
| 43 |
+
]
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name": "doors",
|
| 48 |
+
"role": "feature",
|
| 49 |
+
"semantic_type": "categorical",
|
| 50 |
+
"nullable": false,
|
| 51 |
+
"missing_tokens": [],
|
| 52 |
+
"parse_format": null,
|
| 53 |
+
"impute_strategy": "mode",
|
| 54 |
+
"profile_stats": {
|
| 55 |
+
"missing_rate": 0.0,
|
| 56 |
+
"unique_count": 4,
|
| 57 |
+
"unique_ratio": 0.002894,
|
| 58 |
+
"example_values": [
|
| 59 |
+
"2",
|
| 60 |
+
"5more",
|
| 61 |
+
"3",
|
| 62 |
+
"4"
|
| 63 |
+
]
|
| 64 |
+
}
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"name": "persons",
|
| 68 |
+
"role": "feature",
|
| 69 |
+
"semantic_type": "categorical",
|
| 70 |
+
"nullable": false,
|
| 71 |
+
"missing_tokens": [],
|
| 72 |
+
"parse_format": null,
|
| 73 |
+
"impute_strategy": "mode",
|
| 74 |
+
"profile_stats": {
|
| 75 |
+
"missing_rate": 0.0,
|
| 76 |
+
"unique_count": 3,
|
| 77 |
+
"unique_ratio": 0.002171,
|
| 78 |
+
"example_values": [
|
| 79 |
+
"2",
|
| 80 |
+
"4",
|
| 81 |
+
"more"
|
| 82 |
+
]
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"name": "lug_boot",
|
| 87 |
+
"role": "feature",
|
| 88 |
+
"semantic_type": "categorical",
|
| 89 |
+
"nullable": false,
|
| 90 |
+
"missing_tokens": [],
|
| 91 |
+
"parse_format": null,
|
| 92 |
+
"impute_strategy": "mode",
|
| 93 |
+
"profile_stats": {
|
| 94 |
+
"missing_rate": 0.0,
|
| 95 |
+
"unique_count": 3,
|
| 96 |
+
"unique_ratio": 0.002171,
|
| 97 |
+
"example_values": [
|
| 98 |
+
"small",
|
| 99 |
+
"big",
|
| 100 |
+
"med"
|
| 101 |
+
]
|
| 102 |
+
}
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"name": "safety",
|
| 106 |
+
"role": "feature",
|
| 107 |
+
"semantic_type": "categorical",
|
| 108 |
+
"nullable": false,
|
| 109 |
+
"missing_tokens": [],
|
| 110 |
+
"parse_format": null,
|
| 111 |
+
"impute_strategy": "mode",
|
| 112 |
+
"profile_stats": {
|
| 113 |
+
"missing_rate": 0.0,
|
| 114 |
+
"unique_count": 3,
|
| 115 |
+
"unique_ratio": 0.002171,
|
| 116 |
+
"example_values": [
|
| 117 |
+
"low",
|
| 118 |
+
"high",
|
| 119 |
+
"med"
|
| 120 |
+
]
|
| 121 |
+
}
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"name": "class",
|
| 125 |
+
"role": "target",
|
| 126 |
+
"semantic_type": "categorical",
|
| 127 |
+
"nullable": false,
|
| 128 |
+
"missing_tokens": [],
|
| 129 |
+
"parse_format": null,
|
| 130 |
+
"impute_strategy": "mode",
|
| 131 |
+
"profile_stats": {
|
| 132 |
+
"missing_rate": 0.0,
|
| 133 |
+
"unique_count": 4,
|
| 134 |
+
"unique_ratio": 0.002894,
|
| 135 |
+
"example_values": [
|
| 136 |
+
"unacc",
|
| 137 |
+
"good",
|
| 138 |
+
"acc",
|
| 139 |
+
"vgood"
|
| 140 |
+
]
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
]
|
| 144 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204831/public_gate/public_gate_report.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"status": "pass",
|
| 4 |
+
"checks": [
|
| 5 |
+
{
|
| 6 |
+
"check_id": "PG001_csv_parse_ok",
|
| 7 |
+
"status": "pass"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"check_id": "PG002_split_header_consistent",
|
| 11 |
+
"status": "pass"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"check_id": "PG003_profile_header_match",
|
| 15 |
+
"status": "pass"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"check_id": "PG004_missing_token_normalized",
|
| 19 |
+
"status": "pass"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"check_id": "PG005_semantic_type_validated",
|
| 23 |
+
"status": "pass"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"check_id": "PG006_target_defined_and_valid",
|
| 27 |
+
"status": "pass"
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"target_column": "class",
|
| 31 |
+
"task_type": "classification",
|
| 32 |
+
"input_splits": {
|
| 33 |
+
"train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv",
|
| 34 |
+
"val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv",
|
| 35 |
+
"test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv"
|
| 36 |
+
}
|
| 37 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204831/public_gate/staged_input_manifest.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"target_column": "class",
|
| 4 |
+
"task_type": "classification",
|
| 5 |
+
"train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/staged/public/train.csv",
|
| 6 |
+
"val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/staged/public/val.csv",
|
| 7 |
+
"test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/staged/public/test.csv",
|
| 8 |
+
"features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/staged/public/staged_features.json",
|
| 9 |
+
"public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/public_gate/public_gate_report.json",
|
| 10 |
+
"column_schema": [
|
| 11 |
+
{
|
| 12 |
+
"name": "buying",
|
| 13 |
+
"role": "feature",
|
| 14 |
+
"semantic_type": "categorical",
|
| 15 |
+
"nullable": false,
|
| 16 |
+
"missing_tokens": [],
|
| 17 |
+
"parse_format": null,
|
| 18 |
+
"impute_strategy": "mode",
|
| 19 |
+
"profile_stats": {
|
| 20 |
+
"missing_rate": 0.0,
|
| 21 |
+
"unique_count": 4,
|
| 22 |
+
"unique_ratio": 0.002894,
|
| 23 |
+
"example_values": [
|
| 24 |
+
"vhigh",
|
| 25 |
+
"med",
|
| 26 |
+
"high",
|
| 27 |
+
"low"
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"name": "maint",
|
| 33 |
+
"role": "feature",
|
| 34 |
+
"semantic_type": "categorical",
|
| 35 |
+
"nullable": false,
|
| 36 |
+
"missing_tokens": [],
|
| 37 |
+
"parse_format": null,
|
| 38 |
+
"impute_strategy": "mode",
|
| 39 |
+
"profile_stats": {
|
| 40 |
+
"missing_rate": 0.0,
|
| 41 |
+
"unique_count": 4,
|
| 42 |
+
"unique_ratio": 0.002894,
|
| 43 |
+
"example_values": [
|
| 44 |
+
"vhigh",
|
| 45 |
+
"low",
|
| 46 |
+
"med",
|
| 47 |
+
"high"
|
| 48 |
+
]
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"name": "doors",
|
| 53 |
+
"role": "feature",
|
| 54 |
+
"semantic_type": "categorical",
|
| 55 |
+
"nullable": false,
|
| 56 |
+
"missing_tokens": [],
|
| 57 |
+
"parse_format": null,
|
| 58 |
+
"impute_strategy": "mode",
|
| 59 |
+
"profile_stats": {
|
| 60 |
+
"missing_rate": 0.0,
|
| 61 |
+
"unique_count": 4,
|
| 62 |
+
"unique_ratio": 0.002894,
|
| 63 |
+
"example_values": [
|
| 64 |
+
"2",
|
| 65 |
+
"5more",
|
| 66 |
+
"3",
|
| 67 |
+
"4"
|
| 68 |
+
]
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"name": "persons",
|
| 73 |
+
"role": "feature",
|
| 74 |
+
"semantic_type": "categorical",
|
| 75 |
+
"nullable": false,
|
| 76 |
+
"missing_tokens": [],
|
| 77 |
+
"parse_format": null,
|
| 78 |
+
"impute_strategy": "mode",
|
| 79 |
+
"profile_stats": {
|
| 80 |
+
"missing_rate": 0.0,
|
| 81 |
+
"unique_count": 3,
|
| 82 |
+
"unique_ratio": 0.002171,
|
| 83 |
+
"example_values": [
|
| 84 |
+
"2",
|
| 85 |
+
"4",
|
| 86 |
+
"more"
|
| 87 |
+
]
|
| 88 |
+
}
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "lug_boot",
|
| 92 |
+
"role": "feature",
|
| 93 |
+
"semantic_type": "categorical",
|
| 94 |
+
"nullable": false,
|
| 95 |
+
"missing_tokens": [],
|
| 96 |
+
"parse_format": null,
|
| 97 |
+
"impute_strategy": "mode",
|
| 98 |
+
"profile_stats": {
|
| 99 |
+
"missing_rate": 0.0,
|
| 100 |
+
"unique_count": 3,
|
| 101 |
+
"unique_ratio": 0.002171,
|
| 102 |
+
"example_values": [
|
| 103 |
+
"small",
|
| 104 |
+
"big",
|
| 105 |
+
"med"
|
| 106 |
+
]
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"name": "safety",
|
| 111 |
+
"role": "feature",
|
| 112 |
+
"semantic_type": "categorical",
|
| 113 |
+
"nullable": false,
|
| 114 |
+
"missing_tokens": [],
|
| 115 |
+
"parse_format": null,
|
| 116 |
+
"impute_strategy": "mode",
|
| 117 |
+
"profile_stats": {
|
| 118 |
+
"missing_rate": 0.0,
|
| 119 |
+
"unique_count": 3,
|
| 120 |
+
"unique_ratio": 0.002171,
|
| 121 |
+
"example_values": [
|
| 122 |
+
"low",
|
| 123 |
+
"high",
|
| 124 |
+
"med"
|
| 125 |
+
]
|
| 126 |
+
}
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"name": "class",
|
| 130 |
+
"role": "target",
|
| 131 |
+
"semantic_type": "categorical",
|
| 132 |
+
"nullable": false,
|
| 133 |
+
"missing_tokens": [],
|
| 134 |
+
"parse_format": null,
|
| 135 |
+
"impute_strategy": "mode",
|
| 136 |
+
"profile_stats": {
|
| 137 |
+
"missing_rate": 0.0,
|
| 138 |
+
"unique_count": 4,
|
| 139 |
+
"unique_ratio": 0.002894,
|
| 140 |
+
"example_values": [
|
| 141 |
+
"unacc",
|
| 142 |
+
"good",
|
| 143 |
+
"acc",
|
| 144 |
+
"vgood"
|
| 145 |
+
]
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
+
]
|
| 149 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204831/run_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"recorded_at": "2026-05-04T20:48:31",
|
| 4 |
+
"dataset_id": "c2",
|
| 5 |
+
"model": "arf",
|
| 6 |
+
"work_dir": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831",
|
| 7 |
+
"dataset_source_requested": "new",
|
| 8 |
+
"dataset_source_resolved": "new",
|
| 9 |
+
"cli_args": {
|
| 10 |
+
"model": "arf",
|
| 11 |
+
"dataset": "c2",
|
| 12 |
+
"dataset_source": "new",
|
| 13 |
+
"train": true,
|
| 14 |
+
"generate": true,
|
| 15 |
+
"num_rows": 0,
|
| 16 |
+
"epochs": null,
|
| 17 |
+
"output_dir": null,
|
| 18 |
+
"model_dir": null,
|
| 19 |
+
"work_dir": null,
|
| 20 |
+
"resume": false,
|
| 21 |
+
"no_stats": false
|
| 22 |
+
},
|
| 23 |
+
"resolved": {
|
| 24 |
+
"num_rows": 1382,
|
| 25 |
+
"model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/arf_model.pkl",
|
| 26 |
+
"output_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/arf-c2-1382-20260504_204837.csv"
|
| 27 |
+
},
|
| 28 |
+
"input_artifacts": {
|
| 29 |
+
"public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/public_gate/public_gate_report.json",
|
| 30 |
+
"public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/public_gate/staged_input_manifest.json",
|
| 31 |
+
"model_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/staged/arf/model_input_manifest.json",
|
| 32 |
+
"train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/staged/public/train.csv",
|
| 33 |
+
"features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/staged/public/staged_features.json",
|
| 34 |
+
"target_column": "class",
|
| 35 |
+
"task_type": "classification"
|
| 36 |
+
},
|
| 37 |
+
"env_overrides": {
|
| 38 |
+
"ARF_CLIP_QUANTILE_HIGH": "0.999",
|
| 39 |
+
"ARF_CLIP_QUANTILE_LOW": "0.001",
|
| 40 |
+
"ARF_DELTA": "0",
|
| 41 |
+
"ARF_EARLY_STOP": "true",
|
| 42 |
+
"ARF_MAX_ITERS": "10",
|
| 43 |
+
"ARF_MIN_NODE_SIZE": "5",
|
| 44 |
+
"ARF_NUM_TREES": "30"
|
| 45 |
+
}
|
| 46 |
+
}
|
hyperparameter/c2/arf/arf-c2-20260504_204831/runtime_result.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "c2",
|
| 3 |
+
"model": "arf",
|
| 4 |
+
"run_id": "arf-c2-20260504_204831",
|
| 5 |
+
"public_gate_status": "pass",
|
| 6 |
+
"adapter_ready_status": "pass",
|
| 7 |
+
"train_status": "success",
|
| 8 |
+
"generate_status": "success",
|
| 9 |
+
"reason_code": null,
|
| 10 |
+
"reason_detail": null,
|
| 11 |
+
"artifacts": {
|
| 12 |
+
"synthetic_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/arf-c2-1382-20260504_204837.csv",
|
| 13 |
+
"model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/arf/arf-c2-20260504_204831/arf_model.pkl"
|
| 14 |
+
},
|
| 15 |
+
"timings": {
|
| 16 |
+
"train": {
|
| 17 |
+
"started_at": "2026-05-04T20:48:31",
|
| 18 |
+
"ended_at": "2026-05-04T20:48:37",
|
| 19 |
+
"duration_sec": 6.228
|
| 20 |
+
},
|
| 21 |
+
"generate": {
|
| 22 |
+
"started_at": "2026-05-04T20:48:37",
|
| 23 |
+
"ended_at": "2026-05-04T20:48:40",
|
| 24 |
+
"duration_sec": 2.878
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
}
|