fix bugs
This commit is contained in:
@@ -8,7 +8,7 @@ if __name__ == "__main__":
|
||||
pipeline = Pipeline(
|
||||
algorithm=NEAT(
|
||||
species=DefaultSpecies(
|
||||
genome=DefaultGenome(
|
||||
genome=DenseInitialize(
|
||||
num_inputs=3,
|
||||
num_outputs=1,
|
||||
max_nodes=50,
|
||||
@@ -21,7 +21,7 @@ if __name__ == "__main__":
|
||||
# aggregation_options=(Agg.sum,),
|
||||
aggregation_options=AGG_ALL,
|
||||
),
|
||||
output_transform=Act.sigmoid, # the activation function for output node
|
||||
output_transform=Act.standard_sigmoid, # the activation function for output node
|
||||
mutation=DefaultMutation(
|
||||
node_add=0.1,
|
||||
conn_add=0.1,
|
||||
@@ -29,7 +29,7 @@ if __name__ == "__main__":
|
||||
conn_delete=0,
|
||||
),
|
||||
),
|
||||
pop_size=100000,
|
||||
pop_size=10000,
|
||||
species_size=20,
|
||||
compatibility_threshold=2,
|
||||
survival_threshold=0.01, # magic
|
||||
@@ -37,7 +37,7 @@ if __name__ == "__main__":
|
||||
),
|
||||
problem=XOR3d(),
|
||||
generation_limit=10000,
|
||||
fitness_target=-1e-8,
|
||||
fitness_target=-1e-3,
|
||||
)
|
||||
|
||||
# initialize state
|
||||
|
||||
Reference in New Issue
Block a user