automl / automl/Auto-PyTorch

TypeError occurs when import TabularRegressionTask

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

Description

## Expected Behavior

I just want to try the example

```
from autoPyTorch.api.tabular_regression import TabularRegressionTask
```

## Error message

```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[c:\Users\Dell\Desktop\autoPytorch.ipynb](file:///C:/Users/Dell/Desktop/autoPytorch.ipynb) Cell 3 in ()
----> [1](vscode-notebook-cell:/c%3A/Users/Dell/Desktop/autoPytorch.ipynb#X52sZmlsZQ%3D%3D?line=0) from autoPyTorch.api.tabular_regression import TabularRegressionTask

File [d:\anaconda\envs\torch12_116\lib\site-packages\autoPyTorch\api\tabular_regression.py:7](file:///D:/anaconda/envs/torch12_116/lib/site-packages/autoPyTorch/api/tabular_regression.py:7), in
3 import numpy as np
5 import pandas as pd
----> 7 from autoPyTorch.api.base_task import BaseTask
8 from autoPyTorch.automl_common.common.utils.backend import Backend
9 from autoPyTorch.constants import (
10 TABULAR_REGRESSION,
11 TASK_TYPES_TO_STRING
12 )

File [d:\anaconda\envs\torch12_116\lib\site-packages\autoPyTorch\api\base_task.py:20](file:///D:/anaconda/envs/torch12_116/lib/site-packages/autoPyTorch/api/base_task.py:20), in
17 from ConfigSpace.configuration_space import Configuration, ConfigurationSpace
19 import dask
---> 20 import dask.distributed
22 import joblib
24 import matplotlib.pyplot as plt

File [d:\anaconda\envs\torch12_116\lib\site-packages\dask\distributed.py:13](file:///D:/anaconda/envs/torch12_116/lib/site-packages/dask/distributed.py:13), in
5 _import_error_message = (
6 "dask.distributed is not installed.\n\n"
...
--> 215 all_params = set(params)
216 if len(all_params) < len(params):
217 new_params = []

TypeError: unhashable type: 'list'
Output is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?1ff042f5-2e6e-4465-8c1f-8f583b85e251) or open in a [text editor](command:workbench.action.openLargeOutput?1ff042f5-2e6e-4465-8c1f-8f583b85e251). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)...
```

## Your Local environment
* Windows11
* Python 3.9

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.