Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use OTK for multiple instance learning with varying bag size? #8

Open
HHenryD opened this issue Mar 8, 2023 · 0 comments

Comments

@HHenryD
Copy link

HHenryD commented Mar 8, 2023

Hi, thanks for your great work!

I'm working on a multiple instance leanring problem, where I have some bags of instances, and each bag can have different number of instances. In my multiple instance learning framework, I used attention pooling / mean pooling to obtain the bag-level representation, followed by a MLP for downstream classification. I used batch size of 1 because the bag size varies. Each bag is represented by NxD, where N is the bag size, D is the feature dimension.

Given the superior performance of OTK, I'm interested in replacing the attention pooling / mean pooling by OTK layer in both supervised and unsupervised way. I'm wondering if your code supports batch size 1 or bags of varying sizes in multiple instance learning? If so, what should I do to implement the idea?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant