MCPcopy Create free account
hub / github.com/alibaba/euler / __init__

Method __init__

tf_euler/python/utils/encoders.py:239–260  ·  view source on GitHub ↗
(self, metapath, dim, aggregator='attention',
                 feature_idx=-1, feature_dim=0, max_id=-1, use_id=False,
                 sparse_feature_idx=-1, sparse_feature_max_id=-1,
                 embedding_dim=16, use_hash_embedding=False,
                 use_residual=False, head_num=4,
                 **kwargs)

Source from the content-addressed store, hash-verified

237
238class GenieEncoder(GCNEncoder):
239 def __init__(self, metapath, dim, aggregator='attention',
240 feature_idx=-1, feature_dim=0, max_id=-1, use_id=False,
241 sparse_feature_idx=-1, sparse_feature_max_id=-1,
242 embedding_dim=16, use_hash_embedding=False,
243 use_residual=False, head_num=4,
244 **kwargs):
245 super(GenieEncoder, self).__init__(metapath, dim,
246 aggregator,
247 feature_idx,
248 feature_dim,
249 max_id,
250 use_id,
251 sparse_feature_idx,
252 sparse_feature_max_id,
253 embedding_dim,
254 use_hash_embedding,
255 use_residual,
256 head_num, **kwargs)
257 self.dim = dim
258 self.depth_fc = []
259 for layer in range(self.num_layers + 1):
260 self.depth_fc.append(layers.Dense(dim))
261
262 def call(self, inputs):
263 nodes, adjs = euler_ops.get_multi_hop_neighbor(inputs, self.metapath)

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected