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

Prediction on one sample produces error #487

Open
1 of 3 tasks
AlexanderZender opened this issue Jan 14, 2023 · 1 comment
Open
1 of 3 tasks

Prediction on one sample produces error #487

AlexanderZender opened this issue Jan 14, 2023 · 1 comment

Comments

@AlexanderZender
Copy link

AlexanderZender commented Jan 14, 2023

NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://stackoverflow.com

Your issue may already be reported!
Also, please search on the issue tracker before creating one.

  • I'm submitting a ...
    • bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.

Issue Description

  • When calling the proba_predict method with a single sample the following error is produced:

image
Prediction sets with more than one work just fine.

Expected Behavior

A single probability is returned.

Current Behavior

This error is returned deep within the predict pipeline:
image

Possible Solution

Your Code

image

Error message

image

Your Local environment

  • Operating System, Ubuntu
  • Python, version 3.10
  • Outputs of pip freeze or conda list
@AlexanderZender
Copy link
Author

My current workaround, duplicating the single row and only use the probabilities from one:
image

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