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

Function get_solution_model

examples/solution/solution_model.py:53–63  ·  view source on GitHub ↗
(conv, dataflow, dims, fanouts, metapath,
                       feature_idx, feature_dim, label_idx, label_dim)

Source from the content-addressed store, hash-verified

51
52
53def get_solution_model(conv, dataflow, dims, fanouts, metapath,
54 feature_idx, feature_dim, label_idx, label_dim):
55 my_encoder = GNN(conv, dataflow, dims, fanouts, metapath,
56 feature_idx, feature_dim)
57
58 my_label_fn = tf_euler.solution.GetLabelFromFea(label_idx, label_dim)
59 my_logit_fn = tf_euler.solution.DenseLogits(label_dim)
60
61 return SuperviseSolution(my_label_fn,
62 my_encoder,
63 my_logit_fn)
64
65def get_unsupervise_solution_model(conv, dataflow, dims, fanouts, metapath,
66 feature_idx, feature_dim,

Callers 1

mainFunction · 0.90

Calls 2

SuperviseSolutionClass · 0.90
GNNClass · 0.70

Tested by

no test coverage detected