第一版流程
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user