MCPcopy Create free account
hub / github.com/PythonOT/POT / __init__

Method __init__

test/test_gnn.py:241–255  ·  view source on GitHub ↗

Pooling architecture using the TW layer.

(self, n_features, n_templates, n_template_nodes)

Source from the content-addressed store, hash-verified

239 """
240
241 def __init__(self, n_features, n_templates, n_template_nodes):
242 """
243 Pooling architecture using the TW layer.
244 """
245 super().__init__()
246
247 self.n_features = n_features
248 self.n_templates = n_templates
249 self.n_template_nodes = n_template_nodes
250
251 self.TFGW = TWPooling(
252 self.n_templates, self.n_template_nodes, self.n_features
253 )
254
255 self.linear = Linear(self.n_templates, 1)
256
257 def forward(self, x, edge_index):
258 x = self.TFGW(x, edge_index)

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

TWPoolingClass · 0.90

Tested by

no test coverage detected