Skip to content

FIX validate parameter in 'fit' for 'FactorAnalysis' - #21713

Merged
thomasjpfan merged 12 commits into
scikit-learn:mainfrom
HayaAlmutairi:factor_analysis_test
Nov 26, 2021
Merged

thomasjpfan merged 12 commits into
scikit-learn:mainfrom
HayaAlmutairi:factor_analysis_test

Conversation

@HayaAlmutairi

Copy link
Copy Markdown
Contributor

Reference Issues/PRs
Addresses #21406

What does this implement/fix? Explain your changes.

  • Moves ValueError from init to _fit
  • checks ValueError in test_factor_analysis.py
    cc: @krumeto

Any other comments?
#DataUmbrella

@thomasjpfan thomasjpfan 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.

Please add an entry to the change log at doc/whats_new/v1.0.rst with the |Fix| tag. Like the other entries there, please reference this pull request with :pr: and credit yourself (and other contributors if applicable) with :user:.

@glemaitre

Copy link
Copy Markdown
Member

As mentioned by @thomasjpfan you need to add an entry in the changelog v1.1.rst. It will solve the issue with the "Check Changelog" CI.

Then, you need to apply black on the files: https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist (item 5.). It will solve the linting issues in the different CI. Be aware that you can install pre-commit that will take care of the reformatting when committing.

The remaining failures would be solve if you are merging main into your branch (we add an issue ccache that has been solved in the main branch).

@glemaitre

Copy link
Copy Markdown
Member

Otherwise, the fix and the associated change in the test are fine.

@glemaitre glemaitre self-assigned this Nov 21, 2021
Comment thread doc/whats_new/v1.1.rst Resolved
@glemaitre

Copy link
Copy Markdown
Member

can you merge main into your branch? It will solve the CircleCI failure.

@glemaitre glemaitre 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.

LGTM.

@glemaitre glemaitre removed their assignment Nov 22, 2021
@HayaAlmutairi

Copy link
Copy Markdown
Contributor Author

How I can solve the CircleCI failure? Since I already merged main with my branch and it shows everything up to date

@glemaitre
glemaitre self-requested a review November 23, 2021 09:44
@glemaitre

Copy link
Copy Markdown
Member

How I can solve the CircleCI failure? Since I already merged main with my branch and it shows everything up to date

I cannot see in your commit that you merge with main. To merge with main you need to do

 git fetch origin
 git merge origin/main

For me origin corresponds to the scikit-learn repository. Sometimes people use upstream instead of origin.

Then, the merging commit will appear in the history with something similar to:

Merge remote-tracking branch 'origin/main' into HayaAlmutairi/factor_analysis_test

@thomasjpfan thomasjpfan 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.

LGTM

@thomasjpfan
thomasjpfan merged commit a8bd6d2 into scikit-learn:main Nov 26, 2021
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Nov 29, 2021
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants