User Guide
Demos
Games
Algorithms
Miscellaneous
A collection of helper functions and classes.
Bases: enum.Enum
enum.Enum
A less verbose version of the Enum class.
Example:
class Test(lessVerboseEnum): TEST=0 print(Test.TEST) # prints "TEST" instead of "Test.TEST"
Sample an action from an action probability distribution.
action_probs (ndarray) – a numpy array of probabilities of length n_actions
ndarray
int
the index of the action sampled with the given probabilities