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]
|
||||
fitness_criterion = max
|
||||
fitness_threshold = 3.9
|
||||
pop_size = 150
|
||||
fitness_criterion = mean
|
||||
fitness_threshold = 400
|
||||
pop_size = 1000
|
||||
reset_on_extinction = False
|
||||
|
||||
[DefaultGenome]
|
||||
# node activation options
|
||||
activation_default = sigmoid
|
||||
activation_mutate_rate = 0.0
|
||||
activation_options = sigmoid
|
||||
activation_default = relu
|
||||
activation_mutate_rate = 1.0
|
||||
activation_options = relu
|
||||
|
||||
# node aggregation options
|
||||
aggregation_default = sum
|
||||
@ -37,14 +37,14 @@ enabled_default = True
|
||||
enabled_mutate_rate = 0.01
|
||||
|
||||
feed_forward = True
|
||||
initial_connection = full
|
||||
initial_connection = full_direct
|
||||
|
||||
# node add/remove rates
|
||||
node_add_prob = 0.2
|
||||
node_delete_prob = 0.2
|
||||
|
||||
# network parameters
|
||||
num_hidden = 0
|
||||
num_hidden = 2
|
||||
num_inputs = 17
|
||||
num_outputs = 4
|
||||
|
||||
|
||||
5
main.py
5
main.py
@ -26,13 +26,15 @@ group.add_argument(
|
||||
action="store_true",
|
||||
help="Debug",
|
||||
)
|
||||
|
||||
group.add_argument(
|
||||
"-v",
|
||||
"--verbose",
|
||||
action="store_true",
|
||||
help="Verbose",
|
||||
)
|
||||
group.add_argument(
|
||||
|
||||
parser.add_argument(
|
||||
"-t",
|
||||
"--train",
|
||||
type=pos_int,
|
||||
@ -63,6 +65,7 @@ def main(args: argparse.ArgumentParser) -> None:
|
||||
setup_logger("warning")
|
||||
|
||||
if args.train is not None:
|
||||
logger.warning(args.train)
|
||||
train(args.train)
|
||||
else:
|
||||
Menu().run()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user