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

Resolve crash with predict_proba & multi-output #466

Merged

Conversation

tomaarsen
Copy link
Member

@tomaarsen tomaarsen commented Jan 8, 2024

Hello!

Pull Request overview

  • Resolve crash with predict_proba & multi-output
  • Tests

Details

If multi_output is used, then predict_proba will return a list of arrays/tensors. This isn't taken into consideration, so now we first stack that into a full array/tensor. This would happen e.g. with

model = SetFitModel.from_pretrained(
    "BAAI/bge-small-en-v1.5", multi_target_strategy="multi-output"
)
  • Tom Aarsen

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@tomaarsen tomaarsen merged commit 58a3600 into huggingface:main Jan 8, 2024
18 checks passed
@tomaarsen tomaarsen deleted the fix/predict_proba_multi_output branch January 8, 2024 09:38
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