QDpy
Loading...
Searching...
No Matches
policy.py File Reference

PyTorch actors and portable inference artifacts. More...

Go to the source code of this file.

Classes

class  qdpy.rl.policy.PolicyConfig
 Architecture of the actor and, for PPO, the separate value network. More...
class  qdpy.rl.policy._ActionLayout
class  qdpy.rl.policy._SeededLinear
class  qdpy.rl.policy._FlatPolicy
class  qdpy.rl.policy.CategoricalPolicy
 A categorical actor that can run independently of its training environment. More...
class  qdpy.rl.policy._BoxLayout
class  qdpy.rl.policy.ContinuousPolicy
 A bounded Box actor for evolutionary, on-policy, and deterministic control. More...

Namespaces

namespace  qdpy

Functions

 qdpy.rl.policy._joint_statistics (logits, indices, counts)
 qdpy.rl.policy._save_actor (path, metadata, parameters)
 qdpy.rl.policy._squashed_log_prob (mean, log_std, latent, log_scale)

Detailed Description

PyTorch actors and portable inference artifacts.

Definition in file policy.py.

Function Documentation

◆ _joint_statistics()

qdpy.rl.policy._joint_statistics ( logits,
indices,
counts )
protected
Return the log-probability and entropy of a product of categoricals.

Definition at line 130 of file policy.py.

◆ _save_actor()

qdpy.rl.policy._save_actor ( path,
metadata,
parameters )
protected
Write a numeric policy artifact atomically.

Definition at line 138 of file policy.py.

◆ _squashed_log_prob()

qdpy.rl.policy._squashed_log_prob ( mean,
log_std,
latent,
log_scale )
protected
Compute the joint density after tanh and the affine action transform.

Definition at line 329 of file policy.py.