MCPcopy Index your code
hub / github.com/alibaba/bigcomputing / fill_ndarray

Method fill_ndarray

DIEN/data_iterator.py:146–149  ·  view source on GitHub ↗
(self, hist)

Source from the content-addressed store, hash-verified

144 return [neg_item_hist, neg_cate_hist, neg_shop_hist, neg_node_hist, neg_product_hist, neg_brand_hist]
145
146 def fill_ndarray(self, hist):
147 nd_his = numpy.ones(self.maxlen) * -1
148 nd_his[:len(hist)] = hist
149 return nd_his
150
151
152 def __iter__(self):

Callers 1

nextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected