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

Method fill_ndarray

DIEN/data_utils.py:200–203  ·  view source on GitHub ↗
(self, hist)

Source from the content-addressed store, hash-verified

198 return [neg_item_hist, neg_cate_hist, neg_shop_hist, neg_node_hist, neg_product_hist, neg_brand_hist]
199
200 def fill_ndarray(self, hist):
201 nd_his = np.ones(self.maxlen) * -1
202 nd_his[:len(hist)] = hist
203 return nd_his
204
205 # 2nd method by using previous user's behavior to replace the current user's negative behavior data
206 def process2(self, data_files, file_name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected