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

Features at the bottleneck #6

Open
ArielleZhang opened this issue Dec 22, 2023 · 1 comment
Open

Features at the bottleneck #6

ArielleZhang opened this issue Dec 22, 2023 · 1 comment

Comments

@ArielleZhang
Copy link

Hi,

I noticed that in the code implementaion, there is a (232,) feature for each trajectory at each timestep. When scoring and classifying the difficulty of the trajectory we only have one score per trajectory, then in the contrastive loss step, how are anchors selected? Is it the average of all the features at each timestep of the same trajectory?

Thanks,

Arielle

@os1a
Copy link
Collaborator

os1a commented Feb 27, 2024

Hi Arielle,

Sorry for the late response. Yes, the features for each trajectory has a dimension of 232. When applying the contrastive learning we multiply the features with its transpose (matrix multiplication) in line 24. The result will be a matrix of size (num_trajectories, num_trajectories), which are the anchors. Then we select the maximum one.

Best,
Osama

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

2 participants