@@ -35,8 +35,6 @@ def __init__(self, players, match_generator=RoundRobinMatches,
35
35
The number of turns per match
36
36
repetitions : integer
37
37
The number of times the round robin should be repeated
38
- processes : integer
39
- The number of processes to be used for parallel processing
40
38
noise : float
41
39
The probability that a player's intended action should be flipped
42
40
with_morality : boolean
@@ -80,9 +78,11 @@ def play(self, build_results=True, filename=None,
80
78
whether or not to build a results st
81
79
filename : string
82
80
name of output file
81
+ processes : integer
82
+ The number of processes to be used for parallel processing
83
83
progress_bar : bool
84
84
Whether or not to create a progress bar which will be updated
85
- interactions : bool
85
+ keep_interactions : bool
86
86
Whether or not to load the interactions in to memory
87
87
88
88
Returns
@@ -237,8 +237,6 @@ def _process_done_queue(self, workers, done_queue, progress_bar=False):
237
237
The number of sub-processes in existence
238
238
done_queue : multiprocessing.Queue
239
239
A queue containing the output dictionaries from each round robin
240
- interactions : list
241
- The list of interactions per repetition to update with results
242
240
progress_bar : bool
243
241
Whether or not to update the tournament progress bar
244
242
"""
@@ -312,8 +310,7 @@ class ProbEndTournament(Tournament):
312
310
313
311
def __init__ (self , players , match_generator = ProbEndRoundRobinMatches ,
314
312
name = 'axelrod' , game = None , prob_end = .5 , repetitions = 10 ,
315
- noise = 0 ,
316
- with_morality = True ):
313
+ noise = 0 , with_morality = True ):
317
314
"""
318
315
Parameters
319
316
----------
@@ -329,8 +326,6 @@ def __init__(self, players, match_generator=ProbEndRoundRobinMatches,
329
326
The probability of a given match ending
330
327
repetitions : integer
331
328
The number of times the round robin should be repeated
332
- processes : integer
333
- The number of processes to be used for parallel processing
334
329
noise : float
335
330
The probability that a player's intended action should be flipped
336
331
with_morality : boolean
@@ -350,17 +345,13 @@ class SpatialTournament(Tournament):
350
345
A tournament in which the players are allocated in a graph as nodes
351
346
and they players only play the others that are connected to with an edge.
352
347
"""
353
- def __init__ (self , players , edges , match_generator = SpatialMatches ,
354
- name = 'axelrod' , game = None , turns = 200 , repetitions = 10 ,
355
- noise = 0 ,
356
- with_morality = True ):
348
+ def __init__ (self , players , edges , name = 'axelrod' , game = None , turns = 200 ,
349
+ repetitions = 10 , noise = 0 , with_morality = True ):
357
350
"""
358
351
Parameters
359
352
----------
360
353
players : list
361
354
A list of axelrod.Player objects
362
- match_generator : class
363
- A class that must be descended from axelrod.MatchGenerator
364
355
name : string
365
356
A name for the tournament
366
357
game : axelrod.Game
@@ -369,8 +360,6 @@ def __init__(self, players, edges, match_generator=SpatialMatches,
369
360
A list of tuples containing the existing edges
370
361
repetitions : integer
371
362
The number of times the round robin should be repeated
372
- processes : integer
373
- The number of processes to be used for parallel processing
374
363
noise : float
375
364
The probability that a player's intended action should be flipped
376
365
with_morality : boolean
@@ -391,17 +380,13 @@ class ProbEndSpatialTournament(ProbEndTournament):
391
380
and they players only play the others that are connected to with an edge.
392
381
Players do not know the length of a given match (it is randomly sampled).
393
382
"""
394
- def __init__ (self , players , edges , match_generator = SpatialMatches ,
395
- name = 'axelrod' , game = None , prob_end = .5 , repetitions = 10 ,
396
- noise = 0 ,
397
- with_morality = True ):
383
+ def __init__ (self , players , edges , name = 'axelrod' , game = None , prob_end = .5 ,
384
+ repetitions = 10 , noise = 0 , with_morality = True ):
398
385
"""
399
386
Parameters
400
387
----------
401
388
players : list
402
389
A list of axelrod.Player objects
403
- match_generator : class
404
- A class that must be descended from axelrod.MatchGenerator
405
390
name : string
406
391
A name for the tournament
407
392
game : axelrod.Game
@@ -412,8 +397,6 @@ def __init__(self, players, edges, match_generator=SpatialMatches,
412
397
A list of tuples containing the existing edges
413
398
repetitions : integer
414
399
The number of times the round robin should be repeated
415
- processes : integer
416
- The number of processes to be used for parallel processing
417
400
noise : float
418
401
The probability that a player's intended action should be flipped
419
402
with_morality : boolean
0 commit comments