Skip to content

TypeError occurs when import TabularRegressionTask #500

@Songenyu

Description

@Songenyu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions