alibaba / FederatedScope

An easy-to-use federated learning platform
https://www.federatedscope.io
Apache License 2.0
1.26k stars 206 forks source link

ConfigSpace Object has no attribute to .item() #736

Closed SkyTu closed 8 months ago

SkyTu commented 8 months ago

Describe the bug ConfigSpace Object has no attribute to .item()

To Reproduce Ubuntu 18.04, python 3.9, configspace 0.4.19

  1. Go to 'FederatedScope/benchmark/FedHPOBench'
  2. Run 'example.py'
  3. See error

Expected behavior

  1. Adjust the "_check" function in tabular_benchmark.py and surrogate_benchmark.py. Ensure that "configuration" and "fidelity" are dictionaries.
  2. Specify the exact version of configspace.

Screenshots

error
SkyTu commented 8 months ago
image

The problem can be solved this way, and the bug needs to be fixed.

rayrayraykk commented 8 months ago

It appears that the error is due to an incompatibility with your version of ConfigSpace. As indicated here: https://github.com/alibaba/FederatedScope/blob/480b67de851df2fa02b7cc2189f1803d947998d7/setup.py#L29, please try reinstalling with pip install -e .[hpo] and then try again. Thank you.

SkyTu commented 8 months ago

Thank you for your reply!