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

Method map_cate

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

Source from the content-addressed store, hash-verified

88 return int(self.user_dict.get(x, -1))
89
90 def map_cate(self, x):
91 return int(self.cate_dict.get(x, -1))
92
93 def map_shop(self, x):
94 return int(self.shop_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