Performance Optimizations when skip_conditioning=True
This commit is contained in:
parent
4ba7db831f
commit
35df8f44da
@ -183,6 +183,9 @@ class PCA_Distribution(SB3_Distribution):
|
|||||||
return traj[:, -self.window:, :]
|
return traj[:, -self.window:, :]
|
||||||
|
|
||||||
def _conditioning_engine(self, trajectory, pi_mean, pi_std):
|
def _conditioning_engine(self, trajectory, pi_mean, pi_std):
|
||||||
|
if self.skip_conditioning:
|
||||||
|
return pi_mean, pi_std
|
||||||
|
|
||||||
traj = self._pad_and_cut_trajectory(trajectory)
|
traj = self._pad_and_cut_trajectory(trajectory)
|
||||||
y_np = np.append(np.swapaxes(traj, -1, -2),
|
y_np = np.append(np.swapaxes(traj, -1, -2),
|
||||||
np.expand_dims(pi_mean, -1), -1)
|
np.expand_dims(pi_mean, -1), -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user