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

TypeError occurs when import TabularRegressionTask #500

Open
Songenyu opened this issue Jul 11, 2023 · 0 comments
Open

TypeError occurs when import TabularRegressionTask #500

Songenyu opened this issue Jul 11, 2023 · 0 comments

Comments

@Songenyu
Copy link

Songenyu commented Jul 11, 2023

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
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