Auto-PyTorch icon indicating copy to clipboard operation
Auto-PyTorch copied to clipboard

Prediction on one sample produces error

Open AlexanderZender opened this issue 3 years ago • 1 comments

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 ...
    • [X] 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 avatar Jan 14 '23 15:01 AlexanderZender

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

AlexanderZender avatar Jan 14 '23 16:01 AlexanderZender