Skip to content

add sample_weight support for match models#50

Merged
tiankongdeguiji merged 5 commits intoalibaba:masterfrom
eric-gecheng:feature/sample_weight_dssm
Dec 5, 2024
Merged

add sample_weight support for match models#50
tiankongdeguiji merged 5 commits intoalibaba:masterfrom
eric-gecheng:feature/sample_weight_dssm

Conversation

@eric-gecheng
Copy link
Collaborator

No description provided.


def __init__(
self, model_config: ModelConfig, features: List[BaseFeature], labels: List[str]
self, model_config: ModelConfig, features: List[BaseFeature], labels: List[str], sample_weights: List[str] = None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • add **kwargs to all models for better compatibility
  • sample_weights typing is Optional[List[str]]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved

@eric-gecheng eric-gecheng force-pushed the feature/sample_weight_dssm branch from dcce8da to 2fcc96a Compare December 4, 2024 09:12
Copy link
Collaborator

@tiankongdeguiji tiankongdeguiji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiankongdeguiji tiankongdeguiji merged commit f9c4917 into alibaba:master Dec 5, 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

Successfully merging this pull request may close these issues.

2 participants