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

add sample_weight support for match models #50

Merged

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

tzrec/models/match_model.py Show resolved Hide resolved
tzrec/models/match_model.py Outdated Show resolved Hide resolved
tzrec/models/rank_model.py Show resolved Hide 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
5 checks passed
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