Skip to content

Commit 0d15ecc

Browse files
committed
Long run time
1 parent ab9c165 commit 0d15ecc

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

axelrod/data/all_classifiers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ Evolved ANN 5 Noise 05:
441441
stochastic: false
442442
EvolvedAttention:
443443
inspects_source: false
444-
long_run_time: false
444+
long_run_time: True
445445
makes_use_of: !!set {}
446446
manipulates_source: false
447447
manipulates_state: false

axelrod/strategies/attention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class EvolvedAttention(Player):
344344
classifier = {
345345
"memory_depth": MEMORY_LENGTH,
346346
"stochastic": False,
347-
"long_run_time": False,
347+
"long_run_time": True,
348348
"inspects_source": False,
349349
"manipulates_source": False,
350350
"manipulates_state": False,

axelrod/tests/strategies/test_attention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class TestEvolvedAttention(TestPlayer):
8080
"memory_depth": MEMORY_LENGTH,
8181
"stochastic": False,
8282
"makes_use_of": set(),
83-
"long_run_time": False,
83+
"long_run_time": True,
8484
"inspects_source": False,
8585
"manipulates_source": False,
8686
"manipulates_state": False,

axelrod/tournament.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from collections import defaultdict
66
from multiprocessing import Process, Queue, cpu_count, set_start_method
77

8+
# This is necessary for the code to work on Linux
9+
# torch multiprocessing is not compatible with the default 'fork' method
810
set_start_method("spawn", force=True)
911
from tempfile import mkstemp
1012
from typing import List, Optional, Tuple

docs/how-to/classify_strategies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Some strategies have been classified as having a particularly long run time::
110110
... }
111111
>>> strategies = axl.filtered_strategies(filterset)
112112
>>> len(strategies)
113-
18
113+
19
114114

115115
Strategies that :code:`manipulate_source`, :code:`manipulate_state`
116116
and/or :code:`inspect_source` return :code:`False` for the

0 commit comments

Comments
 (0)