MCPcopy Create free account
hub / github.com/alibaba/bigcomputing / map_item

Method map_item

DIEN/data_utils.py:87–88  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

85 return uid_n, item_n, cate_n, shop_n, node_n, product_n, brand_n
86
87 def map_item(self, x):
88 return int(self.item_dict.get(x, -1))
89
90 def map_user(self, x):
91 return int(self.user_dict.get(x, -1))

Callers 6

__init__Method · 0.95
gen_neg_histMethod · 0.95
gen_neg_hist3Method · 0.95
gen_neg_hist2Method · 0.95
process2Method · 0.95
processMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected