mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-07-28 20:11:31 +00:00
Log residual scale
This commit is contained in:
parent
ccaf9c3882
commit
693bfa9437
1 changed files with 4 additions and 0 deletions
|
|
@ -277,6 +277,10 @@ class TQC(OffPolicyAlgorithm):
|
|||
logger.record("train/critic_loss", np.mean(critic_losses))
|
||||
if len(ent_coef_losses) > 0:
|
||||
logger.record("train/ent_coef_loss", np.mean(ent_coef_losses))
|
||||
if hasattr(self.actor, "scale_expert"):
|
||||
with th.no_grad():
|
||||
logger.record("train/scale_expert", th.sigmoid(self.actor.scale_expert).mean().item())
|
||||
logger.record("train/scale_rl", th.sigmoid(self.actor.scale_rl).mean().item())
|
||||
|
||||
def pretrain(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue