Skip to content

MNT fix cd_fast.pyx warning issues - #13397

Merged
adrinjalali merged 4 commits into
scikit-learn:masterfrom
adrinjalali:cd_fast/warning
Mar 5, 2019
Merged

adrinjalali merged 4 commits into
scikit-learn:masterfrom
adrinjalali:cd_fast/warning

Conversation

@adrinjalali

Copy link
Copy Markdown
Member

Fixes #13394

This fixes issues with the "Objective did not converge...." warnings.

There were some indentation and missing else issues.

@adrinjalali

Copy link
Copy Markdown
Member Author

This also makes the tests in #12682 pass :)

Comment thread sklearn/linear_model/cd_fast.pyx Resolved
Comment thread sklearn/linear_model/cd_fast.pyx Resolved
@amueller

amueller commented Mar 5, 2019

Copy link
Copy Markdown
Member

can we test this some way? maybe making sure that something doesn't raise a warning?

@adrinjalali

Copy link
Copy Markdown
Member Author

can we test this some way? maybe making sure that something doesn't raise a warning?

I'll try to add some tests.

@amueller

amueller commented Mar 5, 2019

Copy link
Copy Markdown
Member

otherwise looks good btw

@adrinjalali

Copy link
Copy Markdown
Member Author

Added some tests, #12682 also include some tests checking for presence and absence of convergence warnings.

@amueller amueller left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks!

@agramfort agramfort left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry for messing up last week ...

@adrinjalali

Copy link
Copy Markdown
Member Author

I suppose I can merge then :)

@adrinjalali
adrinjalali merged commit fc6d906 into scikit-learn:master Mar 5, 2019
@adrinjalali
adrinjalali deleted the cd_fast/warning branch March 5, 2019 21:00
@GaelVaroquaux

Copy link
Copy Markdown
Member

Good job!!!

@amueller

amueller commented Mar 6, 2019

Copy link
Copy Markdown
Member

Sweet, thanks!

xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
* fix warning issues

* add comments

* add some tests

* pep8
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
* fix warning issues

* add comments

* add some tests

* pep8
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.

Confusing convergence warning in coordinate descent.

4 participants