Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs in robust module and improve test coverage #78

Merged
merged 50 commits into from
Apr 8, 2021

Conversation

TimotheeMathieu
Copy link
Contributor

@TimotheeMathieu TimotheeMathieu commented Nov 17, 2020

In PR #76 I succeeded in making examples faster but as a consequence some of the examples do not work anymore.
It allowed me to see some bugs in the robust module and this PR is to resolve them and try to improve the test in order not to encounter this situation again.

TODO:

  • add test for the weights_ parameter
  • add test to compare to already existing robust algo in regression in sklearn (TheilSen, Ransac)
  • add tests
  • fix examples

If anyone has a test suggestion, please share in comment.

@TimotheeMathieu TimotheeMathieu added the bug Something isn't working label Nov 17, 2020
@TimotheeMathieu
Copy link
Contributor Author

TimotheeMathieu commented Nov 23, 2020

@rth the PR is ready for review, thanks in advance. For now I removed the real data classification example as I didn't find a good example to replace the last one that had some problems.

Copy link
Contributor

@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @TimotheeMathieu ! Generally looks good to me aside for the two following comments.

sklearn_extra/robust/robust_weighted_estimator.py Outdated Show resolved Hide resolved
@TimotheeMathieu
Copy link
Contributor Author

TimotheeMathieu commented Nov 26, 2020

I fixed the test for kmedoids here mentioned in PR #73

EDIT : I removed the test in order to make a separate PR.

@TimotheeMathieu TimotheeMathieu changed the title Fix bugs in robust module and improve test coverage. Fix bugs in robust module and improve test coverage & fix test KMedoids. Nov 27, 2020
@TimotheeMathieu
Copy link
Contributor Author

@rth I don't understand the error in azure pipeline for python 3.9.
I can't reproduce it in a virtual env so I guess it is a problem with the azure pipeline.

@adrinjalali
Copy link
Member

The azure-pipelines.yaml needs fixing. The latest scipy release supports python3.9 already, shouldn't be fetching the nightly release. Not sure what's making it fetch from the nightly repo.

The scikit-learn pre-release also supports py3.9 already.

@TimotheeMathieu TimotheeMathieu changed the title Fix bugs in robust module and improve test coverage & fix test KMedoids. Fix bugs in robust module and improve test coverage Dec 21, 2020
@rth rth mentioned this pull request Dec 23, 2020
Copy link
Contributor

@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I won't be able to do a detailed review, but generally looks good to me. Thanks!

Feel free to merge once CI is green.

sklearn_extra/robust/mean_estimators.py Outdated Show resolved Hide resolved
@rth rth mentioned this pull request Apr 7, 2021
3 tasks
@TimotheeMathieu TimotheeMathieu merged commit 5b45d64 into scikit-learn-contrib:master Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants