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

Method set_feature

euler/tools/node.py:37–46  ·  view source on GitHub ↗
(self, feature_type, value, feature_idx)

Source from the content-addressed store, hash-verified

35 expend_list(self.binary, gmeta.node_feature_maxnum['binary'])
36
37 def set_feature(self, feature_type, value, feature_idx):
38 if feature_type == "dense":
39 self.dense[feature_idx] = value
40 elif feature_type == "sparse":
41 self.sparse[feature_idx] = value
42 elif feature_type == "binary":
43 self.binary[feature_idx] = value
44 else:
45 print('error type is not support ' + feature_type)
46 exit(1)
47
48 def set_neighbor(self, dst, weight, type, type_count):
49 if type_count > 0:

Callers 1

parse_nodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected