[rllib] Initial RLLib documentation (#969)

* initial documentation for RLLib

* more RL documentation

* fix linting

* fix comments

* update

* fix
This commit is contained in:
Philipp Moritz
2017-09-12 23:38:21 -07:00
committed by Robert Nishihara
parent 9ec3608eca
commit 1eb8c83314
6 changed files with 184 additions and 5 deletions
+4
View File
@@ -17,15 +17,19 @@ class ActionDistribution(object):
self.inputs = inputs
def logp(self, x):
"""The log-likelihood of the action distribution."""
raise NotImplementedError
def kl(self, other):
"""The KL-divergene between two action distributions."""
raise NotImplementedError
def entropy(self):
"""The entroy of the action distribution."""
raise NotImplementedError
def sample(self):
"""Draw a sample from the action distribution."""
raise NotImplementedError