Git Product home page Git Product logo

Comments (4)

johnnyasd12 avatar johnnyasd12 commented on August 20, 2024

The feature extractor is frozen, and they re-train a linear classifier from scratch for each testing episode.
If you take a look at methods/baselinefinetune.py and methods/meta_template.py, you could see they re-initialize a linear layer for a set_forward_adaptation call in each test episode, which means the fine-tuned weight is independent between different test episode.

from closerlookfewshot.

ZhuLingfeng1993 avatar ZhuLingfeng1993 commented on August 20, 2024

Thank you for your reply. So in each episode, it only use support set to fine-tune the linear layer and use query set to test. I guess the main reason to fine-tune and test in the unit of episode is to keep consistent with mete-testing stage for fair comparison.
But I think if use the whole support set for all episodes in test dataset to fine-tune(and not only the classifier but also the backbone) and use the whole query set for all episodes in test dataset to evaluation for baseline and baseline++ model, which means fine-tune in the traditional way, it may get higher accuracy. And if further use the validation dataset to fine-tune the baseline and baseline++ model, to meta-training the meta-learning model, it may further improve accuracy.
Hoping for your opinion!

from closerlookfewshot.

johnnyasd12 avatar johnnyasd12 commented on August 20, 2024

The purpose of sampling different episode is to evaluate the performance under few-shot learning scenario. For example, to evaluate 3-way 5-shot tasks, we want to know the performance when the training data (of target task) only contain 3 classes and 5 examples per class. Thus, there is no reason to use examples other than the support set of an episode to finetune the model in most cases.

from closerlookfewshot.

ZhuLingfeng1993 avatar ZhuLingfeng1993 commented on August 20, 2024

OK, I understand. Thank your for your explanation.

from closerlookfewshot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.