automl / automl/Auto-PyTorch

Prediction on one sample produces error

Open
#487 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.5k
Forks
300
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/79153884/212477209-d466b280-4cff-4b8f-9140-d7d7ffd47a1b.png)
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](https://user-images.githubusercontent.com/79153884/212477341-9d10d453-97a0-4adb-a71a-9952f80cbb22.png)

## Possible Solution

## Your Code
![image](https://user-images.githubusercontent.com/79153884/212478900-9fcf00d8-fd6a-4a60-b803-1223913d7795.png)

## Error message
![image](https://user-images.githubusercontent.com/79153884/212477341-9d10d453-97a0-4adb-a71a-9952f80cbb22.png)

## Your Local environment
* Operating System, Ubuntu
* Python, version 3.10
* Outputs of `pip freeze` or `conda list`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.