MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / phi_

Function phi_

layers/utils.py:42–44  ·  view source on GitHub ↗
(phi_c, x, lb = 0, ub = 1)

Source from the content-addressed store, hash-verified

40
41
42def phi_(phi_c, x, lb = 0, ub = 1):
43 mask = np.logical_or(x<lb, x>ub) * 1.0
44 return np.polynomial.polynomial.Polynomial(phi_c)(x) * (1-mask)
45
46
47def get_phi_psi(k, base):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected