aeon icon indicating copy to clipboard operation
aeon copied to clipboard

[ENH] estimators failing check_regressor_against_expected_results

Open TonyBagnall opened this issue 1 year ago • 10 comments

Describe the feature or idea you want to propose

no idea on these

  • [ ] "RDSTRegressor"
  • [ ] "RISTRegressor"

Describe your proposed solution

fix or create issue

Describe alternatives you've considered, if relevant

No response

Additional context

No response

TonyBagnall avatar Dec 16 '24 09:12 TonyBagnall

Hello, I'd like to join the project by working on this issue.

Riccardo231 avatar Dec 28 '24 13:12 Riccardo231

Hi @ricor07, just a heads-up, this issue is a bit tricky, so if you are new to python/numba/git CI, this might not be the easiest place to start with.

The problem we're facing is that these two estimators (RDST and RIST) are failing a test (check_regressor_against_expected_results, see this file and this one to reproduce the results) on some of the platforms we are testing on (Ubuntu/Windows/MacOS).

The problem is that the expected results can differ (despite fixing a random seed) from platform to platform. The goal of the issue is to understand and fix this, but we didn't have much success on that for now. You can go in the test_config file to make these test run on the CI, otherwise there are excluded.

baraline avatar Dec 28 '24 14:12 baraline

Hi @baraline , I'd like to work on this issue. I have experience with Python, Git CI, and debugging cross-platform. I'll start by reproducing the test failures and investigating potential causes. Could you assign me this issue? Also, do you have any specific insights or previous debugging attempts that might help narrow down the problem? Looking forward for your kind response. Best

SalmanDeveloperz avatar Mar 02 '25 17:03 SalmanDeveloperz

Just noting these tests will only run on Ubuntu in the future.

MatthewMiddlehurst avatar Mar 03 '25 23:03 MatthewMiddlehurst

Thanks for the update! I have an Ubuntu setup and would like to test and debug the issue there. Could you guide me on how to properly set up and run the tests on Ubuntu? Any specific steps or configurations I should be aware of? Best Regards

SalmanDeveloperz avatar Mar 04 '25 03:03 SalmanDeveloperz

You should find everything you need to setup your environnement and run test in the documentation. Althought the issue might be fixed by running the tests on Ubuntu only, but we need to verify that.

baraline avatar Mar 04 '25 05:03 baraline

Hi @baraline, @MatthewMiddlehurst , @TonyBagnall , I have set up the environment on Ubuntu and tested the estimators. Initially, the tests did not run, but after commenting out the following lines in testing_config.py:

# "RDSTRegressor": ["check_regressor_against_expected_results"],  
# "RISTRegressor": ["check_regressor_against_expected_results"], 

all tests passed successfully (pytest aeon/testing/estimator_checking/ -v).

This suggests that restricting the tests to Ubuntu may resolve the issue, as previously noted. However, I’d like to confirm whether removing these exclusions is the intended fix or just a temporary workaround.

Please advise on the next steps, should I proceed with a PR or investigate further?

Check the screenshot below for reference.

Image

SalmanDeveloperz avatar Mar 05 '25 03:03 SalmanDeveloperz

You can proceed with a PR that would remove the two test exclusion

"RDSTRegressor": ["check_regressor_against_expected_results"],  
"RISTRegressor": ["check_regressor_against_expected_results"], 

This way we can test it on the GitHub CI to confirm that its working as intended now. Note that this PR will depend on #2486 getting in, as it is that PR that modifies the testing behaviour.

baraline avatar Mar 08 '25 07:03 baraline

I have merged #2486

MatthewMiddlehurst avatar Mar 08 '25 16:03 MatthewMiddlehurst

We could test for RDST Regressor after #2763 is in.

baraline avatar Jul 20 '25 10:07 baraline