(self, hist)
| 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): |