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

Method map_brand

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

Source from the content-addressed store, hash-verified

100 return int(self.product_dict.get(x, -1))
101
102 def map_brand(self, x):
103 return int(self.brand_dict.get(x, -1))
104
105 def gen_item_block(self, item_idx):
106 neg_item = self.all_items[item_idx]

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