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

Method map_item

DIEN/data_iterator.py:84–85  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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

Callers 4

__init__Method · 0.95
gen_item_blockMethod · 0.95
gen_neg_histMethod · 0.95
nextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected