mirror of
https://github.com/wassname/ray.git
synced 2026-07-26 13:37:24 +08:00
[rllib] Initial RLLib documentation (#969)
* initial documentation for RLLib * more RL documentation * fix linting * fix comments * update * fix
This commit is contained in:
committed by
Robert Nishihara
parent
9ec3608eca
commit
1eb8c83314
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user