update HyperNEAT;

All example can currently run!
This commit is contained in:
wls2002
2024-05-26 19:51:22 +08:00
parent 18c3d44c79
commit 9f6154d128
15 changed files with 112 additions and 78 deletions

View File

@@ -17,7 +17,7 @@ if __name__ == "__main__":
activation_options=(Act.tanh,),
activation_default=Act.tanh,
),
output_transform=lambda out: out
output_transform=lambda out: Act.tanh(out)
* 2, # the action of pendulum is [-2, 2]
),
pop_size=10000,
@@ -28,7 +28,7 @@ if __name__ == "__main__":
env_name="Pendulum-v1",
),
generation_limit=10000,
fitness_target=0,
fitness_target=-10,
)
# initialize state