MCPcopy Create free account
hub / github.com/CompVis/zigma / compute_drift

Method compute_drift

transport/path.py:167–171  ·  view source on GitHub ↗

Compute the drift term of the SDE

(self, x, t)

Source from the content-addressed store, hash-verified

165 return self.d_log_mean_coeff(t)
166
167 def compute_drift(self, x, t):
168 """Compute the drift term of the SDE"""
169 t = expand_t_like_x(t, x)
170 beta_t = self.sigma_min + (1 - t) * (self.sigma_max - self.sigma_min)
171 return -0.5 * beta_t * x, beta_t / 2
172
173
174class GVPCPlan(ICPlan):

Callers

nothing calls this directly

Calls 1

expand_t_like_xFunction · 0.85

Tested by

no test coverage detected