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

Function gen_feature_map

tf_euler/python/dataset/pubmed_utils.py:62–68  ·  view source on GitHub ↗
(feature_str)

Source from the content-addressed store, hash-verified

60 return out_label
61
62def gen_feature_map(feature_str):
63 fea_map = {}
64 fea_index = 0
65 for one_fea in feature_str.split('\t')[1:-1]:
66 fea_map[one_fea.split(":")[-2]] = fea_index
67 fea_index += 1
68 return fea_map
69
70def gen_node(content_file, node_map, total_label, fea_len, train_num):
71 node_ids = []

Callers 1

gen_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected