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

Function _get_binary_feature

tf_euler/python/euler_ops/feature_ops.py:145–155  ·  view source on GitHub ↗
(nodes_or_edges, feature_names, op, thread_num)

Source from the content-addressed store, hash-verified

143
144
145def _get_binary_feature(nodes_or_edges, feature_names, op, thread_num):
146 feature_names = map(str, feature_names)
147 if not hasattr(feature_names, '__len__'):
148 feature_names = list(feature_names)
149
150 split_data_list = _split_input_data(nodes_or_edges, thread_num)
151 split_result_list = [op(split_data, feature_names, N=len(feature_names))
152 for split_data in split_data_list]
153 split_result_list_transpose = map(list, zip(*split_result_list))
154 return [tf.concat(split_binary, 0)
155 for split_binary in split_result_list_transpose]
156
157
158def get_binary_feature(nodes, feature_names, thread_num=1):

Callers 2

get_binary_featureFunction · 0.85
get_edge_binary_featureFunction · 0.85

Calls 1

_split_input_dataFunction · 0.85

Tested by

no test coverage detected