Skip to content

After downloading the dataset, I followed the instructions but still encountered errors when running train_weather.py in AdaRNN. How should I resolve this? #461

@qinhaohcen

Description

@qinhaohcen

Errors:

train_weather.py::test_epoch ERROR                                       [ 50%]
test setup failed
file F:\2025\AdaRNN\AdaRNN\code\deep\adarnn\train_weather.py, line 248
  def test_epoch(model, test_loader, prefix='Test'):
E       fixture 'model' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

train_weather.py::test_epoch_inference ERROR                             [100%]
test setup failed
file F:\2025\AdaRNN\AdaRNN\code\deep\adarnn\train_weather.py, line 272
  def test_epoch_inference(model, test_loader, prefix='Test'):
E       fixture 'model' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions