stable_learning_control.algos.tf2.policies.critics.L_critic
Lyapunov critic policy.
This module contains a TensorFlow 2.x implementation of the Lyapunov Critic policy of Han et al. 2020.
Classes
Soft Lyapunov critic Network. |
Module Contents
- class stable_learning_control.algos.tf2.policies.critics.L_critic.LCritic(obs_dim, act_dim, hidden_sizes, activation=nn.relu, name='lyapunov_critic', **kwargs)[source]
Bases:
tf.keras.Model
Soft Lyapunov critic Network.
Initialise the LCritic object.
- Parameters:
obs_dim (int) – Dimension of the observation space.
act_dim (int) – Dimension of the action space.
hidden_sizes (list) – Sizes of the hidden layers.
activation (
tf.keras.activations
, optional) – The activation function. Defaults totf.nn.relu
.name (str, optional) – The Lyapunov critic name. Defaults to
lyapunov_critic
.**kwargs – All kwargs to pass to the
tf.keras.Model
. Can be used to add additional inputs or outputs.