HGN icon indicating copy to clipboard operation
HGN copied to clipboard

Hierarchical Gating Networks for Sequential Recommendation

Results 2 HGN issues
Sort by recently updated
recently updated
newest added

![image](https://user-images.githubusercontent.com/36131558/166456125-dbf07c24-0fb7-44bc-acab-4a601cfc900a.png) In the code(gating_network.py) above the output dimensions are different for training(batch_size,(target_length+neg_length)) and test(batch_size, num_item). So my question is whether the parameters still work for test ? Is this a...

https://github.com/allenjack/HGN/blob/8bf6008e106fc3b1bc882bab6e65698e62c54ac6/run.py#L91 I think you may change it to this one. Otherwise, positive items can be sampled. ``` ret = np.asarray(neg_samples).reshape(train_matrix.shape[0], num_sets, num_neg) # [n_user, ] return np.transpose(ret, axes=[1, 0, 2])```