MCPcopy Create free account
hub / github.com/PyGCL/PyGCL / augment

Method augment

GCL/augmentors/feature_dropout.py:10–13  ·  view source on GitHub ↗
(self, g: Graph)

Source from the content-addressed store, hash-verified

8 self.pf = pf
9
10 def augment(self, g: Graph) -> Graph:
11 x, edge_index, edge_weights = g.unfold()
12 x = dropout_feature(x, self.pf)
13 return Graph(x=x, edge_index=edge_index, edge_weights=edge_weights)

Callers

nothing calls this directly

Calls 3

dropout_featureFunction · 0.90
GraphClass · 0.90
unfoldMethod · 0.80

Tested by

no test coverage detected