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

Method map_brand

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

Source from the content-addressed store, hash-verified

103 return int(self.product_dict.get(x, -1))
104
105 def map_brand(self, x):
106 return int(self.brand_dict.get(x, -1))
107
108 def gen_neg_hist(self, length):
109 if len(self.neg_hist_catch.get(length, [1])) == self.max_catch_num:

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