{'fraction_non_alphanumeric': 0.013215859030837005, 'fraction_numerical': 0.0, 'mean_word_length': 5.491428571428571, '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}}
Selective Model for Few Shot Classification

Most few-shot image classification methods learn a feature space from seen classes and simply perform classification for unseen classes with few labeled samples. They extract features from support and query samples independently and treat all features channels equally. In this work, we apply the attention mechanism to few shot image classification, which can learn the related features between support and query samples to deal with new tasks problem. We propose a selective module to select relevant channels for discriminating objects in the query image and the support image. The selective module aggregates the features of both images into a channel descriptor, which is used to generate channel-wise attentions for both images, respectively. In this way, the mutual interdependencies between channels from different images are explicitly modeled and channel-wise responses are adaptively recalibrated. The Selective model is a lightweight embedding module for selecting relevant features between support and query samples in channel dimension and learn the more distinctive features.