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

Questions on Feature and Label Dimensions in RnCLoss #7

Open
teinhonglo opened this issue Dec 2, 2024 · 0 comments
Open

Questions on Feature and Label Dimensions in RnCLoss #7

teinhonglo opened this issue Dec 2, 2024 · 0 comments

Comments

@teinhonglo
Copy link

teinhonglo commented Dec 2, 2024

Hi,

Thank you for your work on the RnCLoss implementation! I have a question regarding the feature and label dimensions in the provided example:

# features: [bs, 2, feat_dim]
features = ...
# labels: [2bs, label_dim]
labels = ...

Specifically, I’d like to clarify two points:

  1. What does the 2 in the feature dimensions [bs, 2, feat_dim] represent? Does it indicate a pair of features for comparison (e.g., two embeddings per sample)?
  2. For the label dimensions [2bs, label_dim], what value should be set for label_dim? Should it be 1, or does it depend on a specific aspect of the task?

A brief explanation would greatly help me understand how to properly prepare the input features and labels.

Thank you in advance for your time and assistance!

Best regards,
Tien-Hong Lo

@teinhonglo teinhonglo changed the title Clarification on the meaning of 2 in feature dimensions [bs, 2, feat_dim] Questions on Feature and Label Dimensions in RnCLoss Dec 2, 2024
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