{'fraction_non_alphanumeric': 0.024390243902439025, 'fraction_numerical': 0.0, 'mean_word_length': 5.378378378378378, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Session-Based Recommendation with Self-Attention

The goal of session-based recommendation is to predict the next action of a user based on the current session and anonymous sessions before. Recent works on session-based recommendation usually use neural network architectures such as convolution neural networks (CNNs) or recurrent neural networks (RNNs) to extract patterns of sessions. Such features have been shown to give promising results because they can discover the user's sequential behavior and understand the purpose of current session. In this paper, we propose a neural network architecture for session-based recommendation without using convolution or recurrent neural networks. Our model is inspired by the Transformer's design, in which the information of important items is passed directly to the hidden states. Experimental results on two real-world datasets show that our method outperforms several state-of-the-art models.