Home Knowledge Base The query set

The query set in few-shot learning contains the test examples used to evaluate model performance after the model has been given the labeled support set. It serves as the episode's internal test set — measuring how well the model learned from the few provided examples.

Role in a Few-Shot Episode

Example: 5-Way 5-Shot Episode

ComponentContentPurpose
Support Set5 classes × 5 examples = 25 labeled images"Learn" these classes
Query Set5 classes × 15 examples = 75 unlabeled imagesClassify using support knowledge
OutputAccuracy on query predictionsEvaluate few-shot performance

Query Set in Meta-Training vs. Meta-Testing

Key Properties

Query Set in Different Methods

Inductive vs. Transductive Processing

Impact on Evaluation

The query set is the measurement instrument of few-shot learning — it reveals how effectively the model has learned to generalize from the few support examples to new instances of the same classes.

query setfew-shot learning

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.