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

Author: DiegoFernaeCreated Apr 23, 2025Updated Apr 23, 2025

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.

Source: jindongwang/transferlearning