Skip to content

Commit 7fabc34

Browse files
committed
[#696] Add simple examples to doc
1 parent 506f81d commit 7fabc34

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/tutorials/advanced/classification_of_strategies.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ Note that instances of the class also have this classifier::
2828
>>> s.classifier == expected_dictionary
2929
True
3030

31+
and that we can retrieve individual entries from that :code:`classifier` dictionary::
32+
33+
>>> s = axl.TitForTat
34+
>>> s.classifier['memory_depth']
35+
1
36+
>>> s = axl.Random
37+
>>> s.classifier['stochastic']
38+
True
39+
3140
We can use this classification to generate sets of strategies according to
3241
filters which we define in a 'filterset' dictionary and then pass to the
3342
'filtered_strategies' function. For example, to identify all the stochastic

0 commit comments

Comments
 (0)