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

Function psi

layers/utils.py:158–160  ·  view source on GitHub ↗
(psi1, psi2, i, inp)

Source from the content-addressed store, hash-verified

156def get_filter(base, k):
157
158 def psi(psi1, psi2, i, inp):
159 mask = (inp<=0.5) * 1.0
160 return psi1[i](inp) * mask + psi2[i](inp) * (1-mask)
161
162 if base not in ['legendre', 'chebyshev']:
163 raise Exception('Base not supported')

Callers 1

get_filterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected