mirror of
https://github.com/kristoferssolo/2048.git
synced 2025-10-21 15:20:35 +00:00
fix: confilicting arguments
This commit is contained in:
parent
9eafca215d
commit
5cd4a6d0ae
16
config.txt
16
config.txt
@ -1,14 +1,14 @@
|
|||||||
[NEAT]
|
[NEAT]
|
||||||
fitness_criterion = max
|
fitness_criterion = mean
|
||||||
fitness_threshold = 3.9
|
fitness_threshold = 400
|
||||||
pop_size = 150
|
pop_size = 1000
|
||||||
reset_on_extinction = False
|
reset_on_extinction = False
|
||||||
|
|
||||||
[DefaultGenome]
|
[DefaultGenome]
|
||||||
# node activation options
|
# node activation options
|
||||||
activation_default = sigmoid
|
activation_default = relu
|
||||||
activation_mutate_rate = 0.0
|
activation_mutate_rate = 1.0
|
||||||
activation_options = sigmoid
|
activation_options = relu
|
||||||
|
|
||||||
# node aggregation options
|
# node aggregation options
|
||||||
aggregation_default = sum
|
aggregation_default = sum
|
||||||
@ -37,14 +37,14 @@ enabled_default = True
|
|||||||
enabled_mutate_rate = 0.01
|
enabled_mutate_rate = 0.01
|
||||||
|
|
||||||
feed_forward = True
|
feed_forward = True
|
||||||
initial_connection = full
|
initial_connection = full_direct
|
||||||
|
|
||||||
# node add/remove rates
|
# node add/remove rates
|
||||||
node_add_prob = 0.2
|
node_add_prob = 0.2
|
||||||
node_delete_prob = 0.2
|
node_delete_prob = 0.2
|
||||||
|
|
||||||
# network parameters
|
# network parameters
|
||||||
num_hidden = 0
|
num_hidden = 2
|
||||||
num_inputs = 17
|
num_inputs = 17
|
||||||
num_outputs = 4
|
num_outputs = 4
|
||||||
|
|
||||||
|
|||||||
5
main.py
5
main.py
@ -26,13 +26,15 @@ group.add_argument(
|
|||||||
action="store_true",
|
action="store_true",
|
||||||
help="Debug",
|
help="Debug",
|
||||||
)
|
)
|
||||||
|
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"-v",
|
"-v",
|
||||||
"--verbose",
|
"--verbose",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Verbose",
|
help="Verbose",
|
||||||
)
|
)
|
||||||
group.add_argument(
|
|
||||||
|
parser.add_argument(
|
||||||
"-t",
|
"-t",
|
||||||
"--train",
|
"--train",
|
||||||
type=pos_int,
|
type=pos_int,
|
||||||
@ -63,6 +65,7 @@ def main(args: argparse.ArgumentParser) -> None:
|
|||||||
setup_logger("warning")
|
setup_logger("warning")
|
||||||
|
|
||||||
if args.train is not None:
|
if args.train is not None:
|
||||||
|
logger.warning(args.train)
|
||||||
train(args.train)
|
train(args.train)
|
||||||
else:
|
else:
|
||||||
Menu().run()
|
Menu().run()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user