第一版流程

This commit is contained in:
2025-11-08 13:39:02 +08:00
parent dcfe2d84d5
commit a66e42a8ae
11 changed files with 1648 additions and 0 deletions

View File

@@ -123,6 +123,7 @@ def build_pset(feature_names: List[str]) -> gp.PrimitiveSetTyped:
pset.addPrimitive(lambda x, w=w: _delay(x, w), [np.ndarray], np.ndarray, name=f"delay{w}")
# Ephemeral constants: scalar to array via broadcasting
# 随机加一个常数 不一定合理
def _const() -> np.ndarray:
return np.array(random.uniform(-2.0, 2.0))