MCPcopy Create free account
hub / github.com/andreariba/DeepCycle / Circularize

Class Circularize

DeepCycle.py:253–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251
252#CIRCULAR LAYER FOR THE AUTOENCODER
253class Circularize(tfkl.Layer):
254 def __init__(self, input_dim=1):
255 super(Circularize, self).__init__()
256
257 def call(self, inputs):
258 return tf.concat([tf.math.cos(2*np.pi*inputs),tf.math.sin(2*np.pi*inputs)], axis=1)
259
260
261sys.stdout.write("[Loading anndata]: ")

Callers 1

DeepCycle.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected